add connection from encrypted string

Stimulsoft Reports.JS discussion
Post Reply
MAnKabanov
Posts: 2
Joined: Fri Sep 30, 2016 1:20 pm

add connection from encrypted string

Post by MAnKabanov »

Hi, Report.JS add connection options as encoded string, if I wand save it and provide in other report what can I do?
If I do

report.dictionary.databases.clear();
report.dictionary.databases.add(demoData.Dictionary.Databases[0]);

then I get error

r.regData is not a function
Attachments
Снимок экрана 2016-09-30 в 17.12.31.png
Снимок экрана 2016-09-30 в 17.12.31.png (73.53 KiB) Viewed 1228 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: add connection from encrypted string

Post by HighAley »

Hello.

Please, try to use next code:

Code: Select all

report.dictionary.databases.clear();
report.dictionary.databases.add(demoData.dictionary.databases.getByIndex(0));
Thank you.
Post Reply