Jump to content
Changes to the Jaspersoft community edition download ×

Remove line when blank


2005 IR Help

Recommended Posts

By: Andreas Toom - flottis

Remove line when blank

2005-03-16 02:49

Hello,

I was wondering how the "Remove line when blank" attributes affects a text field. In my report i want to add the customer address like this

 

addressline1

addressline2

addressline3

zipcode city

country

 

But it is not necessary that addressline2 and addressline3 contains data so I want to remove these lines completely when they are blank. The problem now is that they are blank and takes up a line in space which looks really ugly. Any way to solve this?

 

/Andreas, andreas.toom@comitnet.com

 

 

 

 

By: Andreas Toom - flottis

RE: Remove line when blank

2005-03-21 06:49

Hello again,

I tried what you described but couldn't get it to work. I've made a small test report where the second adressline is set with the properties blank when null & remove line when blank, it located at: http://enterprise.hb.se/~flottis/jasper/customeraccount.jrxml,

 

Do you have time to take a quick look?

 

/Andreas

 

 

 

 

By: C-Box - c-box

RE: Remove line when blank

2005-03-21 07:10

You must set the other fields that are beyond your adressLine2 and should move up to PositionType "FLOAT" instead of "FIXRELATIVETOTOP" ! Then it works! :-)

 

So you can set ALL fields to FLOAT that should move when a field is blank and the attribute RemoveLineWhenBlank is set to true.

 

hth

C-Box

 

 

 

 

By: Andreas Toom - flottis

RE: Remove line when blank

2005-03-22 00:57

Hey, now it works, thank you very much!

 

/Andreas

 

 

 

 

By: C-Box - c-box

RE: Remove line when blank

2005-03-17 03:38

Well, you must pay attention that you haven't any other fields at the same line more right ... so if there are any other fields on the same y-coordinate then the remove line when blank doesn't work. (switch also the "Blank when null" to true).

 

So I also fill the adress fields similiar to you and it works.

 

hth

C-Box

 

 

 

 

 

By: eileene_c - eileene_c

RE: Remove line when blank

2005-06-29 23:56

this is exactly my problem. is there any alternative solution for this.

 

This is the report design:

 

ID Name Class1

Address Class2

Class3

 

* An ID can be enrolled in 1 or more classes. If he is not enrolled in any class, it should not appear.

I've tried "Remove line when blank" and "float" on Class2 and 3 but they do not move up because of the Address on the left.

 

Any ideas?

 

 

 

 

By: eileene_c - eileene_c

RE: Remove line when blank

2005-06-29 23:58

The report design should have looked like this:

 

ID Name Class1

Address Class2

Class3

 

* Class 2 and 3 are listed below Class1

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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...