I haved created 5 parameters field at page header.When the parameter key in nothing then it will appear blank. My problem is how to make the parameter P_2 move to the top when parameter P_1 key in nothnig.
Asked
Active
Viewed 2,313 times
2
-
What do you mean "move to the top"? – Alex K Mar 14 '12 at 10:01
-
Do you want to use Java API (JasperReports or DynamicJasper)? – Alex K Mar 14 '12 at 10:02
-
I mean if first field contain no data then it have space between first field and other field below. For your information i create field at page header, the field will display parameter that I key in. i want to use dynamic jasper. – Rozie Rozack Mar 14 '12 at 11:10
1 Answers
1
You should be able to accomplish this pretty easily with jasper-reports. Set your fields to Blank When Null = true
and Remove Line When Blank = true
.

Ben English
- 3,900
- 2
- 22
- 32
-
1Its work when I arrange the field from top to bottom. But if I arrange the field left and right its doesn't work. – Rozie Rozack Mar 15 '12 at 03:29
-
1well that wasn't your question now was it? To accomplish that you'll have to create 5 fields and then write the appropriate conditional logic in each one so that the correct value shows in each depending on your parameter values. (It's going to be a bunch of ternary if clauses). Or you'll have to convert it to a crosstab style report or handle it in your query. – Ben English Mar 15 '12 at 14:30