Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Hide rows description in crosstab(Minimize gap between two aligned crosstabs)
Hide rows description in crosstab [message #1007291] Tue, 05 February 2013 11:52 Go to next message
Tomas Greif is currently offline Tomas GreifFriend
Messages: 53
Registered: September 2010
Member
Hi,
I do have to display two crosstabs side-by-side. I can do this by tweaking some formatting, however I'm not able to decrease gap between crosstabs. I've set padding/borders everywhere to 0, set font size to 1 pixel, but still the gap is too big. I'm attaching picture of what I have so far.

Is there any way how I can further decrease the gap?
Re: Hide rows description in crosstab [message #1007332 is a reply to message #1007291] Tue, 05 February 2013 14:49 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

You could try figuring out what the row header and row dimension cell Id's are, and putting this script into your crosstab's onRender script:

function onRenderCell( cellInst, reportContext )
{
if(cellInst.getCellID() == 38 || cellInst.getCellID() == 42){ //replace these two Id's with your values
cellInst.getStyle().setDisplay("none");
}
}

This got them close for me. I then went to the right crosstab and set its left margin to -4. That seemed to do it.

Hope this helps.


Michael

Developer Evangelist, Silanis
Re: Hide rows description in crosstab [message #1007338 is a reply to message #1007332] Tue, 05 February 2013 15:09 Go to previous messageGo to next message
Tomas Greif is currently offline Tomas GreifFriend
Messages: 53
Registered: September 2010
Member
Michael, thank you for your response. By Cell ID you mean "Element ID" or something else?
Regards,
Tomas

[Updated on: Tue, 05 February 2013 15:09]

Report message to a moderator

Re: Hide rows description in crosstab [message #1007365 is a reply to message #1007338] Tue, 05 February 2013 16:05 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

Yeah. That'll be the same thing as cellID. Sorry. Let me know.

Michael

Developer Evangelist, Silanis
Re: Hide rows description in crosstab [message #1007525 is a reply to message #1007365] Wed, 06 February 2013 10:28 Go to previous messageGo to next message
Tomas Greif is currently offline Tomas GreifFriend
Messages: 53
Registered: September 2010
Member
OK, I've found I can set "No Display" directly in BIRT Report Designer. Using this and negative margin I've managed to do what I want.
Thank you for your help.
Regards,
Tomas
Re: Hide rows description in crosstab [message #1007622 is a reply to message #1007525] Wed, 06 February 2013 18:53 Go to previous message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

No problem.

Michael

Developer Evangelist, Silanis
Previous Topic:Disable fully Birt logging
Next Topic:BIRT Bubble Chart not exporting to pdf
Goto Forum:
  


Current Time: Thu Apr 18 08:54:03 GMT 2024

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

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

Back to the top