Hello
I have some question about validate update routine and save form.
I have memory form with save button and in "Validate Update" routine I put some additional validation. For example:
IF p_web.GSV('Name') = ''
loc:invalid = 'Name'
loc:alert = 'Blank name'
END
At the and of this routine I write log in my LogTable, to know if form was save without or with errors.
For example:
SaveLog(loc:alert) ! Save description of error to LogTable
My question is:
Why "Validate Update" routine is call twice when loc:invalid <> ''? In other words, when validation was incorrect. This is a bug or a normal situation?
Each time if validation was incorrect my procedure SaveLog(...) is call twice and write two exactly same records in LogTable.
Can I do something to call "Validate Update" routine once after wrong validation?
Regards,
Matthew