JS Designer - Providing alias and other metadata for datasource

Stimulsoft Reports.JS discussion
Post Reply
scoroop
Posts: 19
Joined: Tue Jul 12, 2016 1:43 pm

JS Designer - Providing alias and other metadata for datasource

Post 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?
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

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

Post by Lech Kulikowski »

Hello,

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

Thank you.
Post Reply