<?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 : A complicated validation scenario</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : A complicated validation scenario</description>
  <pubDate>Thu, 11 Jun 2026 01:19:56 -700</pubDate>
  <lastBuildDate>Wed, 09 Jul 2008 10:56:36 -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=881</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>A complicated validation scenario : Matthew:  Any rule involving...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=881&amp;PID=3204#3204</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 881<br /><strong>Posted:</strong> 09-Jul-2008 at 10:56am<br /><br />Matthew:<DIV>&nbsp;</DIV><DIV>Any rule involving more than one property should be applied only at instance validation, not in response to the setting of an individual property (pre- or post-set validation). In other words, the values of the two (or more) properties that are involved in the rule should not be tested for correctness until you are validating the entire object. This permits either value to be set freely, independently of the other; but the freedom ends when the instance is validated in its entirety.</DIV><DIV>&nbsp;</DIV><DIV>Greg Dunn</DIV><DIV>IdeaBlade</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 09 Jul 2008 10:56:36 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=881&amp;PID=3204#3204</guid>
  </item> 
  <item>
   <title>A complicated validation scenario : At least its a bit complicated...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=881&amp;PID=3196#3196</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=98" rel="nofollow">Matthew</a><br /><strong>Subject:</strong> 881<br /><strong>Posted:</strong> 08-Jul-2008 at 5:01pm<br /><br />At least its a bit complicated from my point of view, but I was hoping I could get some advice on how to handle it.<br><br>I have a business object "Customer" with fields like "Status", "AccountRep", and "SupportLevel."&nbsp; There are several rules associated with Customer including the following two:<br>1. If Status = "New", then SupportLevel must = High<br>2. If Status = "New", then AccountRep cannot be null<br><br>In the GUI, Status is bound to a ComboBox.&nbsp; When the user chooses "New" from the ComboBox is where my problem begins.&nbsp; "New" is a valid choice for Status, so if AccountRep field is null, the rule is broken.&nbsp; Status should not display an error, however, AccountRep should, but the rule really should be fired when Status is changed (I want to show the user visually when he changes the Status that he mush fill out AccountRep also).&nbsp; And the rule should also be applied (in reverse I guess) when the user changes the AccountRep comboBox.<br><br>I guess my question is how to handle a situation where one field fires the rule, but the error should be displayed on another field?<br><br>If any of that needs clarification, please let me know :)<br>Thanks for any insight,<br>Matthew<br><br>]]>
   </description>
   <pubDate>Tue, 08 Jul 2008 17:01:59 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=881&amp;PID=3196#3196</guid>
  </item> 
 </channel>
</rss>