Page 1 of 1

Register a new JSON data as DataSource

Posted: Thu Nov 14, 2024 9:08 pm
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 ?

Re: Register a new JSON data as DataSource

Posted: Fri Nov 15, 2024 10:38 am
by Lech Kulikowski
Hello,

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

Thank you.

Re: Register a new JSON data as DataSource

Posted: Fri Nov 15, 2024 4:58 pm
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.

Re: Register a new JSON data as DataSource

Posted: Mon Nov 18, 2024 1:52 pm
by Lech Kulikowski
Hello,

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

Thank you.