Page 1 of 1

Access JSON Data Source headers from dotnet code

Posted: Mon Sep 23, 2024 3:07 pm
by mgomez
Hello everybody,

In the report designer we can manage the headers for a JSON data source:
sc1.jpg
sc1.jpg (30.54 KiB) Viewed 1241 times
However, I am looking for the headers of the data source inside the dotnet code but I have not found them:
sc2.jpg
sc2.jpg (258.29 KiB) Viewed 1241 times
Please, could you tell me how to get the headers of a data source looking inside the data source object (StiDataSource class)?

Thanks in advance
Regards

Re: Access JSON Data Source headers from dotnet code

Posted: Mon Sep 23, 2024 7:02 pm
by Lech Kulikowski
Hello,

You need to use the StiJsonDatabase:
StiJsonDatabase jsondb = new StiJsonDatabase();
jsondb.Headers.Add();

Thank you.