Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5600 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

_filepath.JPG

testexport.fp7.zip

Posted

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 ] 



Posted

Thank you.

I knew the answer was there somewhere

but I'm just missing a little tread on my tires.

Jarvis

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.