Wickerman Posted June 14, 2012 Posted June 14, 2012 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
No_access Posted June 14, 2012 Posted June 14, 2012 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..
comment Posted June 14, 2012 Posted June 14, 2012 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
Wickerman Posted June 14, 2012 Author Posted June 14, 2012 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!
comment Posted June 14, 2012 Posted June 14, 2012 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now