gaby78 Posted December 30, 2007 Posted December 30, 2007 If a layout has “Save Changes Automatically” unchecked in layout setup, a dialog box pops up when a value is changed in a field. I am wondering if there is a way to capture the choice made by the user (Don’t Save/Save/Cancel)? Can Get(LastMessageChoice) be used for this purpose?
Søren Dyhr Posted December 30, 2007 Posted December 30, 2007 No it only works with Show Custom.... but since you havn't said anything about context and purpose, perhaps a feature like this: http://www.filemaker.com/help/FunctionsRef-253.html ...could be utilized instead?? --sd
gaby78 Posted December 30, 2007 Author Posted December 30, 2007 Hello Soren: Here is the context: Currently the user clicks on Save and then clicks on a Next button (thus 2 clicks) that takes him to the next data entry layout where the same thing happens, click to Save and click Next to move forward to a 3rd data entry layout. I was hoping to combine both actions in one click: if the user clicks on Save, FM saves and switches to the next layout. I took a look at the Get(RecordModificationCount); If you could suggest how I can use it to combine Save and Go to Layout X in one click I will be very grateful. PS: the layout has Parent and child records in portal just like an Invoice/InvoiceLineItems.
Søren Dyhr Posted January 1, 2008 Posted January 1, 2008 Ah! the Idea I had was to set a variable inside the validation and compare it with Get(RecordModificationCount) but it won't happen anyway because the validation kick's in after committing the record. Perhaps it should be approached differently by being eternally in a paused script? --sd
Søren Dyhr Posted January 2, 2008 Posted January 2, 2008 Alright I gave this a stab, and a way to accomplish the desired behaviour via the Zippscript plugin: http://homepage.mac.com/jkornhaus/filemaker/plugins.html But since I refrain from plugin use at large, do I hardly have much experience with this plugin either. The attached themplate does what it's supposed to do when keeping it inside the same record, but as soon as the user create a new record will the script trig twice ... Probably something simple to solve?: --sd InfernalScript.zip
Recommended Posts
This topic is 6230 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