Programmically design and connect to data
Programmically design and connect to data
Hello,
I have a relatively simple problem to solve, that I have not been able to get it to work:
1) need to be able allow the user to design based on the this json , at design stage, will not have access to the data or values.
Please, tell me how to build a JsonDatabase from that string and the relevent data source to bind to whatever the user placed on the designer, making a template?
2) need to assign the data to the above template, using this example json again as a string, probably converted to a data table all at run time, in asp.net core.
I am trying to convince my boss to go with the Stimulsoft,
any example code would be appreciated.
Please don't point other example code, did try couldn't get it to work.
Thanks
I have a relatively simple problem to solve, that I have not been able to get it to work:
1) need to be able allow the user to design based on the this json , at design stage, will not have access to the data or values.
Please, tell me how to build a JsonDatabase from that string and the relevent data source to bind to whatever the user placed on the designer, making a template?
2) need to assign the data to the above template, using this example json again as a string, probably converted to a data table all at run time, in asp.net core.
I am trying to convince my boss to go with the Stimulsoft,
any example code would be appreciated.
Please don't point other example code, did try couldn't get it to work.
Thanks
-
- Posts: 7404
- Joined: Tue Mar 20, 2018 5:34 am
Re: Programmically design and connect to data
Hello,
It's not entirely clear what you want to do.
What does it mean to have no access to data or values? How should it look, etc.?
Thank you.
It's not entirely clear what you want to do.
What does it mean to have no access to data or values? How should it look, etc.?
Thank you.
Re: Programmically design and connect to data
Hello Lech,
Think of the Form_Elements.json as a data structure, like a "schema" that will be posted to the Stimulsoft designer, ready for an admin to prepare a template by dragging parts of it onto the page. A template is saved
My system generates a json, similar to the Form_response.json, with parts matching the one used at the design stage. Basically, this time a user is presented with the Stimulsoft viewer reading the template from above and connecting to the Form_response.json, then user can decide to save what he sees in the viewer.
Any help appreciated, other products are far too complicated to deploy.
Thanks
Think of the Form_Elements.json as a data structure, like a "schema" that will be posted to the Stimulsoft designer, ready for an admin to prepare a template by dragging parts of it onto the page. A template is saved
My system generates a json, similar to the Form_response.json, with parts matching the one used at the design stage. Basically, this time a user is presented with the Stimulsoft viewer reading the template from above and connecting to the Form_response.json, then user can decide to save what he sees in the viewer.
Any help appreciated, other products are far too complicated to deploy.
Thanks
-
- Posts: 7404
- Joined: Tue Mar 20, 2018 5:34 am
Re: Programmically design and connect to data
Hello,
In this case, you need to change the structure of your JSON.
Thank you.
In this case, you need to change the structure of your JSON.
Thank you.
- Attachments
-
- Form_Elements.json
- (1.15 KiB) Downloaded 4 times
-
- Screenshot 2025-10-02 232939.png (213.86 KiB) Viewed 44 times
Re: Programmically design and connect to data
Hello,
I am grateful for the effort.
You have shown that by restructuring the Form_elements.json you will able to list the items
However, if you go back and read my second post again, you find, I need to:
arrange the controls on the Stimulsoft designer page based on Form_elements.json (perhaps as how you have shown) by an admin, and then later another user loads the Stimulsoft viewer (only the viewer not the designer) uses your template and connects to the other Json string, Form_response.json which will supply the values for the template.
Please also share your visual studio project.
Thanks a lot.
I am grateful for the effort.
You have shown that by restructuring the Form_elements.json you will able to list the items
However, if you go back and read my second post again, you find, I need to:
arrange the controls on the Stimulsoft designer page based on Form_elements.json (perhaps as how you have shown) by an admin, and then later another user loads the Stimulsoft viewer (only the viewer not the designer) uses your template and connects to the other Json string, Form_response.json which will supply the values for the template.
Please also share your visual studio project.
Thanks a lot.
-
- Posts: 7404
- Joined: Tue Mar 20, 2018 5:34 am
Re: Programmically design and connect to data
Hello,
In this case, you need to adjust your Form_response json source so that it is linked to the main one.
Thank you.
In this case, you need to adjust your Form_response json source so that it is linked to the main one.
Thank you.