I don't think an iDevice scan see a network file share, so there is no way for FM Go to export to it. The only export destinations for FM Go are the temporary folder and the documents folder (FM Go's "files on device").
Yeah the iPhone doesn't use normal networking and doesn't see shared network drives.
You will need to find another way to transfer the photo to the shared drive...
Vaughan is correct. You can use these with FMGo:
Get ( TemporaryPath )
Get ( DocumentsPath )
And this may answer many questions:
edit: misspelled name
Thank you all for replying
I found this in the FM GO Development Guide
1 The Inspector Data Formatting options Images or Interactive content do not apply to container fields in FileMaker Go.
1 FileMaker Go doesn’t support setting up container fields to store data externally.
You can use the Insert From Device script step to enter content into a container field from a music library, photo library, camera, video camera, microphone, or signature; or to enter content into a container field or text field from a bar code source.
Does this mean, I cannot export the Container Field Contents to even the hosted database.
Also how can I set the Network Path to be dynamic. At the moment I am only able to hardcode the file name. I want the file to be automatically generated for every one of my Work Orders.
If you relate the local database to the external database then you can copy fields from the local database to the remote database including container fields.
You can automatically generate the name by setting a $variable first.
set variable $filename get(temporary path) & table::work order number & ".jpg"
then in your export step:
Export Field Contents[FM_Table:: Container Field; $filename ]
You can only export to the temporary path and document path from FMGo, which has been stated a couple of times.
You can export from a container field from a computer. One possible solution would be : Set a flag in the database when a new pictures has been taken and not exported. Have a Install onTimerScript running on a computer that is also connected to the server. When the Timer Script detects the Flag of new photo then script exports container field and then after export set the flag to False. Install OnTimer Script
You can not export the container field to the hosted database. But you can have the hosted database import the field from the FileMaker Go file, use a Set Field script set to set the field into the hosted database or use copy and paste like Carl mentioned.
Thanks schamblee for the answer, Solved the issue.. I am able to export the photos to the shared location now. But still having issues with dynamically naming the file.
Set variable [ $FileName; Value : "//BTS-PRODUCTION/EADocs/"& FM_EQU::WO_NUMBER & "_" & Get ( CurrentDate ) & ".jpg"]
Export Field Contents[FM_EQU:Graphic;"$FileName"]
It doesn't give me error, but doesn't export the file either..
but when I give the Filepath to be' filewin://BTS-PRODUCTION/EADocs/8148264.jpg' , the file is copied properly.
Any suggestions as to what is wrong here..
I don't think you need quotation marks around the $FileName.
I believe the current date is putting extra slashes in your path. Try using Substitute(Get(currentdate);"/";"_")
I believe rgordon has beat me to the solution, he correct about the slashes.
thanks so much, that was the fix..
Yep! correct fix. However, I avoid the whole "/" problem and use a "date" that is alpha-sortable:
Year(Get(CurrentDate) & Right("00" & Month(Get(CurrentDate));2) & Right("00" & Day(Get(CurrentDate));2)
Then the same file name (with the appended "date") will be in sort order by date as well.
I agree Beverly. Your file names all would look consistent and easier to scroll through them when alphabetized.