![]() |
How to persist state of ReportCOntrol? |
Post Reply
|
| Author | |
Russ
Groupie
Joined: 21 September 2003 Location: Russian Federation Status: Offline Points: 28 |
Post Options
Thanks(0)
Quote Reply
Topic: How to persist state of ReportCOntrol?Posted: 03 January 2006 at 2:05pm |
|
Hi,
I am trying to do the following: the app has three "screens", they are all unrelated to each other, but user should be able to switch among them. I use XTP's ShortcutBar to let the user switch views. I dynamically create coresponding views and it works so far so good. The only problem I have is the ReportControl's GroupBy feature. The question: How can I know the current state of ReportControl's GroupBy and how can I programatically restore its state when users needs to look at the view containing Report cOntrol. Thank you in advance, Rouslan. |
|
![]() |
|
sserge
Moderator Group
Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 January 2006 at 5:15pm |
|
Hi Rouslan,
Look into the Report Control sample app, method CReportSampleView::OnAutoGrouping(). You can use the similar approach to work with GroupBy items. 1) Saving: iterate all GroupOrder items and save an array of item indexes; 2) Restore the array by adding corresponding columns into the Group Order.
-- WBR, Serge |
|
![]() |
|
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 |