Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

set a Flag in SCDownload

Featured Replies

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 )

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.

  • Author

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? )

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

  • Author

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

  • Author

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

Note the difference: ShowSaveDialog or showsavedialog will not work.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.