Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CBizObjNoListMaintForm & defaut value on view's field
Message
From
24/07/2003 15:23:52
 
 
To
23/07/2003 13:29:27
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00812793
Message ID:
00813251
Views:
6
Jason,
I did some testing and your solution works. Thank you!
Let me ask you a final question regarding this and see if is posible to further improve it in an alternative way:
Instead of using YourBizObj.HasUserChanges()is it posible to use the SETUNMODIFIED() data access method when the BO is just created so from then on it will behave as no default value was ever present?
If so, where should it be called from?

Regards,
Roberto

>Roberto,

>First, I would add a method to the BizObj that checks if the field in question is the only one changed.

>Then add code to the forms checking that method. In your NoListMaintForm, that would be the Close() method:



>*This assumes you don't want to save unless the user has made changes.
>IF !YourBizObj.HasUserChanges()
> YourBizObj.Cancel()
>ENDIF

>RETURN DODEFAULT()
>I'm not sure where you're getting this message in the Find Form, but you would do something similar there...

>Hope that makes sense,
>---J
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform