I have StandrdTiles
with JSON (example below). My problem is connected with JSON file structure and path to tile collection (is defined in XML view). I'm try to have functionality like: If you click on tile, new view will be load with another group of tiles where model will be selected array (based on some parameter) from JSON file. So, I want to load new view clicking on tile where model is selected by array name with objects (tile0 --> view + data0 collection; tile1 --> view + data1 collection
).
It's possible to dynamically change tiles value in XML view from controller?
<TileContainer
id="container"
tiles="{}" <-- how to change value from controller before loading data?
...
data.json
{
"TileCollection": [{
"data0": [{
"icon": "sap-icon://inbox",
"number": "1",
"title": "Lorem ipsum",
"info": "Lorem ipsum",
"infoState": "Error"
}, {
"icon": "sap-icon://technical-object",
"number": "2",
"title": "Lorem ipsum",
"info": "Lorem ipsum",
"infoState": "Success"
}, {
"icon": "sap-icon://inbox",
"number": "3",
"numberUnit": "",
"title": "Lorem ipsum",
"info": "Lorem ipsum"
}]
}, {
"data1": [{
"icon": "sap-icon://inbox",
"number": "4",
"title": "Lorem ipsum",
"info": "Lorem ipsum",
"infoState": "Error"
}, {
"icon": "sap-icon://technical-object",
"number": "5",
"title": "Lorem ipsum",
"info": "Lorem ipsum",
"infoState": "Success"
}, {
"icon": "sap-icon://inbox",
"number": "6",
"numberUnit": "",
"title": "Lorem ipsum",
"info": "Lorem ipsum"
}]
}]
}