I want each user to be able to set a default folder path.
Is there any funtionality in AwareIM that will pop up a folder selection dialog
and then allow me to take that selected folder path and save it to a BO attribute?
Cheers,
Mark
Folder Selection Dialog
-
- Posts: 2413
- Joined: Mon Jul 02, 2012 12:24 am
- Location: Ulaanbaatar, Mongolia
-
- Posts: 7526
- Joined: Sun Apr 24, 2005 12:36 am
- Contact:
-
- Posts: 2413
- Joined: Mon Jul 02, 2012 12:24 am
- Location: Ulaanbaatar, Mongolia
-
- Posts: 7526
- Joined: Sun Apr 24, 2005 12:36 am
- Contact:
-
- Posts: 2413
- Joined: Mon Jul 02, 2012 12:24 am
- Location: Ulaanbaatar, Mongolia
Yes. I can do that and I can get it to import the file (.csv) into the document
attribute.
But, is it then possible to point to that attribute as an argument for the IMPORT
FROM
Normally
IMPORT myBO FROM 'C:\mydocs\myfile.csv
But now I import the file into fileBO
IMPORT myBO FROM fileBO
Unless I am doing something wrong I cannot get that to work.
attribute.
But, is it then possible to point to that attribute as an argument for the IMPORT
FROM
Normally
IMPORT myBO FROM 'C:\mydocs\myfile.csv
But now I import the file into fileBO
IMPORT myBO FROM fileBO
Unless I am doing something wrong I cannot get that to work.
I think once it is uploaded into the fileBO you need to export it to the server file system ../temp-folder/temp-file.csv and then do the import into myBO from there. IMPORT myBO FROM ../temp-folder/temp-file.csv
I don't think it is possible to import a CSV into a BO directly from the local host of the user or the document attribute.
I don't think it is possible to import a CSV into a BO directly from the local host of the user or the document attribute.
-
- Posts: 2413
- Joined: Mon Jul 02, 2012 12:24 am
- Location: Ulaanbaatar, Mongolia
Hi James.
Yes that works. Thanx.
One issue though....
I have two BOs. Analyses and HaulData
HaulData is owned by Analyses
My HaulData has the following attributes...
SegmentCode text
Easting number
Northing number
RL number
Analysis Analyses
I call the importation process from an Analyses and pass Analyses as the Process Input.
In the importation process I have as you described....
ENTER NEW FileUpload USING Main
EXPORT DOCUMENT FileUpload.FileToUpload TO FILE 'mydata.csv'
IMPORT HaulData FROM 'mydata.csv'
This works and imports the data filling the attributes
SegmentCode,Easting,Northing and RL
However, I cannot seem to fill the Analysis attribute with the Process Input Analyses.
I tried adding the following ACTIONs, none of which work. HaulData.Analysis=Analyses
ThisHaulData.Analysis=Analyses
This HaulData.Analysis=ThisAnalyses
HaulData.Analysis=ThisAnalyses
The records still get created but no association with the current Analyses.
Any ideas what could be the problem here?
Cheers,
Mark
Yes that works. Thanx.
One issue though....
I have two BOs. Analyses and HaulData
HaulData is owned by Analyses
My HaulData has the following attributes...
SegmentCode text
Easting number
Northing number
RL number
Analysis Analyses
I call the importation process from an Analyses and pass Analyses as the Process Input.
In the importation process I have as you described....
ENTER NEW FileUpload USING Main
EXPORT DOCUMENT FileUpload.FileToUpload TO FILE 'mydata.csv'
IMPORT HaulData FROM 'mydata.csv'
This works and imports the data filling the attributes
SegmentCode,Easting,Northing and RL
However, I cannot seem to fill the Analysis attribute with the Process Input Analyses.
I tried adding the following ACTIONs, none of which work. HaulData.Analysis=Analyses
ThisHaulData.Analysis=Analyses
This HaulData.Analysis=ThisAnalyses
HaulData.Analysis=ThisAnalyses
The records still get created but no association with the current Analyses.
Any ideas what could be the problem here?
Cheers,
Mark
-
- Posts: 7526
- Joined: Sun Apr 24, 2005 12:36 am
- Contact:
-
- Posts: 2413
- Joined: Mon Jul 02, 2012 12:24 am
- Location: Ulaanbaatar, Mongolia
Managed to get it to work with only one caveat.
ENTER NEW FileUpload USING Main
EXPORT DOCUMENT FileUpload.FileToUpload TO FILE 'mydata.csv'
IMPORT HaulData FROM 'mydata.csv'
FIND ALL HaulData ORDER BY HaulData.ID
CREATE HaulProfiles FOR EACH HaulData WITH HaulProfiles.Analysis=Analyses,HaulProfiles.Descriptor=HaulData.Descriptor,HaulProfiles.Easting=HaulData.Easting,HaulProfiles.Northing=HaulData.Northing,HaulProfiles.ProfileNumber=HaulData.ProfileNumber,HaulProfiles.RL=HaulData.RL
This works but I suspect it will fail if two users try and import data at the same time.
Cheers,
Mark
ENTER NEW FileUpload USING Main
EXPORT DOCUMENT FileUpload.FileToUpload TO FILE 'mydata.csv'
IMPORT HaulData FROM 'mydata.csv'
FIND ALL HaulData ORDER BY HaulData.ID
CREATE HaulProfiles FOR EACH HaulData WITH HaulProfiles.Analysis=Analyses,HaulProfiles.Descriptor=HaulData.Descriptor,HaulProfiles.Easting=HaulData.Easting,HaulProfiles.Northing=HaulData.Northing,HaulProfiles.ProfileNumber=HaulData.ProfileNumber,HaulProfiles.RL=HaulData.RL
This works but I suspect it will fail if two users try and import data at the same time.
Cheers,
Mark
-
- Posts: 2413
- Joined: Mon Jul 02, 2012 12:24 am
- Location: Ulaanbaatar, Mongolia
-
- Posts: 2413
- Joined: Mon Jul 02, 2012 12:24 am
- Location: Ulaanbaatar, Mongolia