<?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="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Modifying a Page View</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Modifying a Page View</description>
  <pubDate>Thu, 11 Jun 2026 21:12:43 -700</pubDate>
  <lastBuildDate>Mon, 10 Sep 2007 13:45:28 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=421</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Modifying a Page View : A Cabana user asked:   I have...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=421&amp;PID=1140#1140</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=97" rel="nofollow">Bill Jensen</a><br /><strong>Subject:</strong> 421<br /><strong>Posted:</strong> 10-Sep-2007 at 1:45pm<br /><br /><strong>A Cabana user asked:</strong><DIV>&nbsp;</DIV><DIV><DIV>I have built my own PageView and I am attempting to remove the nav bar. I want the search to perform all of the binding index changes.</DIV><DIV>The problem is that the PageViewToolBar is required. I have not been successful in finding a way around this. How would you suggest this?</DIV><DIV>&nbsp;</DIV><DIV><strong>Ward replied:</strong></DIV><DIV>&nbsp;</DIV><DIV><DIV dir=ltr align=left><SPAN =921550019-10092007>In taking Cabana out of the box, you realize that you are buying into the structures and layouts within CabanaLib.</SPAN></DIV><DIV dir=ltr align=left><SPAN =921550019-10092007></SPAN>&nbsp;</DIV><DIV dir=ltr align=left><SPAN =921550019-10092007>If you want to depart from that, you'll have to supercede some of what is in that box. And to do&nbsp;that, you have to look into the box.</SPAN></DIV><DIV dir=ltr align=left><SPAN =921550019-10092007></SPAN>&nbsp;</DIV><DIV dir=ltr align=left><SPAN =921550019-10092007>It turns out that that the PageViewToolBar is presently exposed by the <FONT color=#2b91af size=2>SummaryDetailPageController </FONT>which is the base class for the PageController you are using.</SPAN></DIV><DIV dir=ltr align=left><SPAN =921550019-10092007></SPAN>&nbsp;</DIV><DIV dir=ltr align=left><SPAN =921550019-10092007>You can make the toolbar disappear in many ways. Here is one way. Override the CreateViews method in your controller as I have done here for the <FONT color=#2b91af size=2>SalesRepPageController</FONT>:</SPAN></DIV><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><DIV dir=ltr align=left><SPAN =921550019-10092007><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 9pt; COLOR: gray; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">///</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: green; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> </SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: gray; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">&lt;summary&gt;</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: green; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">Create all managed views.</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: gray; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">&lt;/summary&gt;<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 9pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">protected</SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> <SPAN style="COLOR: blue">override</SPAN> <SPAN style="COLOR: blue">void</SPAN> CreateViews() {<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN><SPAN style="COLOR: blue">base</SPAN>.CreateViews();<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>PageToolBar.Visible = <SPAN style="COLOR: blue">false</SPAN>;<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">}</SPAN></SPAN></P></DIV></BLOCKQUOTE><DIV dir=ltr align=left><SPAN =921550019-10092007></SPAN>&nbsp;</DIV><DIV dir=ltr align=left><SPAN =921550019-10092007>You could create your own subclass&nbsp;to do this if it will be your standard practice.</SPAN></DIV><DIV dir=ltr align=left><SPAN =921550019-10092007></SPAN>&nbsp;</DIV><DIV dir=ltr align=left><SPAN =921550019-10092007>This is a&nbsp;hack. The tool bar is still there and wired up to the navigator.</SPAN></DIV><DIV dir=ltr align=left><SPAN =921550019-10092007></SPAN>&nbsp;</DIV><DIV dir=ltr align=left><SPAN =921550019-10092007>Ultimately, you may want to use your own PageControllers and layout views. You can do that anytime and still keep the rest of the Cabana infrastructure. But you'll have to drill into CabanaLib to see how it all comes together. Maybe you wait for this until you have your feet under you. It won't hurt you to continue in this fashion for awhile; the change will be invisible at the UI Module layer.</SPAN></DIV></DIV></DIV>]]>
   </description>
   <pubDate>Mon, 10 Sep 2007 13:45:28 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=421&amp;PID=1140#1140</guid>
  </item> 
 </channel>
</rss>