How to display hierarchical structure of the JSON in the Dictionary

Stimulsoft Reports.JS discussion
Post Reply
chandi
Posts: 10
Joined: Thu Apr 01, 2021 4:33 pm

How to display hierarchical structure of the JSON in the Dictionary

Post by chandi »

Please refer the attached screen for my code and .json file.
code wit json.png
code wit json.png (30.08 KiB) Viewed 2158 times
After loaded data sources to the designer it looks like as follows.
datasource.png
datasource.png (19.23 KiB) Viewed 2157 times
Is there anyway to remove "EmployeeDetails_" from child.

And also I want to know how I can add fields from different tables at the same time.
As example..if I want to show departments under each employee in a report how I can achieve it.


Thank You,
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: How to display hierarchical structure of the JSON in the Dictionary

Post by Lech Kulikowski »

Hello,

In that case, you can create a master-detail report:
https://www.stimulsoft.com/en/documenta ... report.htm
https://demo.stimulsoft.com/#Net/MasterDetail

Thank you.
chandi
Posts: 10
Joined: Thu Apr 01, 2021 4:33 pm

Re: How to display hierarchical structure of the JSON in the Dictionary

Post by chandi »

Hi Lech,

Thanks for your reply.
Is there anyway to remove "EmployeeDetails_" from child datasource name.
And also how to load data sources like following screen instead of loading data sources for each and every sub objects. I am using JSON file to load data sources.
withsubobjects.PNG
withsubobjects.PNG (13.03 KiB) Viewed 2134 times
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: How to display hierarchical structure of the JSON in the Dictionary

Post by Lech Kulikowski »

Hello,

Sorry, maybe we did not exactly understand your question. Could you explain your issue in more detail?

Thank you.
Post Reply