Programmically design and connect to data

Stimulsoft Reports.WEB discussion
Post Reply
Mike Avan
Posts: 5
Joined: Sun Aug 17, 2025 4:51 pm

Programmically design and connect to data

Post by Mike Avan »

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
Form_Elements.json
(1.04 KiB) Downloaded 5 times
, 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
Form_response.json
(157 Bytes) Downloaded 8 times
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
Lech Kulikowski
Posts: 7404
Joined: Tue Mar 20, 2018 5:34 am

Re: Programmically design and connect to data

Post by Lech Kulikowski »

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.
Mike Avan
Posts: 5
Joined: Sun Aug 17, 2025 4:51 pm

Re: Programmically design and connect to data

Post by Mike Avan »

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

Re: Programmically design and connect to data

Post by Lech Kulikowski »

Hello,

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
Screenshot 2025-10-02 232939.png (213.86 KiB) Viewed 37 times
Mike Avan
Posts: 5
Joined: Sun Aug 17, 2025 4:51 pm

Re: Programmically design and connect to data

Post by Mike Avan »

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

Re: Programmically design and connect to data

Post by Lech Kulikowski »

Hello,

In this case, you need to adjust your Form_response json source so that it is linked to the main one.

Thank you.
Post Reply