Hi,
I have a multi object field in a class and would like to display the data in a listview, which we:tag would I use to display the data?
Thanks,
Michael.
webEdition v4.1.0 + DB/Object module
Displaying multi objects in a listview
-
- Senior Member
- Beiträge: 160
- Registriert: Mi 4. Feb 2004, 02:39
- Wohnort: London / UK
- Kontaktdaten:
Nested multiobject listview
The key is to have a listview of type="multiobject" nested in the main object listview however the data is not diplayed, below is the test code:
Any help would be appreciated.
Code: Alles auswählen
<we:listview type="object" name="test" classid="3">
<we:repeat>
ID: <we:field type="text" name="WE_ID" />
<we:listview type="multiobject" name="test" classid="3">
<we:repeat>
Nested ID: <we:field type="text" name="WE_ID" />
</we:repeat>
</we:listview>
</we:repeat>
</we:listview>
-
- Senior Member
- Beiträge: 160
- Registriert: Mi 4. Feb 2004, 02:39
- Wohnort: London / UK
- Kontaktdaten:
How to display multiobject items in a listview
The nested multiobject listview must have the same name as the multiobject field in the object you are listing. See code example below:
Thanks for the help Benny.
Code: Alles auswählen
<we:listview type="object" name="listviewName" classid="3">
<we:repeat>
ID: <we:field type="text" name="WE_ID" />
<we:listview type="multiobject" name="multiobjectFieldName" classid="3">
<we:repeat>
Nested ID: <we:field type="text" name="WE_ID" />
</we:repeat>
</we:listview>
</we:repeat>
</we:listview>
Wer ist online?
Mitglieder in diesem Forum: 0 Mitglieder und 16 Gäste