Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Show empty text elements in report
Show empty text elements in report [message #1148331] Mon, 21 October 2013 12:28 Go to next message
Jan Krakora is currently offline Jan KrakoraFriend
Messages: 477
Registered: December 2009
Location: Prague
Senior Member
Hi,

I have a table with one column and two rows in its detail part. The second row contains an image while the first row contains a Text element. When the column binded to the Text element doesn't contain any text value, the Text element is removed from the layout.

I would like to keep the Text element within the layout so there will be an empty space. How can I do that?

When I use Data element, it works as I expected. But Data element can't show HTML.

[Updated on: Mon, 21 October 2013 13:14]

Report message to a moderator

Re: Show empty text elements in report [message #1148676 is a reply to message #1148331] Mon, 21 October 2013 17:16 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

Have you tried putting the text element into a grid within the table cell?

Michael

Developer Evangelist, Silanis
Re: Show empty text elements in report [message #1148768 is a reply to message #1148676] Mon, 21 October 2013 18:36 Go to previous messageGo to next message
Jan Krakora is currently offline Jan KrakoraFriend
Messages: 477
Registered: December 2009
Location: Prague
Senior Member
Yes, I put it into a grid. It doesn't help.
The only solution so far is to set a fixed height on the row of the grid containing that Text element.

I would like to find a better solution. Something like a 'showIfBlank' property. In fact that property exists, but it's ignored.
At least in matter of this meaning.
Re: Show empty text elements in report [message #1162832 is a reply to message #1148768] Wed, 30 October 2013 16:56 Go to previous messageGo to next message
Jan Krakora is currently offline Jan KrakoraFriend
Messages: 477
Registered: December 2009
Location: Prague
Senior Member
ping
Re: Show empty text elements in report [message #1196948 is a reply to message #1162832] Tue, 19 November 2013 17:28 Go to previous message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

Sorry for the delay. You could probably write a line of script in the onCreate method of the grid to check the row value used in the text box. If it's blank, you could set the height on the grid. If it's not, you'd leave it unset. Let me know.

Michael

Developer Evangelist, Silanis
Previous Topic:How to use an XML datasource with the API report engine ?
Next Topic:getting rid of pagebreaks in script
Goto Forum:
  


Current Time: Tue Mar 19 02:31:00 GMT 2024

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

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

Back to the top