August 12, 201015 yr Hi! Simple question: Is there a way to prohibit accidental record commiting a record in order to be able to revert a record while editing?
August 12, 201015 yr No. Record commit is under the control of the user. Option is to do the data entry in global fields then script the process of transferring the data from the globals to the real fields. Note that I've just worked on a system that had a notes feature set up like this: I have just taken it OUT because a large percentage of edits were lost because the global wasn't being updated correctly. Users were closing the window instead of clicking on the save icon. I don't blame the users: the system was badly conceived and badly implemented. Well, I seem to remember somebody mentioning they put a web viewer on the layout to prevent commits.
August 12, 201015 yr Author Hmm I can see your point. Although in my case there is a modal window that you HAVE to press a OK or CANCEL that would inevitably let you know if you're going to save or not. I'll take the idea on GlobalS under consideration though, sounds promising to me. IDEA: If I use the OnRecordCommit trigger (trap ActiveField > GoToField), do you think I could also accomplish this?
August 12, 201015 yr put a web viewer on the layout to prevent commits The web viewer does not prevent commits - this is done by setting the layout to not "Save record changes automatically". The web viewer prevents the annoying message you get when you accidentally click outside a field. In version 10 and higher, you can use a script triggered OnRecordCommit to control committing.
Create an account or sign in to comment