MDI SAVEWARN Ignoring some fields (OpenInsight 32-bit Specific)
At 15 NOV 2007 11:27:17PM G Te Tamaki wrote:
We have an MDI screen.
In the first Child screen there are the normal types of fields, edit lines, drop down etc. Some 20 fields in all.
8 are Edit Lines.
The problem is that 2 of the Edit Lines do not trigger the SAVEWARN flag. All other 18 fields do.
When one of the 2 fields is changed and the save is clicked to WRITE the record the SAVEWARN is False.
However, the OI write warning appears: 'Would you like to save the changes …'.
Have tried deleting the fields from the screen and re-adding, deleting the dictionary items but to no avail.
Any suggestions?
At 16 NOV 2007 04:08PM Richard Bright wrote:
Harriet / Robin,
If the EditLines are bound to data, a change in the DefProp property will set the Modified property ie if you type in data, then this changes the TEXT property - the defprop property for control.
So it comes back to the issue - is the data data-bound and how is the data being entered. The work-around is to programaticly set the Modified property (compare TEXT on GotFocus with TEXT on LostFocus, if changed then set MODIFIED)