<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : How to persist state of ReportC&#079;ntrol?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : How to persist state of ReportC&#079;ntrol?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 06 Apr 2026 23:58:29 +0000</pubDate>
  <lastBuildDate>Tue, 03 Jan 2006 17:15:43 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=3461</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[How to persist state of ReportC&#079;ntrol? : Hi Rouslan,Look into the Report...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3461&amp;PID=10392&amp;title=how-to-persist-state-of-reportcontrol#10392</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 3461<br /><strong>Posted:</strong> 03 January 2006 at 5:15pm<br /><br />Hi Rouslan,<br><br>Look into the Report Control sample app, method CReportSampleView::OnAutoGrouping(). You can use the similar approach to work with GroupBy items.<br><br>1) Saving: iterate all GroupOrder items and save an array of item indexes;<br>2) Restore the array by adding corresponding columns into the Group Order.<br><br><table width="99%"><tr><td><pre class="BBcode"><br>// saving<br>int nCount =&nbsp;  GetReportCtrl().GetColumns()-&gt;GetGroupsOrder()-&gt;GetCou nt();<br>// iterate and save each Item Index:&nbsp;  GetReportCtrl().GetColumns()-&gt;GetGroupsOrder()-&gt;GetAt( i)-&gt;GetItemIndex();<br><br><br>// restoring: iterate saved Item Indexes array:<br>CXTPReportColumn* pColumn = GetReportCtrl().GetColumns()-&gt;Find(SavedIndex(i));<br> GetReportCtrl().GetColumns()-&gt;GetGroupsOrder()-&gt;Add(pC olumn);<br></pre></td></tr></table><br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Tue, 03 Jan 2006 17:15:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3461&amp;PID=10392&amp;title=how-to-persist-state-of-reportcontrol#10392</guid>
  </item> 
  <item>
   <title><![CDATA[How to persist state of ReportC&#079;ntrol? : Hi,  I am trying to do the following:...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3461&amp;PID=10389&amp;title=how-to-persist-state-of-reportcontrol#10389</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=186">Russ</a><br /><strong>Subject:</strong> 3461<br /><strong>Posted:</strong> 03 January 2006 at 2:05pm<br /><br />Hi,<br /><br />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. <br /><br />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.<br /><br />Thank you in advance,<br />Rouslan.&nbsp;&nbsp;&nbsp;<br />]]>
   </description>
   <pubDate>Tue, 03 Jan 2006 14:05:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3461&amp;PID=10389&amp;title=how-to-persist-state-of-reportcontrol#10389</guid>
  </item> 
 </channel>
</rss>