How to rename a dataset/datasource

Stimulsoft Reports.JS discussion
Post Reply
nickdavies07
Posts: 25
Joined: Fri Jul 17, 2020 2:19 pm

How to rename a dataset/datasource

Post by nickdavies07 » Tue Jul 28, 2020 2:06 pm

I am using the latest Stimulsoft JS package on a web application we are currently deploying to generate bespoke reports for clients.

I have two datasources set up, how can I rename the tables within them? By default, they are 'root'.

The code I am currently using to generate the datasets in Vue.

Code: Select all

let dataSet = new Stimulsoft.System.Data.DataSet(this.instance_name);

dataSet.readJson(response)
this.report.regData(dataSet.dataSetName, "", dataSet)
Attachments
Stimulsoft-Datasets.PNG
Stimulsoft-Datasets.PNG (27.94 KiB) Viewed 270 times
Lech Kulikowski
Posts: 3239
Joined: Tue Mar 20, 2018 5:34 am

Re: How to rename a dataset/datasource

Post by Lech Kulikowski » Wed Jul 29, 2020 3:08 pm

Hello,

You can modify it in the dictionary manually or add in the JSON.

Thank you.
Attachments
Annotation 2020-07-29 170745.png
Annotation 2020-07-29 170745.png (108.28 KiB) Viewed 237 times
Post Reply