Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Hide Grid second masterpage if output as one page(Hide Grid)
icon14.gif  Hide Grid second masterpage if output as one page [message #525363] Tue, 06 April 2010 07:19 Go to next message
JP Redro is currently offline JP RedroFriend
Messages: 181
Registered: July 2009
Location: India
Senior Member

Hi All,

I have two master Pages in my report. Whenever output page is only one i want to hide second master page. please assist me. or suggest me hot to hide grid.

Thanks,
Prakash.


Thanks,
JP
Re: Hide Grid second masterpage if output as one page [message #525485 is a reply to message #525363] Tue, 06 April 2010 17:02 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Prakash,

Try to put an onRender script on the grid that has something like:

if( pageNumber > 1 ){
this.getStyle().display = "none";
}

Jason

JP wrote:
> Hi All,
>
> I have two master Pages in my report. Whenever output page is only one i
> want to hide second master page. please assist me. or suggest me hot to
> hide grid.
>
> Thanks,
> Prakash.
Re: Hide Grid second masterpage if output as one page [message #525700 is a reply to message #525485] Wed, 07 April 2010 13:47 Go to previous messageGo to next message
JP Redro is currently offline JP RedroFriend
Messages: 181
Registered: July 2009
Location: India
Senior Member

Hi Jason,

I have tested with your code but no luck. And also i have tested with the following code. Still it is displaying two pages with second page is empty.

if(row["RC"] <=10 ){
this.getStyle().display = "none";
}

I think this grid did not bind with any table so that we are not able to apply any condition with dataset element . Is this right.

Please suggest me with good approach.


Thanks,
JP
Re: Hide Grid second masterpage if output as one page [message #525785 is a reply to message #525700] Wed, 07 April 2010 19:08 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

I modified your example and sent it to you. I believe you are using
2.2.1 which does not allow you to bind a grid to a dataset. 2.5.2 does
allow this.

JP wrote:
> Hi Jason,
>
> I have tested with your code but no luck. And also i have tested with
> the following code. Still it is displaying two pages with second page is
> empty.
>
> if(row["RC"] <=10 ){
> this.getStyle().display = "none";
> }
>
> I think this grid did not bind with any table so that we are not able to
> apply any condition with dataset element . Is this right.
>
> Please suggest me with good approach.
>
Previous Topic:Chart with a dynamic number of series (based on data)
Next Topic:any tips for debugging a report with scripted data sources?
Goto Forum:
  


Current Time: Fri Apr 26 13:58:21 GMT 2024

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

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

Back to the top