<?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 : Add controls to ViewFactory</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Add controls to ViewFactory</description>
  <pubDate>Thu, 11 Jun 2026 09:19:26 -700</pubDate>
  <lastBuildDate>Tue, 15 Jan 2008 00:43:34 -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=655</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>Add controls to ViewFactory : the main and only law in displaying...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=655&amp;PID=2431#2431</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=126" rel="nofollow">DeLight</a><br /><strong>Subject:</strong> 655<br /><strong>Posted:</strong> 15-Jan-2008 at 12:43am<br /><br />the main and only law in displaying views via SmartPartPlaceholders is "view with BuilderID='ID' will be shown only in the SPP with SmartPartName='ID'". and of course view and SPP must belong to one WorkItem. no other rules exist.<br />so try to check this ids via WorkItemVisualizer, somewhere they are not equal. pay attention that for example MasterDetailControllers assign IDs to views as MakeViewSpecificId(smth) because several MasterDetailControllers can exist in one workitem.]]>
   </description>
   <pubDate>Tue, 15 Jan 2008 00:43:34 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=655&amp;PID=2431#2431</guid>
  </item> 
  <item>
   <title>Add controls to ViewFactory : I have my own EditorControl that...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=655&amp;PID=2429#2429</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 655<br /><strong>Posted:</strong> 14-Jan-2008 at 2:26pm<br /><br />I have my own EditorControl that inherits from the standard editor control. The only difference is the layout of the editor. I do not have tabs but I do have two seperate placeholders to hold the controls. <DIV>&nbsp;</DIV><DIV>The top view is an edit instance control and the bottom is a grid of all the existing entries. I have already created a tab controller that uses this view.</DIV><DIV>&nbsp;</DIV><DIV>The problem I am running across is that the grid and the edit control are not displaying as I think they should. In the tab control I did the following to get the control to show:</DIV><DIV>&nbsp;</DIV><DIV>override CreateView()</DIV><DIV><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">View =<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>ViewFactory.AddNew(LOC.CEMS.Interface.Constants.<SPAN style="COLOR: #2b91af">ViewNames</SPAN>.SummaryGridView, WorkItem, mSummaryGridIdNumber );<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P></DIV><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><DIV>&nbsp;</DIV><DIV>override ConfigureContextCore();</DIV><DIV>CreateGridViewContext();<o:p></o:p></SPAN></DIV><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">pContext.GridViewId = GridViewId;<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">ViewFactory.AddNew(<SPAN style="COLOR: #2b91af">ViewNames</SPAN>.BasicGrid, WorkItem, GridViewId, <SPAN style="COLOR: blue">typeof</SPAN>(<SPAN style="COLOR: #2b91af">ContactAddress</SPAN>));<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">CreateInstanceDetailViewContext();<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">pContext.SummaryViewId = SummaryViewId;<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 10pt"><SPAN style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">ViewFactory.AddNew(LOC.CEMS.Rolodex.Constants.<SPAN style="COLOR: #2b91af">ViewNames</SPAN>.AddressView, WorkItem, SummaryViewId);</P><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><DIV></DIV><FONT face="Verdana, Arial, Helvetica, sans-serif">So basically I am associated the control to the ID, GridViewId or SummaryViewId, and they are populating just fine. When I try that in the editor control I have created it doesn't work. I have to do the following to get it to work:</FONT></DIV><DIV><FONT face="Verdana, Arial, Helvetica, sans-serif"></FONT>&nbsp;</DIV><DIV><FONT face="Verdana, Arial, Helvetica, sans-serif">override AddNewMainView()</FONT></DIV><DIV><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">ViewFactory.AddNew(LOC.CEMS.Interface.Constants.<SPAN style="COLOR: #2b91af">ViewNames</SPAN>.SummaryGridView, WorkItem, <SPAN style="COLOR: #2b91af">WorkspaceNames</SPAN>.PageContentSmartPartPlaceholder);</SPAN></P></DIV><DIV><FONT face="Verdana, Arial, Helvetica, sans-serif"></FONT>&nbsp;</DIV><DIV><FONT face="Verdana, Arial, Helvetica, sans-serif">different CreateView menthods</DIV><DIV></DIV><P =Ms&#111;normal style="MARGIN: 0in 0in 10pt"><SPAN style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">WorkItem.SmartParts.AddNew&lt;TView&gt;(LOC.CEMS.Interface.Constants.<SPAN style="COLOR: #2b91af">WorkspaceNames</SPAN>.InstanceDetailSmartPartPlaceholder);</P><DIV></DIV><P =Ms&#111;normal style="MARGIN: 0in 0in 10pt"><SPAN style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">ViewFactory.AddNew(<SPAN style="COLOR: #2b91af">ViewNames</SPAN>.BasicGrid, WorkItem, LOC.CEMS.Interface.Constants.<SPAN style="COLOR: #2b91af">WorkspaceNames</SPAN>.GridSmartPartPlaceholder, <SPAN style="COLOR: blue">typeof</SPAN>(TEntity));</P><DIV><FONT face="Verdana, Arial, Helvetica, sans-serif">If I try going by Id like I did in the tab controller it doesn't work. Nothing shows up. What would be the reason I would have to go by the workspace name to get it to display. It should go by the Identifiable Id that I gave in the View itself like the tab controller does..</FONT></DIV></SPAN></SPAN></FONT></SPAN>]]>
   </description>
   <pubDate>Mon, 14 Jan 2008 14:26:45 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=655&amp;PID=2429#2429</guid>
  </item> 
 </channel>
</rss>