JS Designer - Providing alias and other metadata for datasource
Posted: Wed Feb 13, 2019 1:03 pm
Hi
We want to use JS designer.
We have some REST api which provides us data in JSON format.
Let's say we have this code:
Is it possible to provide the data in that way we can provide column alias? (metadata for column declaration and data separately)
If not how to set the column alias in Stimulsoft.System.Data.DataSet data structure?
We want to use JS designer.
We have some REST api which provides us data in JSON format.
Let's say we have this code:
Code: Select all
// Input data
var INPUT_DATA = {
"Categories" : [
{
"CategoryID" : 1,
"CategoryName" : "Beverages",
"Description" : "Soft drinks, coffees, teas, beers, and ales",
}
]
};
// loading data
const dataSet = new Stimulsoft.System.Data.DataSet();
dataSet.readJson(INPUT_DATA);
If not how to set the column alias in Stimulsoft.System.Data.DataSet data structure?