Displaying multi objects in a listview

Michael_S
Senior Member
Beiträge: 160
Registriert: Mi 4. Feb 2004, 02:39
Wohnort: London / UK
Kontaktdaten:

Displaying multi objects in a listview

Beitragvon Michael_S » Do 23. Nov 2006, 15:59

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
Production Area
London, UK
http://productionarea.com

Michael_S
Senior Member
Beiträge: 160
Registriert: Mi 4. Feb 2004, 02:39
Wohnort: London / UK
Kontaktdaten:

Nested multiobject listview

Beitragvon Michael_S » Do 23. Nov 2006, 22:16

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:

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>
Any help would be appreciated.
Production Area
London, UK
http://productionarea.com

Michael_S
Senior Member
Beiträge: 160
Registriert: Mi 4. Feb 2004, 02:39
Wohnort: London / UK
Kontaktdaten:

How to display multiobject items in a listview

Beitragvon Michael_S » Do 23. Nov 2006, 22:37

The nested multiobject listview must have the same name as the multiobject field in the object you are listing. See code example below:

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>
Thanks for the help Benny.
Production Area
London, UK
http://productionarea.com


Zurück zu „DB / Object Module“

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 2 Gäste