Page 1 of 1

How to dynamically load external JSON data into Stimulsoft Reports.JS at runtime?

Posted: Sat Aug 02, 2025 2:57 am
by lyly19
Hi everyone,
I’m currently working on a web project using Stimulsoft Reports.JS, and I’m wondering what the best practice is for loading external JSON data dynamically at runtime, instead of embedding it directly in the report template.

For example:

Can I call an external REST API, get the JSON, and bind it to the report viewer on the client side?

Do I need to preprocess the data, or is there an inbuilt method in Reports.JS for this?

Any recommended examples or code snippets would be really helpful!

Thanks in advance for any insights or experiences you can share.
Looking forward to your tips!

Re: How to dynamically load external JSON data into Stimulsoft Reports.JS at runtime?

Posted: Mon Aug 04, 2025 1:49 pm
by Lech Kulikowski
Hello,

You can retrive data and use the regData() method:
https://www.stimulsoft.com/en/documenta ... _files.htm

also, you can implement your own data adapter and retrive data as you need:
https://github.com/stimulsoft/DataAdapters.JS

Thank you.