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

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

Recommended Posts

Posted

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

Posted

Yes if you create an unstored calc that is:


Let ( [



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

sc = SCGetInfo("/photos/12345" )

 

] ;



GetValue ( sc ; 1 )



)

  • 1 year later...
Posted

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

Posted

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.

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