<?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 : Data Validation (TriggerMemberName) Issue</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Data Validation (TriggerMemberName) Issue</description>
  <pubDate>Sun, 12 Apr 2026 02:28:54 -700</pubDate>
  <lastBuildDate>Wed, 17 Nov 2010 19:50:35 -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=2260</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>Data Validation (TriggerMemberName) Issue : Sorry we missed your earlier post. The...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2260&amp;PID=9148#9148</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 2260<br /><strong>Posted:</strong> 17-Nov-2010 at 7:50pm<br /><br /><P>Sorry we missed your earlier post.</P><DIV>The ErrorsChanged event is actually already fired by DevForce during an instance verification.&nbsp; But if it's not working correctly for you, you can call GetErrors(propertyName) to retrieve the validation errors specific to a property.&nbsp; Both ErrorsChanged and GetErrors are available via explicit implementation of the INotifyDataErrorInfo interface on the EntityWrapper, so you can cast to the interface to access these members:</DIV><DIV>&nbsp;&nbsp; var inde = this as INotifyDataErrorInfo;</DIV><DIV>&nbsp;</DIV><DIV>In release 6.0.7 coming next month the PropertyNames will also be available on the VerifierResult, so you'll have this&nbsp;available even when a TriggerMemberName isn't set.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 17 Nov 2010 19:50:35 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2260&amp;PID=9148#9148</guid>
  </item> 
  <item>
   <title>Data Validation (TriggerMemberName) Issue : Can anyone help?  My problem...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2260&amp;PID=9147#9147</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=982" rel="nofollow">tscott</a><br /><strong>Subject:</strong> 2260<br /><strong>Posted:</strong> 17-Nov-2010 at 3:47pm<br /><br /><P>Can anyone help? </P><P>My problem is this...</P><P>I am attempting to perform Instatnce verification on a object which uses verifiers. Here is the code i'm using to perform the verification:</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#091;Bindable(false)&#093;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#091;Display(AutoGenerateField = false)&#093;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public bool Validate()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Verify entity.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var results = VerifierEngine.Execute(this);<BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return results.Ok;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>All is well and I can see that the verifiers are working correctly. I would like to be able to identify which properties fail verification so that I can raise a ErrorsChanged event for each property. <BR>The problem is that when using instance verification I cannot discover the TriggerMemberName or property names using: </P><P>var members = errors.Errors.Select(vr =&gt; vr.TriggerMemberName).Distinct()</P><P>as this information is not captured when you call VerifierEngine.Execute(this)</P><P>Any way around this, what should I be doing instead? Thanks</P>]]>
   </description>
   <pubDate>Wed, 17 Nov 2010 15:47:42 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2260&amp;PID=9147#9147</guid>
  </item> 
  <item>
   <title>Data Validation (TriggerMemberName) Issue : Hi,  I am new to DevForce and...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2260&amp;PID=8913#8913</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=982" rel="nofollow">tscott</a><br /><strong>Subject:</strong> 2260<br /><strong>Posted:</strong> 25-Oct-2010 at 1:49pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>I am new to DevForce and have been struggling for a few days to understand the verification engine and some help. When validation is triggered in the UI&nbsp;the <SPAN style="COLOR: purple">TriggerMemberName <FONT color=#000000 size=2>property of the VerifierResult gets set to the property name for which the validation relates. However, if you call&nbsp;aVerifierEngine.Execute(aObject) the TriggerMemberName does not get set and&nbsp;that is the problem. I am using&nbsp;Devforce 6.0.6 and&nbsp;generated a default app using the Devforce Silverlight Business Application Template.&nbsp;</FONT></SPAN></DIV><DIV><SPAN style="COLOR: purple"></SPAN>&nbsp;</DIV><DIV><SPAN style="COLOR: purple"><FONT color=#000000 size=2>Any and all help appreciated, Thanks.</FONT>&nbsp;</SPAN><BR></DIV>]]>
   </description>
   <pubDate>Mon, 25 Oct 2010 13:49:14 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2260&amp;PID=8913#8913</guid>
  </item> 
 </channel>
</rss>