Page 1 of 1

JS Designer - Providing alias and other metadata for datasource

Posted: Wed Feb 13, 2019 1:03 pm
by scoroop
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:

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);

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?

Re: JS Designer - Providing alias and other metadata for datasource

Posted: Fri Feb 15, 2019 10:05 am
by Lech Kulikowski
Hello,

Unfortunately, in the JSON format, it is not possible.

Thank you.