Print Page | Close Window

[SOLVED] Grouping in RC

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=13090
Printed Date: 12 May 2024 at 5:56am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED] Grouping in RC
Posted By: Aaron
Subject: [SOLVED] Grouping in RC
Date Posted: 06 January 2009 at 3:40pm
Hi,
 
I'm a little confused about grouping of RC. I uploaded image to make things clear  
 
Image on the left is before changing the RecordItem from "Onbekend" into "Uitgelezen". The image on the right is after the change. You can see what happened. This will apply on all items in group except for the last item.
 
Note: If I would change a RecordItem (the last one in the group) it will be grouped as expected (for example item "258194" in image) and we would have: Onbekend (5) and Uitgelezen (15)
 
 
Can someone please explain how this could be solved?
 
 
 
 
 
Thanks a lot
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....



Replies:
Posted By: wlcabral
Date Posted: 06 January 2009 at 5:56pm
did you call Populate() after your change ?


-------------
wlcabral


Posted By: Aaron
Date Posted: 07 January 2009 at 1:01am
Hi Walter,
 
Yes I did.
 
So you also believe it's strange... It only happens when changing a reportItem that isn't last in group. If I would change the last one it will be grouped correctly and when the records are loaded from database (I do save RC settings) they will be grouped as should. I will create a test project for this and you will see what I mean.
 
Thanks
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: Aaron
Date Posted: 07 January 2009 at 4:24am
Hi,
 
I created a test for this and the way I look at it now, it looks more and more like a bug.
 
https://forum.codejock.com/uploads/20090107_042332_Test_Grouping.zip - uploads/20090107_042332_Test_Grouping.zip
 
 
Thanks
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: wlcabral
Date Posted: 07 January 2009 at 9:29am
I needed to rewrite the code in Foxpro...
 
To work properly, I changed the "Value" property, not  "Caption"...
 
 
wndReportControl.FocusedRow.Record(0).Value = "Uploaded"


-------------
wlcabral


Posted By: Aaron
Date Posted: 07 January 2009 at 12:44pm
Hi Walter,
 
Thanks for looking at it
 
.Value did the trick.
 
And even without calling .Populate it works OK. Strange though that with .Caption only first / last item would be grouped properly.
 
Thanks a lot
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net