I have defined a Test button with following code:
<button type="button" onclick="AwareApp.getFormPanel(this).getForm().findField('Notes').originalValue='dummy$';AwareApp.startProcessFromForm('Test', 'main', this, false);">Test</button>
Process Test: If 1=1 Then REPORT ERROR 'Just to see..'
After OK'ing the error prompt, the BACK button DOES trigger the Save changes? prompt ! So, it works.
Then I changed process Test to: If 1=1 Then DISPLAY MESSAGE 'Just to see..'
After OK'ing the message prompt, the BACK button DOES NOT trigger the Save changes? prompt !
I further noticed (in FF3) that after OKing the msg prompt, the form gets redrawn. This is probably when the "dirty" state gets wiped off... In IE7, redrwaing is not visible, but the behavior is the same.