Jump to content
We've recently updated our Privacy Statement, available here ×

Labels on details rows?


overday

Recommended Posts

Hi, first of all, sorry by bad english :P

 

I have this xml report on iReport:

 

 

]http://img45.imageshack.us/img45/8766/rep1sd0.jpg

 

$F{INFORMACOES} and $F{INFO2} are passed by JavaBeans, and they are textField fields. Label 1 and Label 2 are staticText fields.

 

My problem is: when the text on $F{INFORMACOES} has only one line, the $F{INFO2} and its label (Label 2) are ok, like this:

 

 

]http://img520.imageshack.us/img520/8822/rep2fs4.jpg

 

The problem is when $F{INFORMACOES} has more than one line: I know how to make the field under it ($F{INFO2}) float and adjust its top position (right click, properties, Position Type = Float) but that happens to the Label 2:

 

 

]http://img518.imageshack.us/img518/2998/rep3fc0.jpg

 

As you can see, the Label 2 does not align with $F{INFO2}. It should look like this:

 

 

]http://img518.imageshack.us/img518/8577/rep4nd1.jpg

 

Is there a way to Label 2 "top position" and $F{INFO2} "top position" to be always the same (i.e. make them both float when $F{INFORMACOES} overflows)?

 

 

Thanks!

Post edited by: overday, at: 2007/05/18 17:55

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

overday,

 

i saw your post but wasn't really sure what it was until i read it.

it seems that you have a "floating" issue. :)

if i understood you correctly, you want to make some elements move down together when the elements above them "stretch".

if this is the case, i thinkt that this link will show you a possible solution to your "challenge" (never say problem):

http://www.jasperforge.org/index.php?option=com_joomlaboard&Itemid=&func=view&catid=9&id=23909#23909

 

your requirements seem similar to vedu's problem as you will see in the thread i am directing you to.

 

take note of how to use what I personally call a "Pusher Line Element" that will push your elements down at the same time.

i am also posting a sample that i made so you (and others needing this remedy) could experiment on it and fully understand what i mean.

take note of what properties are set.

enjoy!

 

edwin [file name=pusher_line.jrxml size=8444]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/pusher_line.jrxml[/file]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...