Jarvis Posted July 26, 2009 Posted July 26, 2009 Can anybody tell me what is wrong with this script? It works just fine in one database but when attached to a different database generates the following error message: I have attached a stripped down version of the database in case this helps. Thanks, Jarvis testexport.fp7.zip
bcooney Posted July 26, 2009 Posted July 26, 2009 If you copy to a different database, you need to redefine the calc that defines $filepath, if your container is not in the same table as it was in the previous database. So, by updating the calc, it worked just fine. Here's the script updated: If [ GetAsNumber ( Get ( ApplicationVersion )) < 9 ] Beep Show Custom Dialog [ Title: "Requires FileMaker 9"; Message: "Requires FileMaker 9, to use: Get ( TemporaryPath )" & ¶ & "Could also be done in earlier versions, but more work."; Buttons: “OK” ] Halt Script End If Enter Browse Mode Commit Records/Requests [ No dialog ] Set Variable [ $filepath; Value:Let ( prfx = Case ( Abs ( Get (SystemPlatform)) = 1; "filemac:"; "filewin:"); prfx & Get (TemporaryPath) & GetAsText(testexport::picture) ) ] Export Field Contents [ testexport::picture; “$filepath”; Automatically open ]
Jarvis Posted July 26, 2009 Author Posted July 26, 2009 Thank you. I knew the answer was there somewhere but I'm just missing a little tread on my tires. Jarvis
Recommended Posts
This topic is 5600 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now