L.S.
Working with mmbase-1.8.0, I have the following use case:
I have an object type (builder) that has foreign keys to other object
types. E.g. I have an object 'publication' that has a foreign key into
the object type 'publicationtype' (Article, Book, Conference Paper
etc.). I would like to show a drop down list in the
'publication'-editor, showing all available 'publicationtypes' that the
user can choose from.
I have defined the db-element and the datatype-element in the builders'
publication.xml both as node. I read something about enumerations /
query that I can use within the datatype-definition of the builder. But
I don't understand how to do what I need to do. Below is a piece of the
data type from the builder's xml-file.
<datatype base="nodenumber"
xmlns="http://www.mmbase.org/xmlns/datatypes">
<enumeration>
<description>get all publicationtypes</description>
<query>
????????????????????
</query>
</enumeration>
</datatype>
I have no idea what to put on the place of the question marks. Can
anyone please help me out or point me to a tutorial or something?
Thanks in advance,
Dave
_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers