Hey there,
if I want to use JSON Data to be consumed by a SAPUI5 Table the developer guide suggests this format:
var aData = [
{lastName: "Dente", name: "Al", checked: true, linkText: "www.sap.com", href: "http://www.sap.com", src: "images/person1.gif", gender: "male", rating: 4},
{lastName: "Friese", name: "Andy", checked: true, linkText: "www.sap.com", href: "http://www.sap.com", src: "images/person2.gif", gender: "male", rating: 2}];
But since I have big JSON files I don't want to write the columnname in for each row. It should be specified just by order. So it would look like this:
var aData = [
["Dente", "Al", true, "www.sap.com", "http://www.sap.com", "images/person1.gif", "male", 4],
["Friese", "Andy", true, "www.sap.com", "http://www.sap.com", "images/person2.gif", "male", 2] ];
here is a full example: JS Bin - Collaborative JavaScript Debugging</title> <link rel="icon" href="http://static.jsbin.…
Is this possible? And how?
Thank you.