Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Simple way to add space to a data element(How do I pad a string with leading spaces?)
Simple way to add space to a data element [message #1434291] Mon, 29 September 2014 23:23 Go to next message
Norm Merrill is currently offline Norm MerrillFriend
Messages: 9
Registered: September 2014
Junior Member
I have a hierarchy report and I want to indent the children. I have a level value field but cannot figure out how to add spaces in front of the children based on the level. I used LPAD in my SQL statement and it works fine but cant get the report to reflect the tree structure. I would think theres a way to do this with the expession builder. Any suggestions?

Thanks

Norm

[Updated on: Tue, 30 September 2014 18:32]

Report message to a moderator

Re: Simple way to add space to a data element [message #1434959 is a reply to message #1434291] Tue, 30 September 2014 21:34 Go to previous messageGo to next message
Norm Merrill is currently offline Norm MerrillFriend
Messages: 9
Registered: September 2014
Junior Member
After trying a few different ideas (BirtStr.concat), I noticed that the leading spaces are coming through from the SQL statement but they are being stripped in the report. So I guess my real question is how do I keep the leading spaces from being stripped?
Re: Simple way to add space to a data element [message #1435189 is a reply to message #1434959] Wed, 01 October 2014 06:12 Go to previous message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

Try replacing your spaces with  

Michael

Developer Evangelist, Silanis
Previous Topic:Maximo
Next Topic:Eclipse 4.2.2.1 with birt 4.3
Goto Forum:
  


Current Time: Fri Apr 26 05:41:11 GMT 2024

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

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

Back to the top