Jump to content
Changes to the Jaspersoft community edition download ×

Using Group Headers as Column Headers... Bug?


2004 IR Help

Recommended Posts

By: Peter Birchmeier - pbirchmeier

Using Group Headers as Column Headers... Bug?

2005-08-04 00:18

Hi all

 

Due to special reasons, I can't use column headers and must use group headers instead.

In my opinion this shouldn't be a problem by setting the right group expression, e.g. to

<groupExpression><![CDATA[$V{COLUMN_NUMBER}.intValue()]]></groupExpression>

 

Unfortunately with the proposed expression, Jasper displays the group header only once, before the first data record is displayed.

 

I tried out some other group expressions, but neither of them have led to the desired result.

(another approach: setting groupExpression to new Boolean($V{COLUMN_COUNT}.intValue()==0} has no effect)

 

Concerning the first idea with COLUMN_NUMBER, i have to add that i have printed out the variable in a details area to see whether it has the right value (ascending, incremented on each column start) or not, and it does have. So why does the group expression not work? is it a bug?

 

Thanks for you help in advance.

 

Kind regards,

Peter

 

 

 

 

By: Teodor Danciu - teodord

RE: Using Group Headers as Column Headers...

2005-08-05 01:18

 

Hi,

 

I don't expect this to work due to the order in which

group expressions are evaluated and variables

incremented.

I do not recommend to have groups based on the

PAGE_NUMBER or COLUMN_NUMBER variables.

 

I also don't see why you cannot use the column

header section. Do you use it for something else or what?

 

Thank you,

Teodor

 

 

 

 

 

By: Peter Birchmeier - pbirchmeier

RE: Using Group Headers as Column Headers...

2005-08-05 02:40

Thanks for your answer.

 

a) The reason why I don't want to use column headers is because I bear in mind to use group headers with empty groupExpressions as pseudo title sections. And since group sections are nested inside the column header/footer, I don't see any other way...

 

b) yes it seems like the variables COLUMN_NUMBER and COLUMN_COUNTER are updated after the datarecord/column to be counted...

So there is no way to generate group headers before a column starts? hmm.. i will have a deeper look at the Jasper API - i hoped to find a way without.

 

Peter

 

 

 

 

By: Teodor Danciu - teodord

RE: Using Group Headers as Column Headers...

2005-08-05 02:45

 

Hi,

 

I think what we are missing is a flag like:

""isReprintHeaderOnEachColumn".

 

Thank you,

Teodor

 

 

 

 

 

By: Peter Birchmeier - pbirchmeier

RE: Using Group Headers as Column Headers...

2005-08-05 04:19

That sounds good

"isReprintHeaderOnEachColumn" accordingly to "isReprintHeaderOnEachPage"

 

and why not 2 other flags:

- "isReprintFooterOnEachPage"

- "isReprintFooterOnEachColumn"

 

or is it too dangerous because column sections wouldn't be used anymore? i think not

 

Peter

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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