<?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 : [Resolved]ListConverter Issue</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : [Resolved]ListConverter Issue</description>
  <pubDate>Thu, 11 Jun 2026 16:35:33 -700</pubDate>
  <lastBuildDate>Thu, 11 Oct 2007 09:16:39 -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=487</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>[Resolved]ListConverter Issue : I ended up overriding the UpdateNullEntity...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=487&amp;PID=1571#1571</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> 487<br /><strong>Posted:</strong> 11-Oct-2007 at 9:16am<br /><br /><DIV>I ended up overriding the UpdateNullEntity for the Entity and setting the value that was the set as the DisplayMember and it works fine.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 11 Oct 2007 09:16:39 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=487&amp;PID=1571#1571</guid>
  </item> 
  <item>
   <title>[Resolved]ListConverter Issue : Yup. It is a straight entity list....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=487&amp;PID=1565#1565</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> 487<br /><strong>Posted:</strong> 11-Oct-2007 at 7:08am<br /><br /><P>Yup. It is a straight entity list. If I remember correctly there is a way to make a null entity equal to a base object or base values. But I can't remember how. And I am not sure why it is event putting it there.</P>]]>
   </description>
   <pubDate>Thu, 11 Oct 2007 07:08:53 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=487&amp;PID=1565#1565</guid>
  </item> 
  <item>
   <title>[Resolved]ListConverter Issue : Is it just a straight entity list...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=487&amp;PID=1558#1558</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=24" rel="nofollow">Linguinut</a><br /><strong>Subject:</strong> 487<br /><strong>Posted:</strong> 10-Oct-2007 at 6:18pm<br /><br /><P>Is it just a straight entity list filling the combobox?</P><DIV>I'll check and see how my lists are getting filled...maybe they have a null entity at the top, too.</DIV>]]>
   </description>
   <pubDate>Wed, 10 Oct 2007 18:18:03 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=487&amp;PID=1558#1558</guid>
  </item> 
  <item>
   <title>[Resolved]ListConverter Issue : That didn&amp;#039;t work. If I am...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=487&amp;PID=1556#1556</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> 487<br /><strong>Posted:</strong> 10-Oct-2007 at 3:07pm<br /><br />That didn't work. If I am adding an new item that first element in the list is blank. And when I try and change it is when it crashes the app due to Object Ref. not set to an instan... you get the point. The first entity in the list is null when it shouldn't even be there.<DIV></DIV><DIV></DIV>]]>
   </description>
   <pubDate>Wed, 10 Oct 2007 15:07:11 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=487&amp;PID=1556#1556</guid>
  </item> 
  <item>
   <title>[Resolved]ListConverter Issue : the form.autovalidate may be the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=487&amp;PID=1555#1555</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=24" rel="nofollow">Linguinut</a><br /><strong>Subject:</strong> 487<br /><strong>Posted:</strong> 10-Oct-2007 at 2:05pm<br /><br /><P>the form.autovalidate may be the problem...it was for me.&nbsp; try adding the following to your view code:</P><DIV><FONT size=2>//right after the SetPresenter call</FONT></DIV><DIV><FONT size=2>AutoValidate = pPresenter.SetAutoValidation();</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>In the presenter place the following:</FONT></DIV><DIV>&nbsp;</DIV><DIV><FONT size=2><FONT color=#808080 size=2>///</FONT><FONT color=#008000 size=2> </FONT><FONT color=#808080 size=2>&lt;summary&gt;</FONT><FONT color=#008000 size=2>Set how the View constrains focus change when validation fails.</FONT><FONT color=#808080 size=2>&lt;/summary&gt;</FONT></FONT></DIV><DIV><FONT size=2><FONT color=#808080 size=2>///</FONT><FONT color=#008000 size=2> </FONT><FONT color=#808080 size=2>&lt;remarks&gt;</FONT><FONT color=#008000 size=2>Can also disable auto validation altogether.</FONT><FONT color=#808080 size=2>&lt;/remarks&gt;</FONT></FONT></DIV><DIV><FONT size=2><FONT color=#0000ff size=2>public</FONT><FONT size=2> </FONT><FONT color=#2b91af size=2>AutoValidate</FONT><FONT size=2> SetAutoValidation()</FONT></FONT></DIV><DIV><FONT size=2><FONT size=2>{</FONT></FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp; <FONT color=#008000 size=2>// Play with the choices.</FONT></FONT></DIV><DIV><FONT size=2><FONT color=#008000>&nbsp;&nbsp;&nbsp; </FONT><FONT size=2><FONT color=#008000>//return AutoValidate.EnablePreventFocusChange; // Locked in control</FONT></FONT></FONT></DIV><DIV><FONT size=2><FONT color=#008000>&nbsp;&nbsp;&nbsp; </FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> </FONT><FONT color=#2b91af size=2>AutoValidate</FONT><FONT size=2>.EnableAllowFocusChange; </FONT><FONT color=#008000 size=2>// Can move</FONT></FONT></DIV><DIV><FONT size=2><FONT color=#008000>&nbsp;&nbsp;&nbsp; </FONT><FONT size=2><FONT color=#008000>//return AutoValidate.Inherit; // Do what the parent container does</FONT></FONT></FONT></DIV><DIV><FONT size=2><FONT color=#008000>&nbsp;&nbsp;&nbsp; </FONT><FONT size=2><FONT color=#008000>//return AutoValidate.Disable; // Don't autovalidate.</FONT></FONT></FONT></DIV><DIV><FONT size=2><FONT size=2>}</FONT></FONT></DIV><DIV><FONT size=2><FONT size=2></FONT></FONT>&nbsp;</DIV><DIV><FONT size=2><FONT size=2>I tried all of them and this one worked best for me.&nbsp; For now... I may run into other validation issues later, but I will deal with them as they come up.</DIV></FONT></FONT><span style="font-size:10px"><br /><br />Edited by Linguinut - 10-Oct-2007 at 2:06pm</span>]]>
   </description>
   <pubDate>Wed, 10 Oct 2007 14:05:56 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=487&amp;PID=1555#1555</guid>
  </item> 
  <item>
   <title>[Resolved]ListConverter Issue : By changing it and binding to...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=487&amp;PID=1554#1554</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> 487<br /><strong>Posted:</strong> 10-Oct-2007 at 2:01pm<br /><br />By changing it and binding to the ID and adding that ListConverter it worked. I would of thought that it would work with the entity itself.<DIV>&nbsp;</DIV><DIV>Tx.</DIV><DIV>&nbsp;</DIV><DIV>One more issue. I am getting and extra blank option in my combobox that is null and if selected causes some issues.</DIV>]]>
   </description>
   <pubDate>Wed, 10 Oct 2007 14:01:30 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=487&amp;PID=1554#1554</guid>
  </item> 
  <item>
   <title>[Resolved]ListConverter Issue : Read through http://www.ideabl...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=487&amp;PID=1552#1552</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=24" rel="nofollow">Linguinut</a><br /><strong>Subject:</strong> 487<br /><strong>Posted:</strong> 10-Oct-2007 at 1:19pm<br /><br />Read through <a href="http://www.ideablade.com/forum/forum_posts.asp?TID=460" target="_blank">http://www.ideablade.com/forum/forum_posts.asp?TID=460</A>&nbsp;. . . that may shed a little more light on the subject.&nbsp; Follow the example in Cabana that has a MakeEntityList and MakeEntityIDList.&nbsp; Call both from the presenter:<DIV>&nbsp;</DIV><DIV>SetBindingListConverter(descriptors.AddressType, ListConverterNames.AddressType);</DIV><DIV>SetBindingListConverter(descriptors.AddressIndex, ListConverterNames.AddressTypeID);</DIV><DIV>&nbsp;</DIV><DIV>Make sure you are binding the combobox to the AddressIndex field, not the related entity list.</DIV><DIV>&nbsp;</DIV><DIV>Also, I added the AutoValidate.EnableAllowFocusChanged (see Cabana) which alleviated some of the navigation issues in the view with empty lists and such.&nbsp; I may need to adjust that a little later on.</DIV>]]>
   </description>
   <pubDate>Wed, 10 Oct 2007 13:19:28 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=487&amp;PID=1552#1552</guid>
  </item> 
  <item>
   <title>[Resolved]ListConverter Issue : I believe that is what I am doing....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=487&amp;PID=1551#1551</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> 487<br /><strong>Posted:</strong> 10-Oct-2007 at 1:13pm<br /><br />I believe that is what I am doing. <DIV>&nbsp;</DIV><DIV>My example: Address table has foreign key to Types (called AddressType)table</DIV><DIV>&nbsp;</DIV><DIV>I have used hte ControlBindingManager to add AddressType, not the key property. It gives me the combobox.</DIV><DIV>&nbsp;</DIV><DIV>Then in the presenter I use the following to bind the data:</DIV><DIV>&nbsp;</DIV><DIV>EntityPropertyDescriptors.ContactAddressPropertyDescriptor descriptors = EntityPropertyDescriptors.ContactAddress;<BR>SetBindingListConverter(descriptors.AddressType, ListConverterNames.AddressType);</DIV><DIV>&nbsp;</DIV><DIV>It binds the list converter but it doesn't give me my current value. It also has an empty space at the top of the combobox that seems to be a null entity that if selected crashes the application.</DIV>]]>
   </description>
   <pubDate>Wed, 10 Oct 2007 13:13:37 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=487&amp;PID=1551#1551</guid>
  </item> 
  <item>
   <title>[Resolved]ListConverter Issue : Looks like you&amp;#039;re calling...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=487&amp;PID=1549#1549</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> 487<br /><strong>Posted:</strong> 10-Oct-2007 at 1:04pm<br /><br /><P>Looks like you're calling SetBindingListConverter() in the right place.</P><DIV>Have you tried binding your combo to the relation property rather than the foreign key field?&nbsp; This retrieves the set of foreign objects, rather than foreign key values.&nbsp; Then set the DisplayMember to the property (e.g., Name) of the foreign object to appear in the list.</DIV><DIV>&nbsp;</DIV><DIV>Bill J.</DIV>]]>
   </description>
   <pubDate>Wed, 10 Oct 2007 13:04:30 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=487&amp;PID=1549#1549</guid>
  </item> 
  <item>
   <title>[Resolved]ListConverter Issue : WhenI bind the list control on...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=487&amp;PID=1536#1536</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=24" rel="nofollow">Linguinut</a><br /><strong>Subject:</strong> 487<br /><strong>Posted:</strong> 10-Oct-2007 at 11:08am<br /><br />When&nbsp;I bind the list control on the view I use the foreign key field (it will default to textbox, so I change it to combobox).&nbsp; I place the binding commands (SetBindingListConverter) in the presenter following the base.OnViewSet command.]]>
   </description>
   <pubDate>Wed, 10 Oct 2007 11:08:02 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=487&amp;PID=1536#1536</guid>
  </item> 
  <item>
   <title>[Resolved]ListConverter Issue : I have tried on multiple occassions...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=487&amp;PID=1535#1535</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> 487<br /><strong>Posted:</strong> 10-Oct-2007 at 10:01am<br /><br />I have tried on multiple occassions to use the ListConverter service. I have been successful in getting the items I desire. My problem is that my existing item is never selected. <DIV>&nbsp;</DIV><DIV>I am not sure if the list is being set after the value is assigned to the combobox. </DIV><DIV>&nbsp;</DIV><DIV>I am setting the list converts in the OnViewContextSet, to verify that my binding manager is not null.</DIV><span style="font-size:10px"><br /><br />Edited by orcities - 11-Oct-2007 at 9:17am</span>]]>
   </description>
   <pubDate>Wed, 10 Oct 2007 10:01:46 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=487&amp;PID=1535#1535</guid>
  </item> 
 </channel>
</rss>