Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
One to many with Optimistic Table Buffering
Message
From
27/09/2001 19:04:01
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
One to many with Optimistic Table Buffering
Miscellaneous
Thread ID:
00561751
Message ID:
00561751
Views:
50
I'm using parent-child relationship (one to many) between two business objects in a cBizObjForm class based form (no page frames).

The child business object works under buffer mode 5 (Table optimistic) in order to be prepared for displaying some extra needed data, which is replaced accordingly.

When I execute a New operation (parent is the primary business object), I'm asked if I want to save changes first, because of the changed fields into the child business object.

I'd like to hear opinions about the best way (framework way) to handle this. After checking the documentation, I've found that there is a lCascadeMessages properties that seems to be the one to provide a way around it. However I do not know if this could change the default expected behavior like "requery child when parent changes" or "save child on save parent", etc.

I'm also thinking on using the SetFldState function in order to make the Ischanged() function return a .F. reply, but it does not seems to me as the best way to accomplish it the right way.

Any hints are welcome.

Thanks in advance and regards

Oscar Corte
Next
Reply
Map
View

Click here to load this message in the networking platform