|
Re: Masterpage - Footer [message #524420 is a reply to message #524013] |
Wed, 31 March 2010 20:42 |
|
Prakash,
If you are using separate run and render task (ie frameset servlet
mapping in the viewer) you could put an onrender script on items in the
footer that have a script like:
if( pageNumber == totalPage ){
this.getStyle().backgroundColor = "Red";
}else{
this.getStyle().display = "none";
}
Jason
prakash wrote:
> I have a requrement where I need to show some of the footer elements
> should be displayed only on last page, and the other elements in the
> footer will be displayed on every page.
> I have tyried to hide using pageNumber==totalPages, but it didnt work.
> Anyother ways to do it?
|
|
|
|
|
Re: Masterpage - Footer [message #525492 is a reply to message #525305] |
Tue, 06 April 2010 17:08 |
|
Prakash,
Is there a reason you can not use a run task and then a render task from
the API?
Jason
prakash wrote:
> As there are no replies from the community, I assume BIRT doesnt provide
> solution for a simple requirement like this. If that is true, then it is
> high time that BIRT team revisit their solution for basic and simple
> requirements that needs to be simple and straight not some tricky
> workarounds. BIRT team is listening I believe.
|
|
|
Re: Masterpage - Footer [message #526546 is a reply to message #525492] |
Mon, 12 April 2010 09:09 |
prakash Messages: 10 Registered: February 2010 |
Junior Member |
|
|
Jason,
Yes, the reson is simple, we dont want to change the current method to generate the reports as some of the reports are already in production. I have tried Run then Render, which failed to execute some of the scripts that were working fine with RunAndRender task.
Since you mentioned it, the original script is attached to 'onRender' event, meaning, expression should be evaluated at the time of 'Render' which means, choice of Task should not matter in producing the accurate results as both tasks does a Render job. Moreover, pageNumber and totalPage variables should be made available with accurate values for 'onRender' event irrespective of the task that we choose. This is very very basic and fundamental requirement I believe.
|
|
|
Powered by
FUDForum. Page generated in 0.02330 seconds