by
allistar >> Wed, 28 Jul 2004 20:36:39 GMT
Hi,
You would normally have a root collection of class B instances somewhere, such as:
app.myRoot.allBInstances
It's generally not good practice to use the Class.instances property in production code, it makes it more difficult to extend the system later on (for example, what if you only wanted to put certain clas B instances in that collection?)
To populate the combo box with all of these object you would so something like this:
cbCombo.listCollection(app.myRoot.allBInstances, false, 0);
You'll also have to implement the "displayEVent" event method on the cbCombo combo box to tell JADE which property on the class B instances you want to display.
Regards,
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
*NEW* Simple web access to Jade at:
www.silvermoon.co.nz/jhp.html ------------------------------------------------------------------