<?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 : Warnings vs. Errors</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Warnings vs. Errors</description>
  <pubDate>Thu, 11 Jun 2026 09:25:21 -700</pubDate>
  <lastBuildDate>Thu, 07 Feb 2008 12:46:07 -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=120</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>Warnings vs. Errors : I override the base IDataErrorInfo...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=120&amp;PID=2522#2522</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=38" rel="nofollow">rclarke</a><br /><strong>Subject:</strong> 120<br /><strong>Posted:</strong> 07-Feb-2008 at 12:46pm<br /><br />I override the base IDataErrorInfo and return nothing for the implementations functions. This essentually tells .Net that no errors exist and the behavior implemented for DevEx will be invoked. Or you could add a compile switch to the CommonEntity class to include the implementation you desire. The following code snippet in how I do the overrides in BaseEntity. <DIV><FONT color=#0000ff size=3><P>#Region</FONT><FONT size=3> </FONT><FONT color=#a31515 size=3>"IDataErrorInfo"</P></FONT><FONT size=3><P></FONT><FONT color=#008000 size=3>' Entity inherits from IDataErrorInfo as of DF 3.5.3</P></FONT><FONT size=3><P></FONT><FONT color=#008000 size=3>' providing virtual GetDataErrorInfo overloads for the implementation</P></FONT><FONT size=3><P></FONT><FONT color=#008000 size=3>' of the two IDataErrorInfo methods.</P></FONT><FONT size=3><P></FONT><FONT color=#008000 size=3>' This region re-implements the overloads to use the VerifierResultsCache</P></FONT><FONT size=3><P></FONT><FONT color=#008000 size=3>''' </FONT><FONT color=#808080 size=3>&lt;summary&gt;</P></FONT><FONT size=3><P></FONT><FONT color=#008000 size=3>''' Get error message for a particular triggering property.</P></FONT><FONT size=3><P></FONT><FONT color=#008000 size=3>''' </FONT><FONT color=#808080 size=3>&lt;/summary&gt;</P></FONT><FONT size=3><P></FONT><FONT color=#008000 size=3>''' </FONT><FONT color=#808080 size=3>&lt;param name="pPropertyName"&gt;</FONT><FONT color=#008000 size=3>Name of the property we're looking for.</FONT><FONT color=#808080 size=3>&lt;/param&gt;</P></FONT><FONT size=3><P></FONT><FONT color=#008000 size=3>''' </FONT><FONT color=#808080 size=3>&lt;returns&gt;</FONT><FONT color=#008000 size=3>The first message found; null if no message found.</FONT><FONT color=#808080 size=3>&lt;/returns&gt;</P></FONT><FONT size=3><P></FONT><FONT color=#008000 size=3>''' </FONT><FONT color=#808080 size=3>&lt;remarks&gt;</P></FONT><FONT size=3><P></FONT><FONT color=#008000 size=3>''' This implementation looks among the VerifierResults</P></FONT><FONT size=3><P></FONT><FONT color=#008000 size=3>''' for the "first" errant VerifierResult that could have been triggered by this property.</P></FONT><FONT size=3><P></FONT><FONT color=#008000 size=3>''' There could be many such results.</P></FONT><FONT size=3><P></FONT><FONT color=#008000 size=3>''' </FONT><FONT color=#808080 size=3>&lt;para&gt;</P></FONT><FONT size=3><P></FONT><FONT color=#008000 size=3>''' One could override to provide alternative messaging </P></FONT><FONT size=3><P></FONT><FONT color=#008000 size=3>''' such as line wrapping all of the property's VerifierResult messages.</P></FONT><FONT size=3><P></FONT><FONT color=#008000 size=3>''' </FONT><FONT color=#808080 size=3>&lt;/para&gt;</P></FONT><FONT size=3><P></FONT><FONT color=#008000 size=3>''' </FONT><FONT color=#808080 size=3>&lt;/remarks&gt;</P></FONT><FONT size=3><P></FONT><FONT color=#0000ff size=3>Protected</FONT><FONT size=3> </FONT><FONT color=#0000ff size=3>Overrides</FONT><FONT size=3> </FONT><FONT color=#0000ff size=3>Function</FONT><FONT size=3> GetDataErrorInfo(</FONT><FONT color=#0000ff size=3>ByVal</FONT><FONT size=3> pPropertyName </FONT><FONT color=#0000ff size=3>As</FONT><FONT size=3> </FONT><FONT color=#0000ff size=3>String</FONT><FONT size=3>) </FONT><FONT color=#0000ff size=3>As</FONT><FONT size=3> </FONT><FONT color=#0000ff size=3>String</P></FONT><FONT size=3><P></FONT><FONT color=#008000 size=3>'Since we are implementing the DevX error provider</P></FONT><FONT size=3><P></FONT><FONT color=#008000 size=3>'return nothing to the base indicating no error</P></FONT><FONT size=3><P></FONT><FONT color=#008000 size=3>'Return VerifierResultsCache.ToString(pPropertyName)</P></FONT><FONT size=3><P></FONT><FONT color=#0000ff size=3>Return</FONT><FONT size=3> </FONT><FONT color=#0000ff size=3>Nothing</P></FONT><FONT size=3><P></FONT><FONT color=#0000ff size=3>End</FONT><FONT size=3> </FONT><FONT color=#0000ff size=3>Function</P></FONT><FONT size=3><P></FONT><FONT color=#008000 size=3>''' </FONT><FONT color=#808080 size=3>&lt;summary&gt;</FONT><FONT color=#008000 size=3>Get error message for the object as a whole.</FONT><FONT color=#808080 size=3>&lt;/summary&gt;</P></FONT><FONT size=3><P></FONT><FONT color=#008000 size=3>''' </FONT><FONT color=#808080 size=3>&lt;remarks&gt;</P></FONT><FONT size=3><P></FONT><FONT color=#008000 size=3>''' This implementation returns a string representation </P></FONT><FONT size=3><P></FONT><FONT color=#008000 size=3>''' of all errant VerifierResults of this object.</P></FONT><FONT size=3><P></FONT><FONT color=#008000 size=3>''' Could override to provide alternative messaging.</P></FONT><FONT size=3><P></FONT><FONT color=#008000 size=3>''' </FONT><FONT color=#808080 size=3>&lt;/remarks&gt;</P></FONT><FONT size=3><P></FONT><FONT color=#0000ff size=3>Protected</FONT><FONT size=3> </FONT><FONT color=#0000ff size=3>Overrides</FONT><FONT size=3> </FONT><FONT color=#0000ff size=3>Function</FONT><FONT size=3> GetDataErrorInfo() </FONT><FONT color=#0000ff size=3>As</FONT><FONT size=3> </FONT><FONT color=#0000ff size=3>String</P></FONT><FONT size=3><P></FONT><FONT color=#008000 size=3>'Since we are implementing the DevX error provider</P></FONT><FONT size=3><P></FONT><FONT color=#008000 size=3>'return nothing to the base indicating no error</P></FONT><FONT size=3><P></FONT><FONT color=#008000 size=3>'Return CType(VerifierResultsCache, Object).ToString()</P></FONT><FONT size=3><P></FONT><FONT color=#0000ff size=3>Return</FONT><FONT size=3> </FONT><FONT color=#0000ff size=3>Nothing</P></FONT><FONT size=3><P></FONT><FONT color=#0000ff size=3>End</FONT><FONT size=3> </FONT><FONT color=#0000ff size=3>Function</P></FONT></DIV>]]>
   </description>
   <pubDate>Thu, 07 Feb 2008 12:46:07 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=120&amp;PID=2522#2522</guid>
  </item> 
  <item>
   <title>Warnings vs. Errors : A customer asked:  I did all...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=120&amp;PID=2496#2496</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=51" rel="nofollow">eileenv</a><br /><strong>Subject:</strong> 120<br /><strong>Posted:</strong> 01-Feb-2008 at 12:15pm<br /><br /><P>A customer asked:</P><DIV><P ="Ms&#111;normal"><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Arial','sans-serif'">I did all the changes that were suggested and it seems to show the DevEx error provider as required. But what happens is, I now see BOTH the DevEx error provider and the .NET error provider. How do I remove the .NET error provider?&nbsp;<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><O:P></O:P></SPAN></P><P ="Ms&#111;normal"><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Arial','sans-serif'"></P><P ="Ms&#111;normal"><SPAN style="COLOR: #1f497d"><O:P></O:P></SPAN></P><P ="Ms&#111;normal"><SPAN style="COLOR: #1f497d"><O:P><FONT color=#000000>Answer:</FONT></O:P></SPAN></P><SPAN style="COLOR: #1f497d"><O:P><P ="Ms&#111;normal"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">The following snippet shows you how you can gain access to a control’s ErrorProvider to change its properties, replace it entirely, or in this case, set it to null:<O:P></O:P></SPAN></FONT></P><P ="Ms&#111;normal">&nbsp;&nbsp;&nbsp; private void InitializeForm() {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ConfigureErrorProvider(mCityTextEdit, "City");<BR>&nbsp;&nbsp;&nbsp; }</P><P ="Ms&#111;normal">&nbsp;&nbsp;&nbsp; private void ConfigureErrorProvider(Control pControl, String pPropertyPath) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // For some Control pControl, retrieve its data bindings<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; foreach (Binding aBinding in pControl.DataBindings) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Cast the binding to an IdeaBladeBinding<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IdeaBladeBinding binding = aBinding as IdeaBladeBinding;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (binding != null &amp;&amp; binding.BindingDescriptor.ViewDescriptor.Name == pPropertyPath) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; binding.ErrorProvider = null;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; }&nbsp;</O:P></SPAN></P><P ="Ms&#111;normal"><SPAN style="COLOR: #1f497d"><O:P>&nbsp;</O:P></SPAN></P><DIV></DIV><P ="Ms&#111;normal"><O:P></O:P></SPAN></P></DIV><span style="font-size:10px"><br /><br />Edited by eileenv - 01-Feb-2008 at 12:17pm</span>]]>
   </description>
   <pubDate>Fri, 01 Feb 2008 12:15:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=120&amp;PID=2496#2496</guid>
  </item> 
  <item>
   <title>Warnings vs. Errors :  The following zip contains the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=120&amp;PID=2493#2493</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=51" rel="nofollow">eileenv</a><br /><strong>Subject:</strong> 120<br /><strong>Posted:</strong> 31-Jan-2008 at 2:25pm<br /><br /><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Arial','sans-serif'"><DIV>The following zip contains the sample code&nbsp;mentioned in this post. It was sent by a customer who was interested in integrating DevEx’s Error Provider mechanism with DevForce. It is written in VB and is provided as-is. </DIV><DIV>&nbsp;</DIV><DIV><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'"><a href="http://www.ideablade.com/forum/uploads/20080131_172404_WarningsvsError.zip" target="_blank">uploads/20080131_172404_WarningsvsError.zip</A></SPAN></DIV><DIV>&nbsp;</DIV><DIV>He also sent the following the comments about the code:<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><O:P></O:P></SPAN></DIV><P ="Ms&#111;normal"><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Arial','sans-serif'"><O:P></O:P></SPAN></P><P ="Ms&#111;normal"><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Arial','sans-serif'">-----------------<O:P></O:P></SPAN></P><P ="Ms&#111;normal"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">I also attached my VB version of BaseEntity and supporting files as I use them (most of it, I converted from the C# tutotial) which works great.<O:P></O:P></SPAN></P><P ="Ms&#111;normal"><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"><O:P></O:P></SPAN></P><P ="Ms&#111;normal"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">Small mods include adjusting the VerifierCache to include Warnings.</SPAN><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"><O:P></O:P></SPAN></P><P ="Ms&#111;normal"><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"><O:P></O:P></SPAN></P><P ="Ms&#111;normal"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">One also needs to add references in the Model for DevExpress.XtraEditors, Data, Utils.<O:P></O:P></SPAN></P><P ="Ms&#111;normal"><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"><O:P></O:P></SPAN></P><P ="Ms&#111;normal"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">BaseEntity includes an implementation which simply converts the VerifierResultCode to a DevExpress.ErrorType which is crucial for correct Error Icons on the UI.<O:P></O:P></SPAN></P><P><SPAN style="COLOR: blue">Private</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black"> DXprovider </SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue">As</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black"> DXErrorProvider.DXErrorProvider</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue"><O:P></O:P></SPAN></P><P><SPAN style="FONT-SIZE: 10pt; COLOR: blue">Private</SPAN><SPAN style="FONT-SIZE: 10pt"> <SPAN style="COLOR: blue">Sub</SPAN> Form_Load(<SPAN style="COLOR: blue">ByVal</SPAN> sender <SPAN style="COLOR: blue">As</SPAN> System.Object, <SPAN style="COLOR: blue">ByVal</SPAN> e <SPAN style="COLOR: blue">As</SPAN> System.EventArgs) <SPAN style="COLOR: blue">Handles</SPAN> <SPAN style="COLOR: blue">MyBase</SPAN>.Load<O:P></O:P></SPAN></P><P>&nbsp;&nbsp;&nbsp; DXprovider = <SPAN style="FONT-SIZE: 10pt; COLOR: blue">New</SPAN><SPAN style="FONT-SIZE: 10pt"> DXErrorProvider.DXErrorProvider()<O:P></O:P></SPAN></P><P>&nbsp;&nbsp;&nbsp; DXprovider.ContainerControl = <SPAN style="FONT-SIZE: 10pt; COLOR: blue">Me<O:P></O:P></SPAN></P><P>&nbsp;&nbsp;&nbsp; DXprovider.DataSource = <SPAN style="FONT-SIZE: 10pt; COLOR: blue">Me</SPAN><SPAN style="FONT-SIZE: 10pt">.MainBS<O:P></O:P></SPAN></P><P ="Ms&#111;normal"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Times New Roman','serif'">End Sub</SPAN><O:P></O:P></P><P ="Ms&#111;normal"><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Arial','sans-serif'">-----------------<O:P></O:P></SPAN></P><a href="http://www.ideablade.com/forum/uploads/20080131_172105_WarningsvsError.zip" target="_blank"></A><span style="font-size:10px"><br /><br />Edited by eileenv - 31-Jan-2008 at 3:27pm</span>]]>
   </description>
   <pubDate>Thu, 31 Jan 2008 14:25:50 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=120&amp;PID=2493#2493</guid>
  </item> 
  <item>
   <title>Warnings vs. Errors : Hi, Can I have that code please?Thanks...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=120&amp;PID=2486#2486</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=237" rel="nofollow">naveed_kharadi</a><br /><strong>Subject:</strong> 120<br /><strong>Posted:</strong> 31-Jan-2008 at 12:15pm<br /><br />Hi, <br><br>Can I have that code please?<br><br>Thanks and regards.<br>]]>
   </description>
   <pubDate>Thu, 31 Jan 2008 12:15:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=120&amp;PID=2486#2486</guid>
  </item> 
  <item>
   <title>Warnings vs. Errors : Hi!is it possible to get the code...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=120&amp;PID=2015#2015</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=194" rel="nofollow">Bernhard</a><br /><strong>Subject:</strong> 120<br /><strong>Posted:</strong> 27-Nov-2007 at 5:41am<br /><br />Hi!<br><br>is it possible to get the code as well?<br><br>Thank you!<br>Bernhard<br>]]>
   </description>
   <pubDate>Tue, 27 Nov 2007 05:41:24 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=120&amp;PID=2015#2015</guid>
  </item> 
  <item>
   <title>Warnings vs. Errors : At last,someone else is coding...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=120&amp;PID=1982#1982</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=52" rel="nofollow">Yaron</a><br /><strong>Subject:</strong> 120<br /><strong>Posted:</strong> 19-Nov-2007 at 9:23pm<br /><br /><P>At last,&nbsp;someone else is coding in VB. </P><DIV>can I have it please?</DIV><span style="font-size:10px"><br /><br />Edited by Yaron - 19-Nov-2007 at 9:23pm</span>]]>
   </description>
   <pubDate>Mon, 19 Nov 2007 21:23:00 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=120&amp;PID=1982#1982</guid>
  </item> 
  <item>
   <title>Warnings vs. Errors : We get asked this question a lot....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=120&amp;PID=1980#1980</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=51" rel="nofollow">eileenv</a><br /><strong>Subject:</strong> 120<br /><strong>Posted:</strong> 19-Nov-2007 at 3:54pm<br /><br /><P>We get asked this question a lot. One of our customers was kind enough to send us the files he modified in order to support the use of DevEx controls and the use of the DevEx error provider which includes support for displaying warning as well as error icons. We have not yet incorporated these changes into our current set of Instructional Units, but I would be happy to send you the files as-is if you are interested. The code is currently written in VB. </P>]]>
   </description>
   <pubDate>Mon, 19 Nov 2007 15:54:03 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=120&amp;PID=1980#1980</guid>
  </item> 
  <item>
   <title>Warnings vs. Errors : You mention the DevEx implementation...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=120&amp;PID=1979#1979</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=52" rel="nofollow">Yaron</a><br /><strong>Subject:</strong> 120<br /><strong>Posted:</strong> 19-Nov-2007 at 12:07pm<br /><br />You mention the DevEx implementation with regards to warnings, how can I adapt that approach with IB verification? ]]>
   </description>
   <pubDate>Mon, 19 Nov 2007 12:07:47 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=120&amp;PID=1979#1979</guid>
  </item> 
  <item>
   <title>Warnings vs. Errors : The warning will notshow up in...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=120&amp;PID=542#542</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=51" rel="nofollow">eileenv</a><br /><strong>Subject:</strong> 120<br /><strong>Posted:</strong> 13-Jul-2007 at 10:32am<br /><br /><P>The warning will not&nbsp;show up in the UI <EM>unless you explicitly display it</EM>. It will not show up automatically like errors do. This means you would have to iterate through the VerifierResultsCollection, pick out the warnings, and display it somehow in the UI. </P><DIV>How do you provide the error information in your implementation of IDataErrorInfo? If you are using a VeriferResultsCache as in the&nbsp;Verification Tutorial application (associated with the videos on website), you should notice that only errors are added to this cache. You would have to modify the VerifierResultsCache class (in C#&nbsp;example)&nbsp;to include Warnings in addition to the Errors. I have an example showing this if you are interested.&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Again, if you are supplying warnings to the IDataErrorInfo mechanism,&nbsp;it may not make sense to some people that a warning appears like an error (with the Error icon).&nbsp;It all depends&nbsp;on whether you want to treat warnings as errors. It would be nice if the IDataErrorInfo allowed you to specify other icons such as a warning icon.</DIV>]]>
   </description>
   <pubDate>Fri, 13 Jul 2007 10:32:41 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=120&amp;PID=542#542</guid>
  </item> 
  <item>
   <title>Warnings vs. Errors : Thanks for the reply.  I&amp;#039;m...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=120&amp;PID=538#538</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=72" rel="nofollow">naveen.menon</a><br /><strong>Subject:</strong> 120<br /><strong>Posted:</strong> 13-Jul-2007 at 6:15am<br /><br />Thanks for the reply.<DIV>&nbsp;</DIV><DIV>I'm a little confused with regard to the showing of the error icon. </DIV><DIV>&nbsp;</DIV><DIV>Are you saying that even a warning&nbsp;should show up on the UI?</DIV><DIV>&nbsp;</DIV><DIV>All our classes inherit from BaseEntity which implements IDataErrorInfo. The errors show up fine but the warnings don't show the error icon. I can catch the warnings&nbsp;from the VerfierResult collection just fine but the warnings don't show the icon on the UI.</DIV><DIV>&nbsp;</DIV><DIV>Is this correct behaviour?</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 13 Jul 2007 06:15:56 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=120&amp;PID=538#538</guid>
  </item> 
  <item>
   <title>Warnings vs. Errors : The VerifierResultCollection contains...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=120&amp;PID=263#263</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=51" rel="nofollow">eileenv</a><br /><strong>Subject:</strong> 120<br /><strong>Posted:</strong> 10-Jul-2007 at 12:21pm<br /><br />The VerifierResultCollection contains information about <U>all</U> the results of a call to&nbsp;VerifierEngine.Execute&nbsp;including Errors, Warnings, and Oks. The question now&nbsp;becomes how to display <EM>warnings</EM> in the UI. Unlike errors, warnings are not thrown as exceptions and are, therefore, not caught by the UI, nor displayed with an error icon. <DIV>&nbsp;</DIV><DIV>You can&nbsp;implement IDataErrorInfo in your app to display warnings as well as errors. But the problem now becomes the all-or-nothing nature of the IDataErrorInfo interface. The interface&nbsp;does not provide a convenient way of specifying other types of icons such as warning icons. If you don't care about the icon, then implementing IDataErrorInfo will display the warning message.</DIV><DIV>&nbsp;</DIV><DIV>DevExpress, on the other hand, implements its own IDxDataErrorInfo&nbsp;with support for a warning icon, and it can be easily adapted to display results in VerifierResultCollection.</DIV><DIV>&nbsp;</DIV><DIV>Note about IDataErrorInfo: As of DevForce 3.5.2.3, IDataErrorInfo is now being implemented in the abstract Entity class. A forthcoming release will give users the ability to override the implementation. For now, you will have to explicitly implement IDataErrorInfo in your app in order to override the base implementation.</DIV>]]>
   </description>
   <pubDate>Tue, 10 Jul 2007 12:21:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=120&amp;PID=263#263</guid>
  </item> 
  <item>
   <title>Warnings vs. Errors : I read somewhere about the ability...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=120&amp;PID=258#258</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=72" rel="nofollow">naveen.menon</a><br /><strong>Subject:</strong> 120<br /><strong>Posted:</strong> 09-Jul-2007 at 12:55pm<br /><br />I read somewhere about the ability to use warnings, instead of errors, in the verification piece. The Developer's guide (3.5.1) doesn't seem to address this. Could someone point me to the right resources where I can get some more information ragrding this?<DIV>&nbsp;</DIV><DIV>Thanks,</DIV><DIV>&nbsp;</DIV><DIV>Naveen</DIV>]]>
   </description>
   <pubDate>Mon, 09 Jul 2007 12:55:18 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=120&amp;PID=258#258</guid>
  </item> 
 </channel>
</rss>