Register a new JSON data as DataSource

Stimulsoft Reports.PYTHON discussion
Post Reply
felippe.silva
Posts: 2
Joined: Fri Nov 08, 2024 8:19 pm

Register a new JSON data as DataSource

Post by felippe.silva »

I need to do a server-side export without any frontend/javascript how can I set the new JSON data in report ?
Lech Kulikowski
Posts: 6977
Joined: Tue Mar 20, 2018 5:34 am

Re: Register a new JSON data as DataSource

Post by Lech Kulikowski »

Hello,

Please check the following sample:
https://github.com/stimulsoft/Samples-R ... er_Side.py

Thank you.
felippe.silva
Posts: 2
Joined: Fri Nov 08, 2024 8:19 pm

Re: Register a new JSON data as DataSource

Post by felippe.silva »

Hi, the simple export works well, but in my case I need load an JSON as a DataSource, but in the git repository doesn't have any example to register the DataSource in server side mode.

I tested a report with 3 DataSources: 2 postgres and 1 json file.
In this case only the 2 postgres pass through onBeginProcessData, the JSON DataSource don't.

In my report I need load an JSON as DataSource, but I need set it programmaticaly.
Lech Kulikowski
Posts: 6977
Joined: Tue Mar 20, 2018 5:34 am

Re: Register a new JSON data as DataSource

Post by Lech Kulikowski »

Hello,

Please check the following article:
https://www.stimulsoft.com/en/documenta ... _files.htm

Thank you.
Post Reply