custom add dataset in the designer

Stimulsoft Reports.JS discussion
Post Reply
leihj
Posts: 3
Joined: Tue Mar 23, 2021 1:18 am

custom add dataset in the designer

Post 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.
Image
designer.zip
(1.14 KiB) Downloaded 150 times
Attachments
20210323095843.jpg
20210323095843.jpg (118.05 KiB) Viewed 2590 times
Lech Kulikowski
Posts: 6237
Joined: Tue Mar 20, 2018 5:34 am

Re: custom add dataset in the designer

Post by Lech Kulikowski »

Hello,

Please try to call the following code:
jsStiWebDesigner.SendCommandSynchronizeDictionary(); //where jsStiWebDesigner -> "js" + DesignerID

Thank you.
leihj
Posts: 3
Joined: Tue Mar 23, 2021 1:18 am

Re: custom add dataset in the designer

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

Re: custom add dataset in the designer

Post by Lech Kulikowski »

Hello,

Please check the following code:
designer.jsObject.SendCommandSynchronizeDictionary();

Thank you.
Attachments
designer.zip
(1.14 KiB) Downloaded 153 times
huangguangc
Posts: 5
Joined: Wed Jul 05, 2023 1:22 am

Re: custom add dataset in the designer

Post 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?
Lech Kulikowski
Posts: 6237
Joined: Tue Mar 20, 2018 5:34 am

Re: custom add dataset in the designer

Post by Lech Kulikowski »

Hello,

Please check the sample project from the previous posts.

Thank you.
huangguangc
Posts: 5
Joined: Wed Jul 05, 2023 1:22 am

Re: custom add dataset in the designer

Post 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!
Lech Kulikowski
Posts: 6237
Joined: Tue Mar 20, 2018 5:34 am

Re: custom add dataset in the designer

Post by Lech Kulikowski »

Hello,

Thank you for the information.
Post Reply