Page 1 of 1

Datasources have disappeared from new report wizard

Posted: Mon Apr 12, 2021 3:12 pm
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.

Re: Datasources have disappeared from new report wizard

Posted: Mon Apr 12, 2021 9:34 pm
by Lech Kulikowski
Hello,

You need to set the NewReport=MergeDictionary option.

Thank you.

Re: Datasources have disappeared from new report wizard

Posted: Thu Apr 15, 2021 9:09 am
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?

Re: Datasources have disappeared from new report wizard

Posted: Thu Apr 15, 2021 9:48 am
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.