[Glass] Indexing question

BrunoBB smalltalk at adinet.com.uy
Mon Dec 9 17:31:40 PST 2013


Hi Martin,

>> then you want the result set to contain only FormInstances that have 
those fields?

Yes.

>>And when you query by form_number you want to get only 
those instances?

Yes.

>>If that's right, I would think you would put the name-and-surname ones 
in one collection, and the form_number ones in a different collection.

These instance are already in different collection. A FormDefinition hold
the instances (FormInstance) of a particular subset of keys. For each type
of form you have an instance of FormDefinition then the actual instances of
the form (FormInstance) are hold by it's form definition.

The question is how to add an index to these subset. Index by the key of the
dictionary.

thanks 

Regards,
Bruno




--
View this message in context: http://forum.world.st/Indexing-question-tp4728875p4728880.html
Sent from the GLASS mailing list archive at Nabble.com.


More information about the Glass mailing list