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.

Display filename from a SuperContainer field

Featured Replies

Is there a method to automatically calculate the name of a file in a SuperContainer field and have it displayed in a text field? I have a feeling that the SCGetInfo plugin should be involved, but its use seems to be restricted to scripts and I cannot figure out how to use it in a calculation field.

Many thanks.

Colin Hunter

Yes if you create an unstored calc that is:


Let ( [



base = SCSetBaseURL("http://localhost:8020/SuperContainer/Files");

sc = SCGetInfo("/photos/12345" )

 

] ;



GetValue ( sc ; 1 )



)

  • Author

Beautiful - works like a charm!

Many thanks for the help.

Colin

  • 1 year later...

Is there any way to display the FileName, with the applet ( drag & drop ), but without the plugin?

if I specify "noapplet" I can display title and info

but if the applet is used, no info is displayed

might I need to put two web viewers on the layout, one applet, and one noapplet?

thanks,

greg

>Is there a method to automatically calculate the name of a file in a SuperContainer field and have it displayed in a text field?

Colin Hunter

You can get the filename even easier than that. Just make an unstorecd calc field that is SCGetInfo("/photos/12345") and it will work if you call SCSetBaseURL in your startup script (which I recommend doing).

The applet won't show the file name currently, so I recommend using scgetinfo to get the filename and information in a field on your layout.

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.