temberjosef Posted October 15, 2009 Share Posted October 15, 2009 Hi there,i have following problem, but found no solution so far. so - here i am:i have this datas: id,familyname,firstname,data_xy1,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 Data32 Smith Henry Data23 Snoopy Henry Data3 Data4 if I deactivate "print repeated values"it looks like this1 Smith John Data1 Data2 Data32 Henry Data23 Snoopy Data3 Data4grouping doesn't help either...I appreciate any idea, Yours JosefPost Edited by temberjosef at 10/15/2009 20:07 Link to comment Share on other sites More sharing options...
mdahlman Posted October 15, 2009 Share Posted October 15, 2009 Josef,You could create a single text field that has this value:$F{familyname} + "," + $F{firstname}Then deactivating 'Print repeated values' should work as you need it to.Regards,Matt Link to comment Share on other sites More sharing options...
temberjosef Posted October 15, 2009 Author Share Posted October 15, 2009 Hi MattFirst: 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 More sharing options...
Gaby38 Posted October 15, 2009 Share Posted October 15, 2009 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'sHope this helpsGaby Link to comment Share on other sites More sharing options...
temberjosef Posted October 15, 2009 Author Share Posted October 15, 2009 The grouping was a good ideastill 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 bandand 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 More sharing options...
mdahlman Posted October 16, 2009 Share Posted October 16, 2009 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now