by NZWTA >> Tue, 12 Feb 2002 6:42:10 GMT
Hi
Ver 5.0.14 - A problem that must have an obvious answer (but I can't see it???), Ive just added a collection, type "TestBasicDataLotNoDict", to an the Root class, to be automatically updated by setting the "myRoot" reference of a given "TestBasicData" object (see below). The reorg didn't add existing objects to the collection (I can remember this being documented somewhere???)... how do I get the existing objects into the collection?
I tried iterating through all the objects re-setting the "myRoot" reference, but since it isn't really changing from its current setting the object wasn't in effect updated, so back to square one. What does work, but a bit messy, is not defining the inverse relationship, iterating through objects using .add collection method, then adding inverse. Two big reorgs! What's the simple answer?
Regards
Dave Mellow
-----------------------------------------------------------------
Name: allTestBasicDataByLotNo (71)
Class: Root
Type: TestBasicDataLotNoDict
Access: protected (0)
SubId: 58
non-virtual
Inverses:
myRoot of TestBasicData
Update Mode: Automatic
Relationship Type: peer-to-peer
Name: myRoot (148)
Class: TestBasicData
Type: Root
Access: protected (0)
non-virtual embedded
Inverses:
allTestBasicData of Root
allTestBasicDataByDateComplete of Root
allTestBasicDataByReference of Root
allTestBasicDataCustRef of Root
allTestBasicDataSale of Root
allTestBasicDataByLotNo of Root
Update Mode: Manual
Relationship Type: peer-to-peer