Skip to Content
0
May 30, 2019 at 11:46 AM

Data binding with two models and nested lists

686 Views Last edit May 30, 2019 at 12:20 PM 2 rev

Hi Team,

I want to do something like the following, where two lists are nested, but the description is not showed, no matter what I change.

Can anyone help?

I actually just want to add some text-controls or labels in the inner list (and I need something like a list with path or items to bind it), is there another possibility to do this, so that it fits better to the upper part?

<List headerText="Events" items="{path: 'model1>/'}" >
   <items>
	<CustomListItem type="Navigation">
	     <HBox>
	        <VBox>
                    <Label text="{model1>message}"/>
		    <Text text="{model1>date}"></Text>
		    <Text text="{model1>time}"></Text>

                    <List id="MasterAttributeList" items="{ path: 'model2>/' }">
                        <items>
     important part -->      <StandardListItem title="{model1>description}" 
                                       description="{model2>{= ${model1>key}}}"/>
                        </items>
                   </List>
	        </VBox>
             </HBox>
         </CustomListItem>
    </items>               
</List>

Best regards!