Four Js Development Tools Forum

Discussions by product => Reporting tools (GRW, GRE) => Topic started by: Mamta S. on June 17, 2020, 05:42:33 am



Title: Master/Sub Reports Design using XSD file instead of RDD file
Post by: Mamta S. on June 17, 2020, 05:42:33 am
Hello,

Currently in our system we are creating report design (.4rp) documents using the XSD file generated for the XML report output.
And then reports are generated using this function 'fgl_report_runFromXML'.

We want to use sub reports to design standard header and footers which can be used across reports. I have seen the genero's example of Shared Footers on one of the other topics and have also seen one example in Report Demo Project. The examples given uses RDD File to link Master Report to call Sub Reports.

Is there a way this can be achieved in reports which are designed using a XSD File ?

Thanks
Mamta


Title: Re: Master/Sub Reports Design using XSD file instead of RDD file
Post by: Alex G. on June 17, 2020, 09:09:05 am
Hi Mamta,

sub reports are exclusively available for rdd based reports. The primary reason for this is, that the xsd format does not cater for the concept.
As you intend to use sub reports as a means to reuse document fragments, you might want to consider injecting or replacing a part of one .4rp file with a part from another file via a script much like you would copy past a header from one report to another in the designer.
That way you could have a "master" design from which parts are copied into all dependent designs whenever the master design is changed.
Manipulating design files with scripts can cause runtime errors if it isn't done correctly. Correctness can be checked by loading and saving the file in the designer. If it didn't shake during the process, the patch it fine.
Best regards,

Alex   


Title: Re: Master/Sub Reports Design using XSD file instead of RDD file
Post by: Mamta S. on June 18, 2020, 06:10:14 am
Thanks Alex for the response.