How to rename a dataset/datasource

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

How to rename a dataset/datasource

Post by nickdavies07 »

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 826 times
Lech Kulikowski
Posts: 6244
Joined: Tue Mar 20, 2018 5:34 am

Re: How to rename a dataset/datasource

Post by Lech Kulikowski »

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 793 times
Post Reply