Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Is possible to re-use the header and footer
Is possible to re-use the header and footer [message #857648] Thu, 26 April 2012 18:43 Go to next message
zubin Missing name is currently offline zubin Missing nameFriend
Messages: 32
Registered: July 2009
Member
Is that possible to create re-use header and footer for all the report. some thing like include report in another report(like we can do include html page in another page).

Currently what I can do is to create template and use this template as base to create new report. the issue of this approach is once you need to make change, you need to modify all the existing reports.

Re: Is possible to re-use the header and footer [message #857679 is a reply to message #857648] Thu, 26 April 2012 19:10 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

You should be able to create a master page and put it in a library
component. Then all your reports should include the library. Your
template could even include the library. Then if you need to change the
header and footer, you only need to change the library and all
referenced reports will pickup the change.

Jason

On 4/26/2012 2:43 PM, zubin Mising name wrote:
> Is that possible to create re-use header and footer for all the report.
> some thing like include report in another report(like we can do include
> html page in another page).
>
> Currently what I can do is to create template and use this template as
> base to create new report. the issue of this approach is once you need
> to make change, you need to modify all the existing reports.
>
>
Re: Is possible to re-use the header and footer [message #857726 is a reply to message #857679] Thu, 26 April 2012 20:09 Go to previous messageGo to next message
zubin Missing name is currently offline zubin Missing nameFriend
Messages: 32
Registered: July 2009
Member
I Created an library with footer in master pages. But how can i use footer in the report? I imported the libarary into to report, but i was able to do drag and drop the component(a grid) in footer to the footer of report. and when i try to add grid to the layout, I am getting birt exception "The parent element 'footer' is not the top-level report item in component. here is the detail message:

A BIRT exception occurred.
Plug-in Provider:Eclipse BIRT Project
Plug-in Name:BIRT Model
Plug-in ID:org.eclipse.birt.report.model
Version:3.7.2.v20120213
Error Code:Error.ExtendsForbiddenException.PARENT_NOT_IN_COMPONENT
Error Message:The parent element "footer" is not the top-level report item in components.
Re: Is possible to re-use the header and footer [message #870300 is a reply to message #857726] Mon, 07 May 2012 15:31 Go to previous message
zubin Missing name is currently offline zubin Missing nameFriend
Messages: 32
Registered: July 2009
Member
Just to answer my question back in case anyone interested to know. The error shows above seems a ui bug of birt ide.

Instead doing drag and drop, do select on component/header/footer/report items and "add it to report"(if you use windows right click on the report item to pop up the menu and there is a option to add report item to the report).

Previous Topic:How to create user in birt
Next Topic:javascript to iterate through a dataset to find a value?
Goto Forum:
  


Current Time: Thu Jan 23 00:21:59 GMT 2020

Powered by FUDForum. Page generated in 0.01732 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top