Page 1 of 1
custom add dataset in the designer
Posted: Tue Mar 23, 2021 2:00 am
by leihj
Hello,
I add a custom button in the designer,and when i click the button,it will bind a custom datasource to the report.
The attachment is my page, the dictionary is not update when I click the custom button.
Re: custom add dataset in the designer
Posted: Thu Mar 25, 2021 9:14 am
by Lech Kulikowski
Hello,
Please try to call the following code:
jsStiWebDesigner.SendCommandSynchronizeDictionary(); //where jsStiWebDesigner -> "js" + DesignerID
Thank you.
Re: custom add dataset in the designer
Posted: Thu Mar 25, 2021 11:48 am
by leihj
Hello, the code you provided doesn't work in my project. There's not have the method in the StiDesigner object.
I use the stimulsoft reports for js.
You can modify the code in the html page which I send in the attachement, Thanks
Re: custom add dataset in the designer
Posted: Mon Mar 29, 2021 6:42 am
by Lech Kulikowski
Hello,
Please check the following code:
designer.jsObject.SendCommandSynchronizeDictionary();
Thank you.
Re: custom add dataset in the designer
Posted: Tue Jul 25, 2023 10:02 am
by huangguangc
Lech Kulikowski wrote: ↑Mon Mar 29, 2021 6:42 am
Hello,
Please check the following code:
designer.jsObject.SendCommandSynchronizeDictionary();
Thank you.
Hi! I have the same question with Stimulsoft Reports.JS 2023.2.8. I can't find the SendCommandSynchronizeDictionary function in Stimulsoft.Designer.StiDesigner.jsObject, could you please give me some help?
Re: custom add dataset in the designer
Posted: Tue Jul 25, 2023 8:47 pm
by Lech Kulikowski
Hello,
Please check the sample project from the previous posts.
Thank you.
Re: custom add dataset in the designer
Posted: Wed Jul 26, 2023 12:44 am
by huangguangc
Lech Kulikowski wrote: ↑Tue Jul 25, 2023 8:47 pm
Hello,
Please check the sample project from the previous posts.
Thank you.
Hello, I eventually found the function in the prototype for Stimulsoft.Designer.StiDesigner.jsObject. There were a large number of functions in Reports.JS that did not have TypeScript definitions, causing me to have to print the relevant variables to the console to manually look them up when I was developing with TypeScript, preventing me from missing the function I needed to use. I hope the developer can try to improve the TypeScript declaration file, thank you!
Re: custom add dataset in the designer
Posted: Wed Jul 26, 2023 7:55 pm
by Lech Kulikowski
Hello,
Thank you for the information.