Nested Sub-report Using Snapdevelpo
- New
- How-to
-
Soumya Pandey
- SnapDevelop
- Monday, 5 May 2025 07:25 PM UTC
Hello All,
I am trying to create a report having few sub-reports. If we use client-server approach, that is generating the report in Powerbuilder its working absolutely fine.
But now we have moved our project to Cloud based structure using Snapdevelop. And in there, when I am trying to call Retrieve API on main report's model its not retrieving the sub-reports by default.
For Example -- I am trying to create a report named 'Main Client Report' which is using one sub-report in a nested Datawindow (dw_subreport) of Main Client Report's datawindow. The dataobject for 'Main Client Report' is d_main_client_info and dataobject for sub_report is d_client_misc_info.
Now when I tried to convert d_main_client_info into the Model in snapdevelop, it created the below code block for the sub-report into the model --
[JsonIgnore]
[IgnoreDataMember]
[DwReport(typeof(D_Client_Misc_Info), ParamValues = "clientid")]
public IList<D_Client_Misc_Info> DW_subreport{ get; set; }
where clientid is the param which I am passing into the sub-report.
When i converted d_main_client_info into the Model, it by default created the model for the sub-report(that is D_Client_Misc_Info) too.
But when i am trying to finally call the Retrieve API on main Report model --
https://....../api/d_main_client_info/retrieve. Its only giving me the data for the query used in d_main_client_info not the data from sub-reports d_client_misc_info.
PS: i tried commenting out [JsonIgnore] and [IgnoreDataMember] too.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.