Hi,
in UI5 i created a jsonModel as following:
var data = {
"Products" : [ {
"name" : "Asus Transformer",
"price" : 300,
"os" : "Android 4.0.4"
}, {
"name" : "Apple Ipad",
"price" : 600,
"os" : "iOS6"
}, {
"name" : "Nexus 7",
"price" : 200,
"os" : "Android 4.3"
} ]
};
var model = new sap.ui.model.json.JSONModel();
model.setData(data);
Does anyone know, how i could get the length of the "Products" Array?
Thanks.
Greetings,
Michael