<?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 : Adding to Root menu</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Adding to Root menu</description>
  <pubDate>Thu, 11 Jun 2026 06:28:31 -700</pubDate>
  <lastBuildDate>Wed, 26 Mar 2008 11:31:51 -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=740</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>Adding to Root menu : For your editor to work, it must...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=740&amp;PID=2748#2748</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> 740<br /><strong>Posted:</strong> 26-Mar-2008 at 11:31am<br /><br /><P>For your editor to work, it must be created as&nbsp;the controller&nbsp;of a ControlledWorkItem.&nbsp; You accomplish that with:</P><DIV><P>WorkItem.WorkItems.AddNew&lt;<FONT color=#2b91af size=2>ControlledWorkItem</FONT><FONT size=2>&lt;TEditor&gt;&gt;();</P><P></FONT><FONT color=#2b91af size=2>IEntityEditorController</FONT><FONT size=2> editor = editorWorkItem.Controller;</P><DIV>If you want to encapsulate that inside of an AddNew&lt;TEditor&gt;() method, that's OK.</DIV><DIV>&nbsp;</DIV><DIV>Bill J.</FONT></DIV></DIV>]]>
   </description>
   <pubDate>Wed, 26 Mar 2008 11:31:51 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=740&amp;PID=2748#2748</guid>
  </item> 
  <item>
   <title>Adding to Root menu : From what I can tell that method...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=740&amp;PID=2745#2745</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> 740<br /><strong>Posted:</strong> 26-Mar-2008 at 11:16am<br /><br /><P>From what I can tell that method is never used. So, I should create my instance of AddNew&lt;&gt; that calls the new method.</P>]]>
   </description>
   <pubDate>Wed, 26 Mar 2008 11:16:55 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=740&amp;PID=2745#2745</guid>
  </item> 
  <item>
   <title>Adding to Root menu : It looks like your EntityEditorController...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=740&amp;PID=2744#2744</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> 740<br /><strong>Posted:</strong> 26-Mar-2008 at 11:06am<br /><br /><DIV>It looks like your EntityEditorController has not been passed the workitem that it controls or its workitem does not have an Id assigned.</DIV><DIV>&nbsp;</DIV><DIV>How are you creating your editor?&nbsp; Are you using the EntityEditorService?</DIV><DIV>&nbsp;</DIV><DIV></DIV><DIV></DIV>The EntityEditorService contains (amongst a lot of other code) this method:<DIV></DIV><DIV></DIV><DIV></DIV><FONT size=2><P></FONT><FONT color=#808080 size=2>///</FONT><FONT color=#008000 size=2> </FONT><FONT color=#808080 size=2>&lt;summary&gt;</P></FONT><FONT size=2><P></FONT><FONT color=#808080 size=2>///</FONT><FONT color=#008000 size=2> Make a new Editor instance (to edit existing or new entity)</P></FONT><FONT size=2><P></FONT><FONT color=#808080 size=2>///</FONT><FONT color=#008000 size=2> given the type of an Editor to make </P></FONT><FONT size=2><P></FONT><FONT color=#808080 size=2>///</FONT><FONT color=#008000 size=2> that is not mapped to another type.</P></FONT><FONT size=2><P></FONT><FONT color=#808080 size=2>///</FONT><FONT color=#008000 size=2> </FONT><FONT color=#808080 size=2>&lt;/summary&gt;</P></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2>private</FONT><FONT size=2> </FONT><FONT color=#2b91af size=2>IEntityEditorController</FONT><FONT size=2> MakeUnmappedEditor&lt;TEditor&gt;() </P><P></FONT><FONT color=#0000ff size=2>where</FONT><FONT size=2> TEditor : </FONT><FONT color=#2b91af size=2>IEntityEditorController</FONT><FONT size=2> {</P><P></FONT><FONT color=#2b91af size=2>ControlledWorkItem</FONT><FONT size=2>&lt;TEditor&gt; editorWorkItem =</P><P>WorkItem.WorkItems.AddNew&lt;</FONT><FONT color=#2b91af size=2>ControlledWorkItem</FONT><FONT size=2>&lt;TEditor&gt;&gt;();</P><P></FONT><FONT color=#2b91af size=2>IEntityEditorController</FONT><FONT size=2> editor = editorWorkItem.Controller;</P><P>EditorKeys.Add(</FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> </FONT><FONT color=#2b91af size=2>EditorKey</FONT><FONT size=2>(editor));</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> editor;</P><P>}</P><DIV>If you're not using the EntityEditorService, your command handler will need to do something similar.</DIV><DIV>&nbsp;</DIV><DIV></DIV><DIV></DIV></FONT><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV><FONT size=2>(The line adding the new EditorKey is of course&nbsp;only needed in&nbsp;the service implementation).</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Bill J.</FONT></DIV>]]>
   </description>
   <pubDate>Wed, 26 Mar 2008 11:06:50 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=740&amp;PID=2744#2744</guid>
  </item> 
  <item>
   <title>Adding to Root menu : I have added a button to the root...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=740&amp;PID=2736#2736</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> 740<br /><strong>Posted:</strong> 21-Mar-2008 at 12:53pm<br /><br />I have added a button to the root menu. I added a button called Edit and under that Options.<DIV>&nbsp;</DIV><DIV>In the FoundationModule I have a CommandHandler for that button that needs to open up an editor.</DIV><DIV>I have the call to the editor to display an EntityEditorController that I have created.</DIV><DIV>&nbsp;</DIV><DIV>I get an error here: (From the inherited reference to PageController)&nbsp;</DIV><FONT color=#0000ff size=2><P>protected</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2> CreateDefaultEntityManager() {</P><P>Guard.ArgumentNotNullOrEmptyString(Id, </FONT><FONT color=#a31515 size=2>"Id"</FONT><FONT size=2>); // Id is null for some reason</P><DIV></DIV><P>&nbsp;</P><P>Any ideas would be great?</FONT></P>]]>
   </description>
   <pubDate>Fri, 21 Mar 2008 12:53:00 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=740&amp;PID=2736#2736</guid>
  </item> 
 </channel>
</rss>