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

Stimulsoft Reports.JS discussion
Post Reply
lyly19
Posts: 1
Joined: Sat Aug 02, 2025 2:54 am

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

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

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

Post 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.
Post Reply