<?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 : Can Verifiers be Asynchronous?</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Can Verifiers be Asynchronous?</description>
  <pubDate>Tue, 12 May 2026 23:27:59 -700</pubDate>
  <lastBuildDate>Mon, 10 Oct 2011 11:40:38 -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=2302</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>Can Verifiers be Asynchronous? :   Denis,Yes, I figured it out....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=11782#11782</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1264" rel="nofollow">katit</a><br /><strong>Subject:</strong> 2302<br /><strong>Posted:</strong> 10-Oct-2011 at 11:40am<br /><br />Denis,<div>&nbsp;</div><div>Yes, I figured it out. If it's not too hard - I would still&nbsp;like to see your example as well. I'm learning DevForce in's and out's so it would useful to see how you did it.</div><div>&nbsp;</div><div>Thanks!</div>]]>
   </description>
   <pubDate>Mon, 10 Oct 2011 11:40:38 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=11782#11782</guid>
  </item> 
  <item>
   <title>Can Verifiers be Asynchronous? : Hi katit;Sorry for the delayed...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=11781#11781</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2302<br /><strong>Posted:</strong> 10-Oct-2011 at 11:28am<br /><br />Hi katit;<div><br></div><div>Sorry for the delayed reply. I just got back from vacation.&nbsp;</div><div><br></div><div>Please correct me if I'm wrong but it looks like you've already figured things out in this post.&nbsp;<a href="http://www.ideablade.com/forum/forum_posts.asp?TID=2985&amp;title=my-async-verifier-implementati&#111;n" target="_blank">http://www.ideablade.com/forum/forum_posts.asp?TID=2985&amp;title=my-async-verifier-implementation</a>.</div><div><br></div><div>Let me know if you still want to see my sample. I might have to search for it.</div>]]>
   </description>
   <pubDate>Mon, 10 Oct 2011 11:28:54 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=11781#11781</guid>
  </item> 
  <item>
   <title>Can Verifiers be Asynchronous? :   Denis,Is there update sample...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=11736#11736</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1264" rel="nofollow">katit</a><br /><strong>Subject:</strong> 2302<br /><strong>Posted:</strong> 28-Sep-2011 at 9:05pm<br /><br />Denis,<div>&nbsp;</div><div>Is there update sample with Async validation in DevForce? Sample code you posted already removed.</div><div>&nbsp;</div><div>Thanks!</div>]]>
   </description>
   <pubDate>Wed, 28 Sep 2011 21:05:04 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=11736#11736</guid>
  </item> 
  <item>
   <title>Can Verifiers be Asynchronous? : Hi as123;It&amp;#039;s fixed as of...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9928#9928</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2302<br /><strong>Posted:</strong> 11-Feb-2011 at 11:35am<br /><br />Hi as123;<div><br></div><div>It's fixed as of 6.0.8.</div>]]>
   </description>
   <pubDate>Fri, 11 Feb 2011 11:35:53 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9928#9928</guid>
  </item> 
  <item>
   <title>Can Verifiers be Asynchronous? : Thanks. For some reason, I did...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9926#9926</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=761" rel="nofollow">as123</a><br /><strong>Subject:</strong> 2302<br /><strong>Posted:</strong> 11-Feb-2011 at 11:09am<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thanks. For some reason, I did not get the e-mail notification for the last one, and I just saw it. Do you know when will this feature be fixed?<DIV>&nbsp;</DIV><DIV>Thanks.</DIV>]]>
   </description>
   <pubDate>Fri, 11 Feb 2011 11:09:53 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9926#9926</guid>
  </item> 
  <item>
   <title>Can Verifiers be Asynchronous? : as123;I was finally able to find,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9632#9632</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2302<br /><strong>Posted:</strong> 12-Jan-2011 at 4:23pm<br /><br />as123;<div><br></div><div>I was finally able to find, what I think, is the root cause of the duplicate message.&nbsp;</div><div><br></div><div>When adding a free form VerifierResult, the TriggerLinks are not being handled properly and due to our implementation of INotifyDataErrorInfo.GetErrors(String.Empty), it causes the duplicate message. This combines with the fact that TriggerLinks is not serializable. So for now the quick fix for this is to add the TriggerLink manually inside the server call back method.</div><div><br></div><div>private void OnServerMethodCompleted(InvokeServerMethodOperation args) {</div><div><br></div><div>...........................</div><div><br></div><div><div><span ="Apple-tab-span" style="white-space:pre">	</span>var vr = (VerifierResult)args.Result;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;vr.Verifier.AddTrigger(Customer.PropertyMetadata.CompanyName.Name);</div></div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	if (vr.IsError) {          validationErrors.Add(vr);</span></div><div><br></div><div>.........................</div><div>&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>}</div><div><br></div><div>..........................</div><div>}</div><div><br></div><div>I will file a feature and/or defect request for this.</div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Wed, 12 Jan 2011 16:23:40 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9632#9632</guid>
  </item> 
  <item>
   <title>Can Verifiers be Asynchronous? : as123;The error message duplication...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9626#9626</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2302<br /><strong>Posted:</strong> 11-Jan-2011 at 5:37pm<br /><br /><div style=": rgb255, 255, 255; margin-left: 1px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; font-family: Verdana, Arial, Helvetica, sans-serif; color: rgb0, 0, 0; font-weight: normal; font-size: 12px; line-height: 1.4; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; -: n&#111;ne; ">as123;<div><br></div><div>The error message duplication is indeed strange. I have verified that both INotifyDataErrorInfo error collection and the ValidationError collection only has 1 error count each. And when you remove the VerifierResult, it removes both message as well. This is the exact same thing that happens with Synchronous Validations. It looks like I need to dig deeper on this.</div><div><br></div><div>Regarding the user expected to come back to the field twice, this actually looks more of a UI issue in that if you focus on any other field, the error will go away. You don't have to come back to that same field twice to clear the errors.</div><div><br></div><div>As for your ValidationError removal question, I just used the Message property as an example. You can use any other property you like to search for the VerifierResult in question. For example, PropertyNames can be used as well.</div><div><br></div><div><div>var propertyName = Customer.PropertyMetadata.CompanyName.Name;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div>var resultToRemove = validationErrors</div><div>&nbsp;&nbsp; &nbsp; &nbsp; .Where(v =&gt; v.PropertyNames.Contains(propertyName))</div><div>&nbsp;&nbsp; &nbsp; &nbsp; .FirstOrDefault();</div></div><div><br></div><div>&nbsp;</div></div>]]>
   </description>
   <pubDate>Tue, 11 Jan 2011 17:37:48 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9626#9626</guid>
  </item> 
  <item>
   <title>Can Verifiers be Asynchronous? : Thanks for the latest sample....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9610#9610</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=761" rel="nofollow">as123</a><br /><strong>Subject:</strong> 2302<br /><strong>Posted:</strong> 10-Jan-2011 at 12:40pm<br /><br /><P style="MARGIN: 0.75pt" =Ms&#111;normal><SPAN style="FONT-FAMILY: Verdana; COLOR: black; FONT-SIZE: 9pt; mso-ansi-: EN" lang=EN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thanks for the latest sample. <?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P><P style="MARGIN: 0.75pt" =Ms&#111;normal><SPAN style="FONT-FAMILY: Verdana; COLOR: black; FONT-SIZE: 9pt; mso-ansi-: EN" lang=EN>&nbsp;<o:p></o:p></SPAN></P><P style="MARGIN: 0.75pt" =Ms&#111;normal><SPAN style="FONT-FAMILY: Verdana; COLOR: black; FONT-SIZE: 9pt; mso-ansi-: EN" lang=EN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If I make a Company Name error by entering @ as part of the name, it shows the error correctly, but as mentioned earlier the error is duplicated if I tab back to the same field. After correcting the error, the user is expected to come back to the filed twice to clear all the existing errors. Do you still think it is the problem with DataGrid/INotifyDataErrorInfo? If so, do you know why we do not see such a behavior when doing Synchronous Validations?<o:p></o:p></SPAN></P><P style="MARGIN: 0.75pt" =Ms&#111;normal><SPAN style="FONT-FAMILY: Verdana; COLOR: black; FONT-SIZE: 9pt; mso-ansi-: EN" lang=EN>&nbsp;<o:p></o:p></SPAN></P><P style="MARGIN: 0.75pt" =Ms&#111;normal><SPAN style="FONT-FAMILY: Verdana; COLOR: black; FONT-SIZE: 9pt; mso-ansi-: EN" lang=EN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Also, the ValidationError is removed by checking for <a href="mailto:@" target="_blank"><SPAN style="FONT-FAMILY: 'Times New Roman'; FONT-SIZE: 12pt"><U>'@'</U></SPAN></A> in the error message. It is possible that we might have such characters in other error messages or we may not have such a text to look for in our messages. Is there a better implementation for this? Is there a tag property or something like that for validation error which we can set when a specific error message is generated (may be, a unique Message ID) so that we can look for such immutable property and remove those errors.<o:p></o:p></SPAN></P><P style="MARGIN: 0.75pt" =Ms&#111;normal><SPAN style="FONT-FAMILY: Verdana; COLOR: black; FONT-SIZE: 9pt; mso-ansi-: EN" lang=EN>&nbsp;<o:p></o:p></SPAN></P><P style="MARGIN: 0.75pt" =Ms&#111;normal><SPAN style="FONT-FAMILY: Verdana; COLOR: black; FONT-SIZE: 9pt; mso-ansi-: EN" lang=EN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For example, if we have validations to make sure that Name and ID must be unique (checked async), the messages might be just 'Must be Unique'&nbsp; or 'ID must be unique.' or 'Description must be unique.'. It might be difficult to remove such messages. Another alternative might be to regenerate the same message and look for its existence and remove it. However, this won’t work if we have generic messages like ‘Must be unique’ and the context is added dynamically as part of displaying error summary.<o:p></o:p></SPAN></P><P style="MARGIN: 0.75pt" =Ms&#111;normal><SPAN style="FONT-FAMILY: Verdana; COLOR: black; FONT-SIZE: 9pt; mso-ansi-: EN" lang=EN>&nbsp;<o:p></o:p></SPAN></P><P style="MARGIN: 0.75pt" =Ms&#111;normal><SPAN style="FONT-FAMILY: Verdana; COLOR: black; FONT-SIZE: 9pt; mso-ansi-: EN" lang=EN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thanks again for your help.</SPAN></P>]]>
   </description>
   <pubDate>Mon, 10 Jan 2011 12:40:32 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9610#9610</guid>
  </item> 
  <item>
   <title>Can Verifiers be Asynchronous? : Here&amp;#039;s a sample app that...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9607#9607</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2302<br /><strong>Posted:</strong> 10-Jan-2011 at 11:49am<br /><br />Here's a sample app that should demonstrate at a basic level how to do async validation with DevForce.<div><br></div><div><span ="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 18px; font-size: small; -webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><a href="http://www.ideablade.com/friends/SilverlightValidati&#111;nSample.zip" target="_blank">www.ideablade.com/friends/SilverlightValidationSample.zip</a></span></div>]]>
   </description>
   <pubDate>Mon, 10 Jan 2011 11:49:36 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9607#9607</guid>
  </item> 
  <item>
   <title>Can Verifiers be Asynchronous? : Thanks for looking into it. </title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9516#9516</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=761" rel="nofollow">as123</a><br /><strong>Subject:</strong> 2302<br /><strong>Posted:</strong> 30-Dec-2010 at 4:14pm<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thanks for looking into it.]]>
   </description>
   <pubDate>Thu, 30 Dec 2010 16:14:37 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9516#9516</guid>
  </item> 
  <item>
   <title>Can Verifiers be Asynchronous? : as123;You&amp;#039;re right, it shouldn&amp;#039;t...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9514#9514</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2302<br /><strong>Posted:</strong> 30-Dec-2010 at 4:09pm<br /><br /><div style=": rgb255, 255, 255; margin-left: 1px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; font-family: Verdana, Arial, Helvetica, sans-serif; color: rgb0, 0, 0; font-weight: normal; font-size: 12px; line-height: 1.4; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; -: n&#111;ne; ">as123;<div><br></div><div>You're right, it shouldn't be this complicated to handle Async Verification. I need to do more research on how this works with DevForce and get back to you. I will find out about the timeframe as well.</div><div><br></div><div>Meanwhile, here's a link which you might find useful.</div><div><br></div><div><a href="http://www.silverlight.net/learn/videos/silverlight-4-videos/asynchr&#111;nous-data-validati&#111;n/" target="_blank">http://www.silverlight.net/learn/videos/silverlight-4-videos/asynchronous-data-validation/</a></div></div>]]>
   </description>
   <pubDate>Thu, 30 Dec 2010 16:09:58 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9514#9514</guid>
  </item> 
  <item>
   <title>Can Verifiers be Asynchronous? : Regarding the removal of errors,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9509#9509</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=761" rel="nofollow">as123</a><br /><strong>Subject:</strong> 2302<br /><strong>Posted:</strong> 30-Dec-2010 at 1:21pm<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Regarding the removal of errors, I believe you meant ValidationErrors.Remove(), and NOT ValidationErrors.Clear() as I am only trying to clear a specific error. <DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; You have mentioned about removing the entry from ValidationSummary manually, but how about the red box around the property in error (result of <SPAN =self>INotifyDataErrorInfo)?&nbsp; As part of the removing the validation error entry from the ValidationErrors collection, the error notification (red box) does not go away. Do I need to do anything else to fire that event so that the property is no longer in error after removing the entry from ValidationSummary?</SPAN></DIV><DIV><SPAN =self></SPAN>&nbsp;</DIV><DIV><DIV><SPAN =self>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; It was mentioned earlier that IdeaBlade is looking into Async Verification. Is there a timeframe by which we can expect this?</SPAN></DIV>&nbsp;</DIV><DIV><SPAN =self>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If there is a better workaround to handle all these situations for Async Verification in SilverLight, please let me know. </SPAN></DIV><DIV><SPAN =self></SPAN>&nbsp;</DIV><DIV><SPAN =self>Thanks</DIV></SPAN>]]>
   </description>
   <pubDate>Thu, 30 Dec 2010 13:21:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9509#9509</guid>
  </item> 
  <item>
   <title>Can Verifiers be Asynchronous? : as123;Yes, it looks like you need...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9507#9507</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2302<br /><strong>Posted:</strong> 30-Dec-2010 at 12:25pm<br /><br /><div style=": rgb255, 255, 255; margin-left: 1px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; font-family: Verdana, Arial, Helvetica, sans-serif; color: rgb0, 0, 0; font-weight: normal; font-size: 12px; line-height: 1.4; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; -: n&#111;ne; ">as123;<div><br></div><div>Yes, it looks like you need to add custom logic to avoid duplicate messages for this.</div><div><br></div><div>In regards to removing the errors, you will need to call ValidationErrors.Clear() as well as removing the errors from the ValidationSummary manually.</div></div>]]>
   </description>
   <pubDate>Thu, 30 Dec 2010 12:25:34 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9507#9507</guid>
  </item> 
  <item>
   <title>Can Verifiers be Asynchronous? : I tried this solution and it works...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9502#9502</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=761" rel="nofollow">as123</a><br /><strong>Subject:</strong> 2302<br /><strong>Posted:</strong> 29-Dec-2010 at 10:34pm<br /><br /><p ="Ms&#111;normal" style=":white"><font size="1" color="black" face="Verdana"><span style="font-size:9.0pt;font-family:Verdana;color:black">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; I tried this solution and it works with adding validationresults to the collection.&nbsp;</span></font></p><p ="Ms&#111;normal" style=":white"><font size="1" color="black" face="Verdana"><span style="font-size:9.0pt;font-family:Verdana;color:black">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; However, if the same error occurs again for adifferent value for the same property (after the initial error), the error isadded again to the validation summary control unlike the Verifier Engine behavior, which is onlyone entry in the Validation Summary even if the same verifier error occurs forthe same property multiple times.&nbsp; Do we need to have custom logic toavoid getting duplicate messages?</span></font></p><p ="Ms&#111;normal" style="text-indent:.5in;:white"><font size="1" color="black" face="Verdana"><span style="font-size:9.0pt;font-family:Verdana;  color:black">On a similar note, how do we remove the message after the Asynccall succeeds? If I try to remove the validation error by callingEntityAspect.ValidationErrors.Remove(), the message is removed from thecollection, but the property still shows as in error and the ValidationSummaryalso shows the error.<span style="mso-spacerun:yes">&nbsp; </span>Do we need to doanything else apart from removing the validation result from theValidationErrors collection?</span></font></p><p ="Ms&#111;normal" style="text-indent:.5in;:white"><font size="1" color="black" face="Verdana"><span style="font-size:9.0pt;font-family:Verdana;  color:black">Thanks.</span></font></p>]]>
   </description>
   <pubDate>Wed, 29 Dec 2010 22:34:48 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9502#9502</guid>
  </item> 
  <item>
   <title>Can Verifiers be Asynchronous? : Thanks. I was looking into an...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9417#9417</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=761" rel="nofollow">as123</a><br /><strong>Subject:</strong> 2302<br /><strong>Posted:</strong> 15-Dec-2010 at 5:47pm<br /><br />&nbsp;&nbsp;&nbsp; Thanks. I was looking into an earlier version of DF and this constructor was not there. It is available in 6.0.7.]]>
   </description>
   <pubDate>Wed, 15 Dec 2010 17:47:10 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9417#9417</guid>
  </item> 
  <item>
   <title>Can Verifiers be Asynchronous? :  as123;One of the constructors...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9415#9415</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2302<br /><strong>Posted:</strong> 15-Dec-2010 at 5:05pm<br /><br /><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="2">as123;</font><div><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="2"><br></font></div><div><span ="apple-style-span"=""><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="2">One of the constructors of a VerifierResult is <div><br></div><div>VerifierResult(VerifierResultCode code , string message, params string&#091;&#093; propertyNames)</div><div><br></div><div>So by passing the propertyName, you can trigger, for example, a DataGrid's BindingValidationError event which you can customize to show the error red box.</div></font></span></div><div><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="2"><br></font></div><div><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="2">I have attached an example below.</font></div><div><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="2"><br></font></div><div><div style="margin-left: 1px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; font-weight: normal; line-height: 1.4; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; "><font ="Apple-style-span" face="Arial, Helvetica, sans-serif" size="2"><a href="http://www.ideablade.com/friends/SilverlightValidati&#111;nSample.zip" target="_blank">www.ideablade.com/friends/SilverlightValidationSample.zip</a></font></div></div>]]>
   </description>
   <pubDate>Wed, 15 Dec 2010 17:05:53 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9415#9415</guid>
  </item> 
  <item>
   <title>Can Verifiers be Asynchronous? : For example, let us say Async...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9404#9404</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=761" rel="nofollow">as123</a><br /><strong>Subject:</strong> 2302<br /><strong>Posted:</strong> 14-Dec-2010 at 3:43pm<br /><br /><p ="Ms&#111;normal" style="line-height:12.0pt"><font ="Apple-style-span" face="Verdana"><p ="Mso">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; For example, let us sayAsync Check Unique validators are defined for ID and Name properties onEmployee. When the Check Unique validation for ID fails, the callback specifiedwill know the context, but how can this context information be passed to theVerifierEngine so that the ID property can be marked as in error (red boxaround) and show the error message when hovering over the box (as done byInotifyDataErrorInfo).<o:p></o:p></p><p ="Mso"><o:p>&nbsp;</o:p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;In the callbackmethod, if I just create a verifier result&nbsp;how will the Validation Engineknow that the error is for ID and not for Name? I was thinking that in thiscase Target needs to be set to “ID” in the VerifierResult so that it can be markedas in error. Can you please clarify?</p><p ="Mso"><o:p></o:p></p><p ="Mso"><o:p>&nbsp;</o:p>Thanks</p><p ="Mso"><o:p></o:p></p><p ="Mso"><o:p>&nbsp;</o:p>Sample pseudo-code:</p><p ="Mso"><o:p></o:p></p><p ="Mso"><br></p><p ="Mso">ValidatorMethod (…)</p><p ="Mso"><o:p></o:p></p><p ="Mso">{<o:p></o:p></p><p ="Mso">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;…</p><p ="Mso">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* Async Queryto check for duplicate values in the database */<o:p></o:p></p><p ="Mso">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EntityManager.ExecuteQueryAsync(query, userCallback, userState)</p><p ="Mso"><o:p></o:p></p><p ="Mso">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;…</p><p ="Mso"><o:p></o:p></p><p ="Mso">}</p><p ="Mso"><o:p></o:p></p><p ="Mso">userCallback(…)</p><p ="Mso"><o:p></o:p></p><p ="Mso">{<o:p></o:p></p><p ="Mso">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;…</p><p ="Mso"><o:p></o:p></p><p ="Mso">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_verifierResult = new VerifierResult(_result, message);&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</p><p ="Mso"><o:p></o:p></p><p ="Mso">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_currInstance.EntityAspect. ValidationErrors.Add(_verifierResult);<o:p></o:p></p><p ="Mso">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;…</p><p ="Mso"><o:p></o:p></p><p ="Mso">}<o:p></o:p></p></font></p>]]>
   </description>
   <pubDate>Tue, 14 Dec 2010 15:43:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9404#9404</guid>
  </item> 
  <item>
   <title>Can Verifiers be Asynchronous? : as123;The VerifierResult, in this...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9403#9403</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2302<br /><strong>Posted:</strong> 14-Dec-2010 at 3:17pm<br /><br />as123;<div><br></div><div>The VerifierResult, in this context, is only used to automatically display the errors on the UI. The context is not important in this regard. Maybe I could give a better advice if you can tell me what you're trying to achieve with the TargetInstance and TriggerContext.</div>]]>
   </description>
   <pubDate>Tue, 14 Dec 2010 15:17:04 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9403#9403</guid>
  </item> 
  <item>
   <title>Can Verifiers be Asynchronous? : Can you please elaborate on the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9386#9386</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=761" rel="nofollow">as123</a><br /><strong>Subject:</strong> 2302<br /><strong>Posted:</strong> 13-Dec-2010 at 10:26am<br /><br /><div style=": rgb255, 255, 255; margin-left: 1px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; font-family: Verdana, Arial, Helvetica, sans-serif; color: rgb0, 0, 0; font-weight: normal; font-size: 12px; line-height: 1.4; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; -: n&#111;ne; "><p ="Ms&#111;normal" style=":white"><span style="font-family:Arial;  color:black">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Can you please elaborateon the part "you could add the validation error directly to theEntity.EntityAspect.ValidatonErrors collection"? When we add a ‘VerifierResult’to the ValidatorErrors collection from&nbsp;the callback method specified aspart of the </span><span ="apple-style-span"><span style="font-family:Arial;  color:#4D4D4D">InvokeServerMethodAsync</span> call, how to specify the context(targetinstance and triggercontext)? I do not see a VerifierResult constructortaking these properties. Can you please give an example?<o:p></o:p></span></p><p ="Ms&#111;normal" style=":white"><span ="apple-style-span"><span style="font-family:Arial;color:#4D4D4D"><o:p>&nbsp;</o:p></span></span></p><p ="Ms&#111;normal" style=":white"><span ="apple-style-span"><span style="font-family:Arial;color:#4D4D4D">Thanks</span></span><span style="font-family:Arial;color:black"><o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-family:Arial;mso-bidi-font-family:Arial"><o:p>&nbsp;</o:p></span></p></div>]]>
   </description>
   <pubDate>Mon, 13 Dec 2010 10:26:11 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9386#9386</guid>
  </item> 
  <item>
   <title>Can Verifiers be Asynchronous? : We don&amp;#039;t yet support asynchronous...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9129#9129</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 2302<br /><strong>Posted:</strong> 15-Nov-2010 at 7:52pm<br /><br />We don't yet support asynchronous verification, but this is something we're looking at.<div><br></div><div>The implementation you propose in the last paragraph should work. &nbsp;Alternatively, after performing your async validation (e.g. through InvokeServerMethod), you could add the validation error directly to the Entity.EntityAspect.ValidationErrors collection and it will be reflected in the UI automatically. In DevForce 6.0.7 (early December) we will support INotifyDataErrorInfo as well as IDataErrorInfo so this should work for both WPF and Silverlight.</div><div><br></div>]]>
   </description>
   <pubDate>Mon, 15 Nov 2010 19:52:35 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9129#9129</guid>
  </item> 
  <item>
   <title>Can Verifiers be Asynchronous? : Does the DevForce 2010 Verification...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9098#9098</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=616" rel="nofollow">mjwolfe</a><br /><strong>Subject:</strong> 2302<br /><strong>Posted:</strong> 12-Nov-2010 at 2:51pm<br /><br />Does the DevForce 2010 Verification Engine support one of my verifiers executing code that will cause a request to the server that would use a callback when the server-side call returns? <DIV>&nbsp;</DIV><DIV>The purpose for this would be to get a stored procedure to run that can determine the validity of an instance of my entity based on an operation against a bunch of data in the database. It's too much data to bring it all client-side, but I don't want to wait to fail the save on the server to give the user feedback that I could have told them while they were entering the&nbsp;data on the client.</DIV><DIV>&nbsp;</DIV><DIV>If it's not supported directly, could I implement my own class that holds the results of asynchronous verifiers returned from&nbsp;the server, and then have the callback re-fire the verifier on the associated property and have this new execution of the verifier pick up the results of the previous asynchronous&nbsp;execution to return this time&nbsp;instead of executing the asynchronous method a second time?</DIV><DIV>&nbsp;</DIV><DIV>Thanks.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 12 Nov 2010 14:51:06 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2302&amp;PID=9098#9098</guid>
  </item> 
 </channel>
</rss>