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

solved!! - question about "print repeated values"


temberjosef

Recommended Posts

Hi there,

i have following problem, but found no solution so far. so - here i am:

i have this datas:

 id,familyname,firstname,data_xy

1,Smith,John,Data1

1,Smith,John,Data2

1,Smith,John,Data3

2,Smith,Henry,Data2

3,Snoopy,Henry,Data3

3,Snoopy,Henry,Data7

 

and I want to print it this way:

1   Smith   John   Data1

                               Data2

                               Data3

2   Smith   Henry  Data2

3   Snoopy  Henry  Data3

                                  Data4

 

if I deactivate "print repeated values"

it looks like this

1 Smith John Data1

                         Data2

                         Data3

2             Henry Data2

3 Snoopy           Data3

                            Data4

grouping doesn't help either...

I appreciate any idea,

 

Yours Josef



Post Edited by temberjosef at 10/15/2009 20:07
Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi Matt

First: Thanks for your quick answer.

That's a possibility, but to be honest I have to put those databasefields into two separate textfields (due to design specifications)

And further it doesn't help me with to different persons both called "John Smith"

Is there no other solution?

Josef

Link to comment
Share on other sites

Hello,

Perhaps, try to create a Group on the id. In the group header put the two fields Familyname and firstname and in the detail band the data field(s).

You shoudn't have to deactivate " 'Print repeated values'"

It should fix the problem of identical names but different id's

Hope this helps

Gaby

Link to comment
Share on other sites

The grouping was a good idea

still had the problem that first data-value was not in line with the name,

so i put the data value as well in the group band

and put this expression into the detail band :

new Boolean(! ($V{starter_COUNT}.intValue()==1))

 

Thanks all together for your quick help,

yours Josef

Link to comment
Share on other sites

I see. Yes, grouping is the correct solution to your problem.

But I think you'll find that the report structure is easier to read if you have no group header and no group footer. Just leave the detail layout as it was already, but set the Print When expression on the first and last name to the opposite of what you wrote:

new Boolean($V{starter_COUNT}.intValue()==1)

Regards,
Matt

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