Datasources have disappeared from new report wizard

Stimulsoft Reports.JS discussion
Post Reply
Arjune
Posts: 20
Joined: Mon Jan 28, 2019 9:26 am

Datasources have disappeared from new report wizard

Post by Arjune »

Dear support,

I have migrated from Stimulsoft Reports.JS 2019 to Stimulsoft 2021.2.2.
When I open the Report Designer, I have written some code that automatically creates a datasource so that I do not need to perform this action manually; I can use my Postgre database and its tables in the Dictionary tab.

[url = https://www.casimages.com/i/210412051901468606.jpg.html][/url]

The problem occurs when I try to create a new Standard Report (using the Stimulsoft wizard); the Datasource panel is completely empty in the wizard pop-up. It used to be filled with the datasources that can be seen in the Report designer Dictionary tab (the ones I get programatically when I initialize the report designer).

[url = https://www.casimages.com/i/21041205193539521.jpg.html][/url]

Could you please give me some assistance with this?
Thank you.
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: Datasources have disappeared from new report wizard

Post by Lech Kulikowski »

Hello,

You need to set the NewReport=MergeDictionary option.

Thank you.
Attachments
Annotation 2021-04-12 233327.png
Annotation 2021-04-12 233327.png (160.17 KiB) Viewed 2050 times
Arjune
Posts: 20
Joined: Mon Jan 28, 2019 9:26 am

Re: Datasources have disappeared from new report wizard

Post by Arjune »

Thank you for your swift answer.

Is it possible to set this NewReport parameter in our code, so that it is already set to "Merge Dictionary" when we try to create a new standard report?
If yes, how should we proceed?
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: Datasources have disappeared from new report wizard

Post by Lech Kulikowski »

Hello,

For web, that option is stored in cockies. Please check the following code:

Code: Select all

<script>
        jsStiWebDesigner1.onready = function () {
            jsStiWebDesigner1.SetCookie("StimulsoftMobileDesignerNewReportDictionary", "DictionaryMerge");
            jsStiWebDesigner1.options.newReportDictionary = "DictionaryMerge";
        }
    </script>
Thank you.
Post Reply