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

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

Recommended Posts

Posted

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?

Posted

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.

Posted (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 by Guest
Posted

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.

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