Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Master/Sub Reports Design using XSD file instead of RDD file  (Read 11390 times)
Mamta S.
Posts: 2


« 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
Alex G.
Four Js
Posts: 155


« Reply #1 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   
Mamta S.
Posts: 2


« Reply #2 on: June 18, 2020, 06:10:14 am »

Thanks Alex for the response.
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines