In the items property of Table I set my path:
items="{path: 'model>/elements/idStabMagTable/elements/'}">
Now I want map two different model (model
with data and enable
that manage the type of row)
<items>
<ColumnListItem type="{enable>row_enable}"> //"Navigation" or none
<cells>
<Text text="{model>society/description}"/>
...
</cells>
</ColumnListItem>
</items>
This is my model model
:
"idTable": {
"elements": [
{
"language": {
"code": "01",
"description": "ITALIANO"
},
"scheda": "rome"
},
{
"language": {
"code": "04",
"description": "TEDESCO"
},
"scheda": "berlino"
}
]
}
and this is my model enable
"idTable": {
"elements": [
{
"language": true,
"scheda": true,
"_row": true
},
{
"language": false,
"scheda": false,
"_row": false
}
]
}
I save the two models into two different file and I manage it into two different JSONModel. Now I want in each row set the values by the first model and the enable information by the 2nd model
But in items path I can map only one path! Can I map two model? (model
and enable
)