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.

Container Field - reference only?

Featured Replies

Is there a way to configure a Container field so that the user is forced to Insert "Only a reference to the File" -- rather than storing the file within the database? IT seem it must be possible, but I don't see this anyplace. I'd think it might be in the field definition, but don't see it. . .

If not, what's the best way to discourage a user from storing the file in the database -- perhaps a script trigger of some kind...? Maybe if the field contents are of too great a size, a script clears the field and demands a reference only?

I'm in FM 11 in this case.

Thanks

You can set the "Store only a Reference" box always checked in the insert picture script step... and force them to use a script.. and do not let them right click on the picture box..

See if this helps:

http://fmforums.com/forum/topic/54572-script-step-for-store-only-a-reference-to-the-file/page__view__findpost__p__257839

  • Author

Thanks for the suggestion - this looks good. Comment could I trouble you to explain a couple of details about how this script works?

1) How is it that the Filtering on the <CR> symbol indicates whether a reference has been entered? is there always a CR at the end of the reference path data, and never for a digital file?

2) Why is it necessary to alert the user that "the rest of the script is running now" if they click "Cancel" in the custom dialogue?

(Why not simply "Exit Script" if Cancel is the result?

thanks again!

1. A referenced file (if inserted through the script's dialog) will have several return-separated items of data, such as an absolute and a relative path. The test could have been just as well =

ValueCount ( ContainerField ) > 1

2. it's just an example - the alert is the rest of the script.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.