gaby78 Posted March 24, 2006 Posted March 24, 2006 Hello: When "save record changes automatically" is not selected in layout setup, FM displays a dialog box with "Save" and "Don't save" buttons. Question: is there a way to add scripts to these options in such a way that if the user clicks on the Save button FM saves and execute script X and if he clicks on "Don't Save" FM does not save and execute script Y?
Zero Tolerence Posted March 24, 2006 Posted March 24, 2006 That refers to layout changes, users generally cannot make any changes to the layout, and I don't think it would be possible to run a script based off of this. Can you tell us why you would want to do this, perhaps we can come up with a better solution for you.
gaby78 Posted March 24, 2006 Author Posted March 24, 2006 (edited) Hi ZT: Thanks for trying to help. I am trying to find a way to prevent accidental delete/modification of data on a layout. In my last posting Vaughan suggested that I use 2 layouts, 1 for data entry and 1 for browsing where fields are protected. It's a good suggestion but the problem is once data is entered the user is still on data entry layout and records can still by accidentally modified. I thought it would be possible to piggy back a simple script on the FM dialog box where once the user clicks on the Save button FM saves the record and execute a script that switches to the browse layout. Edited March 24, 2006 by Guest
Zero Tolerence Posted March 24, 2006 Posted March 24, 2006 Using this method, you could create a few global fields for data entry. Then, when they have entered the data and pushed the "Save" button, you can add those to a new record in your data table and go to the browse layout. This way, they're not actually creating the new records themselfs, you are in your script.
gaby78 Posted March 25, 2006 Author Posted March 25, 2006 Thanks ZT . I never thought of using global fields.
Recommended Posts
This topic is 6821 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