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

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

Recommended Posts

Posted

What is the exact syntax if you want to set a Flag to the SCDownload function.

The ones I tried gave an error when saving the variable,

e.g. SCDownload( $folderPath ; showSaveDialog )

Posted

There aren't any flag parameters to set with the SCDownload Function. The syntax for the function is:

SCDownload ( folderPath { ; destinationFolder } )

folderPath - The unique SuperContainer path

destinationFolder - Optional URL or FileMaker path of the folder to download the file to (ie. /Macintosh HD/Users/Shared/Images)

If you want to prompt the user for a location to save a file to you can use the SCChooseFile function to show a file chooser dialog box, and then use the result of that functioncall as the destinationFolder parameter.

Posted

hello David,

thanks, the solution is simple indeed.

I was sidetracked by the documentation that comes with the SC plugin:

SCDownload ( folderPath { ; destinationFolder ; width ; height; key1=value1; key2=value2; ... } )

....etc...

Flags

The following flags are valid for this function:

showSaveDialog:P set this if you want a save dialog to pop up

(may be the documentation should be updated? )

Posted (edited)

Whoops! You're right! I was looking at the wrong function's documentation.

The parameters are:

SCDownload ( folderPath { ; destinationFolder ; width ; height; key1=value1; key2=value2; ... } )

You can get a save dialog to show up by adding the showsavedialog flag, such as

SCDownload ( $scpath; ""; ""; ""; "showdsavedialog=True")

Edited by Guest
Posted (edited)

David, are you sure this works?

when I use your syntax, the $URL that is produced still show the temp folder and no dialog pops up

file:///var/folders/nO/nOW1BldLGaSdu+02E3JgOU+++TQ/-Tmp-/supercontainer_downloads_psijmons/legContRacts/CTR0044/revision1/Voorraadbeheer_opslagruimte_Guus.xls

This is the var setting I use:

SCDownload( $folderPath ; "" ; "" ; ""; "ShowSaveDialog=True" )

Edited by Guest
Posted

Got it to work, it was case sensitive, when I used showSaveDialog it worked.

Note the difference: ShowSaveDialog or showsavedialog will not work.

This topic is 5117 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.