by
allistar >> Wed, 26 Mar 2003 8:28:04 GMT
I'm not 100% I follow your issue, but these suggestions may help:
Can you pass through the parent object of the collection to the edit form instead and then access the collection off that? If the name of the collection is not known at run time you could always store the parent object of the collection and the name of the collection property (as a String) and then do a:
collection := parentObject.getPropertyValue(collectionPropertyName).Collection;
Alternatively if you know the collection won't contain too many objects you could always copy it to a transient collection and then pass that around.
You can't store a reference to an exclusive collection, so is there a way you could design this so the collection is not exclusive (may not be appropriate depending on your design)?
You could also store a reference to the view form on the edit form, and write a method on the view form called "getCollection():Collection" which you then call from the edit form to access the collection: myViewForm.getCollection();
Hope this helps in some way,
Allistar.
------------------------------------------------------------------
Allistar Melville
Software Developer, Analyst
allistar@silvermoon.co.nz
Auckland, NEW ZEALAND
Silvermoon Software
Specialising in JADE development and consulting
Visit us at:
http://www.silvermoon.co.nz ------------------------------------------------------------------