| U-CDK_CHARLES\\Charles 2004-03-30, 3:30 pm |
| List:
I'm creating a system where a parent document "has a" aggregate data
struture containing individual line items.
The individual line items have a state (Open, Cancelled, Approved). The
parent document ALSO has a state.
I would like to set things up so that whenever the parent document
changes its state, it changes the state of all the line items. This
appears to be simple.
But I'd ALSO like to set things up so that when the line items change,
the parent checks its OWN status, probably via a callback mechanism.
My thought is that the line items should hold a reference to the parent
document. However, I'm not quite certain how this can be done.
The other alternative is to enforce the idea that lines are ALWAYS
accessed via the parent document, but that winds up coupling the parent
document to the line items, which isn't, imo, the best alternative.
What's the BEST way to do such a thing in VB 6.0? I'm running SP5.
Thanx
Charles
|