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

Container Field - reference only?


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

Recommended Posts

Posted

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

Posted

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..

Posted

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!

Posted

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.

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