custom add dataset in the designer
custom add dataset in the designer
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.
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.
- Attachments
-
- 20210323095843.jpg (118.05 KiB) Viewed 2614 times
-
- Posts: 6247
- Joined: Tue Mar 20, 2018 5:34 am
Re: custom add dataset in the designer
Hello,
Please try to call the following code:
jsStiWebDesigner.SendCommandSynchronizeDictionary(); //where jsStiWebDesigner -> "js" + DesignerID
Thank you.
Please try to call the following code:
jsStiWebDesigner.SendCommandSynchronizeDictionary(); //where jsStiWebDesigner -> "js" + DesignerID
Thank you.
Re: custom add dataset in the designer
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
I use the stimulsoft reports for js.
You can modify the code in the html page which I send in the attachement, Thanks
-
- Posts: 6247
- Joined: Tue Mar 20, 2018 5:34 am
Re: custom add dataset in the designer
Hello,
Please check the following code:
designer.jsObject.SendCommandSynchronizeDictionary();
Thank you.
Please check the following code:
designer.jsObject.SendCommandSynchronizeDictionary();
Thank you.
- Attachments
-
- designer.zip
- (1.14 KiB) Downloaded 156 times
-
- Posts: 5
- Joined: Wed Jul 05, 2023 1:22 am
Re: custom add dataset in the designer
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 wrote: ↑Mon Mar 29, 2021 6:42 am Hello,
Please check the following code:
designer.jsObject.SendCommandSynchronizeDictionary();
Thank you.
-
- Posts: 6247
- Joined: Tue Mar 20, 2018 5:34 am
Re: custom add dataset in the designer
Hello,
Please check the sample project from the previous posts.
Thank you.
Please check the sample project from the previous posts.
Thank you.
-
- Posts: 5
- Joined: Wed Jul 05, 2023 1:22 am
Re: custom add dataset in the designer
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 wrote: ↑Tue Jul 25, 2023 8:47 pm Hello,
Please check the sample project from the previous posts.
Thank you.
-
- Posts: 6247
- Joined: Tue Mar 20, 2018 5:34 am
Re: custom add dataset in the designer
Hello,
Thank you for the information.
Thank you for the information.