This is only happening in 2.2.3: when I show a form that has no ‘on show’ method trigger, a method is triggering 3 times. When I hide the form again the same method triggers again 4 times! There is NO ‘on show’ or ‘on hide’ method attached to the form, but the method that is being triggered is attached to a number of fields on the form with an ‘on data change’ trigger. Even clicking on the form (not in a field, just on a blank part of the form) triggers the method 4 times. I have duplicated the form with the same result.
Dismissing the form by clicking the close box triggers the method 8 times!
After hours of testing each element I have found the culprit but not an explanation - I have a global field of type integer that is used to select a number for use in date range searches. It uses a value list of numbers from 1 to 60. It has the method attached, triggered by data change. If the global field is set to type combobox and editable, then the method triggers as soon as the form is shown and again (twice or more) when the form is hidden, even though the field contents are not changed.
However, if the field is set to type combobox and NOT editable then it works OK.
To compound the problem, if the form containing the rogue field/valuelist/editable status is on a tab panel within a form then the method triggers even more times. In the example above the form is actually on a tab panel in another tab panel and the method triggers even more times - up to 8. i.e. the fact that the form is one or more levels ‘deep’ seems to increase the number of times the method is triggered.
I do not know if this is to do with value list data types or not - I am not getting the warning about using a value list with the wrong type of field.
Just to repeat what I started with - this behaviour is new for this form in 2.2.3. Running the solution in 2.2.2 causes none of above, so what has changed?
I will try to recreate this in a test solution, but in the meantime any suggestions or observations are most welcome.