Note that especially for multiple dialogs, I would prefer to detect that the user has started to modify a field with the new dialogtouched action, in order to enable the possible actions and disable the others. This way, you don't even let the user validate the dialog (save/ok) until it has started to modify fields.
Thanks Seb,
I like the examle code here (
https://4js.com/techdocs/genero/fgl/devel/DocRoot/User/MultipleDialogs.html#detecting-changes ), especially turning off the dialogtouched action once you detect changes start to be made. But it can't help me where user changes a value then changes it back again (they have been known to do that) - getDialogTouched would see that as no change - dialogtouched 'detecting-changes' example would say it is changed.
You can pass screen_record_name.* to these functions in order to check all fields, and/or pass a list of fields.
That's good to know - I didn't realize I could pass records to the getFieldTouched function. In my current program there are potentially 7 folder tabs with 7 associated display arrays - but not all may be in use and displayed. Instead of having to write code to decide if I need to check a particular array and call getFieldTouched up to seven times it would be nice to just pass the 'dialog' and be returned a true/false value for anything changed or not.
In some programs there can be 20 odd seperate fields to check - I'm never keen on writing that much repetitive code to see if anything changed. So any chance of a single function call that can check the current dialog to see if any actual changes occurred? In the meantime I may continue to use my function, even though it doesn't work 100% for arrays. If I can cobble that piece of code together in half an hour to try to work out any changes in a dialog, I thought you guys could do a much better job of it that may be supported?
Maybe I'm just lazy - I prefer to write one line of code per dialog instead twenty or so to accomplish the same thing...
It could be the way I write code is the problem however - does anyone else think it would be a good thing to have a function that tells you if any changes occured in the current dialog?
Regards, Bryce Stenberg.