General information
Category:
The Mere Mortals Framework
Hello Jason,
Thanks for your replay.
I'm not sure if I follow your sugestion.
Where should I place the code checking GETFLDSTATE() so the message wont come up?
In addition to the form's closing it also happen when the user selects a record in the form companion Find Form, so I need to place code around there too
Regards,
Roberto
>Hello Roberto,
>The message you're seeing is based on checking GETFLDSTATE() and that function has no way of knowing whether the field was changed by the program or an end user.
>I think the question here is whether you care to have your default value saved if the user doesn't alter anything.
>If you do, issue a BizObj.Save() after setting the default value. If not, you can check GETFLDSTATE() in the form's close and issue a BizObj.Cancel() if nothing else has been changed.
>Hope that helps,
>---J
>I assigned a default value to a view's field. Now every time a user try to close my cBizObjNoListMaintForm (that uses that OB' view) a "Do you want to save your changes first?" message comes up. And that's confusing for users since this happen when user did not change anything.
>Is there any way to change this behavior in such a way that this message is shown only if user do change a field's value (interactively)?
>Thanks
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only