SOLVED: Virtual mode with hierarchical data |
Post Reply |
Author | |
fjosesen
Groupie Joined: 30 June 2008 Status: Offline Points: 49 |
Post Options
Thanks(0)
Posted: 10 August 2009 at 12:56pm |
Hi, I'm trying to use the report control in virtual mode with hierarchical data. I've been investigating the use of "VirtualRowLevel" and "VirtualRowFlags" properties of "Metrics" object in "OnBeforeDrawRow" event. Everything goes fine if I load a one-level tree: 1 But I cannot get right result when trying to load a multilevel one: 1 Is there any way to show a multilevel tree using virtual mode to get this right result? (It seems the control ignore the property "VirtualRowLevel" when > 1). Kind regards,
|
|
Products: Suite Pro (ActiveX) v18.0.1
Toolkit Pro (MFC) v18.0.1 Platform: Windows 10 (64bit) Language: VC++ 2013 (MFC) |
|
fjosesen
Groupie Joined: 30 June 2008 Status: Offline Points: 49 |
Post Options
Thanks(0)
|
Hi! Any help? Codejock Support?
Regards,
FJSen
|
|
Products: Suite Pro (ActiveX) v18.0.1
Toolkit Pro (MFC) v18.0.1 Platform: Windows 10 (64bit) Language: VC++ 2013 (MFC) |
|
fjosesen
Groupie Joined: 30 June 2008 Status: Offline Points: 49 |
Post Options
Thanks(0)
|
Hi, I've tested it with 13.2 beta release at https://forum.codejock.com/uploads/BetaOCX/ReportControlBeta13-2.rar and it seems to semi-work. I expect the following result: 1 but i get this result: 1 All that I need to get the rigth result is to have any property or method in the ReportRecordItemMetrics object (at OnBeforeDrawRaw handler) to let me to say which "Virtual row levels" have to draw a vertical line in the current "virtual" record. Perhaps one call to this method or property per vertical line to draw indicating the level (0 >= Level < VirtualRowLevel). With this simple solution the Report control will provide a full hierarchical virtual mode support. Also, I'd like to upload an image to describe the problem. I've read that administrators must allow that ;-)
FJSen |
|
Products: Suite Pro (ActiveX) v18.0.1
Toolkit Pro (MFC) v18.0.1 Platform: Windows 10 (64bit) Language: VC++ 2013 (MFC) |
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
Ok - I appreciate you try my recent modifications which release prev restricted for one level deep childs. Please give me more details about the way current record can give you enough information about child hierarchy. We can draw everything but that's is behind this?
btw - You will ab le to upload images after you make enough posts - this is formal auto rule.
I recommend you to open Issue and we can communicate faster and you will upload all you want - images, docs, codes
|
|
fjosesen
Groupie Joined: 30 June 2008 Status: Offline Points: 49 |
Post Options
Thanks(0)
|
Hi MDoubson, When we work in virtual mode, the hosting app is responsible to give information to the control to draw the hierarchy. The only ways the control now accepts this information are (I'm talking about OnBeforeDrawRaw handler) : 1- "VirtualRowLevel" property of recordItemMetrics object 2- "VirtualRowFlags" property of recordItemMetrics object 3- "Expanded" property of row object So, we also need any method or property where we can tell to the control if are there any "uncles" of the item, that will be drawn later but whose parents are drawn yet (the 4th record in my example. I'd need something like this: recordItemMetrics->MarkVirtualRowLevelToDrawHiearchyLine(x); // x = 0 in my example when row = 3 Where 0 <= x < VirtualRowLevel of the current item.
If we'd have a more complex hierarchy, perhaps we'd need to draw several vertical lines (with several call to the new method): 1 When we are at OnBeforeDrawRaw of raw 5, we need to perform two calls to the new method to tell the control to draw two additional lines at indents 0 and 2:
I expect this explanation can clarify the problem. Kind regards, FJSen Note: I've opened an issue one week ago but nobody responds for the last 4 or 5 days. I think this method is better because more people can participate and give another points of view. Thanks. |
|
Products: Suite Pro (ActiveX) v18.0.1
Toolkit Pro (MFC) v18.0.1 Platform: Windows 10 (64bit) Language: VC++ 2013 (MFC) |
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
In term of discussion - may be, in term of some results - no.
Something strange happened - I worked with your issue - after it was reassigned to other person - now I assign it back and will work with you don't worry.
|
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
This snapshot show how current version support multi-levels vitrualmode - see updated https://forum.codejock.com/uploads/DemoVersion/EditVirtualListIconStatic.rar
and try build your own VB sample with - https://forum.codejock.com/uploads/BetaOCX/ReportControlBeta13-2.rar
|
|
fjosesen
Groupie Joined: 30 June 2008 Status: Offline Points: 49 |
Post Options
Thanks(0)
|
Hi Mark,
¡This seems to solve the problem! Once I've test it on my holidays return, I will rename the post to "SOLVED: ..."
Kind regards,
FJSen
|
|
Products: Suite Pro (ActiveX) v18.0.1
Toolkit Pro (MFC) v18.0.1 Platform: Windows 10 (64bit) Language: VC++ 2013 (MFC) |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |