Portlet Factory, Version 6.1.2


 

Storing the source and target in variables

You can store the source and targets in variables of type XML. The source would be stored in one variable and the target would be stored in another. When you store the source, store it in XML format.

After you create the variable, make sure you specify the elements for the value in the Source Value Element or Target Value Element fields in the builder call editor of the List builder. Likewise, the elements for the labels appearing in the list should be assigned to the Source Label Element or Target Label Element fields in the builder call editor of the List builder.

The following example could be used for the source or target:

<Pets>
<Pet><name>Cat</name><id>1</id></Pet>
<Pet><name>Dog</name><id>2</id></Pet>
 <Pet><name>Fish</name><id>3</id></Pet>
<Pet><name>Reptile</name><id>4</id></Pet>
<Pet><name>Bird</name><id>5</id></Pet>
</Pets>

where

  • name is the value entered in the Source Label Element or Target Label Element fields.

  • id is the value entered in the Source Value Element or Target Value Element fields.

In the example above, the values of the name element are displayed in the list and the values of the id element are the values passed.

Parent topic: List builder


Library | Support |