Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - [SOLVED] Grouping in RC
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[SOLVED] Grouping in RC

 Post Reply Post Reply
Author
Message
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Topic: [SOLVED] Grouping in RC
    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....
Back to Top
wlcabral View Drop Down
Groupie
Groupie
Avatar

Joined: 25 April 2007
Location: Brazil
Status: Offline
Points: 72
Post Options Post Options   Thanks (0) Thanks(0)   Quote wlcabral Quote  Post ReplyReply Direct Link To This Post Posted: 06 January 2009 at 5:56pm
did you call Populate() after your change ?
wlcabral
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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.
 
 
 
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....
Back to Top
wlcabral View Drop Down
Groupie
Groupie
Avatar

Joined: 25 April 2007
Location: Brazil
Status: Offline
Points: 72
Post Options Post Options   Thanks (0) Thanks(0)   Quote wlcabral Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.