<?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 : Integer values being 0</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Integer values being 0</description>
  <pubDate>Thu, 11 Jun 2026 04:47:59 -700</pubDate>
  <lastBuildDate>Fri, 25 Apr 2008 10:01:34 -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=780</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>Integer values being 0 : Number 1 is an interesting idea...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=780&amp;PID=2877#2877</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=90" rel="nofollow">DataMan</a><br /><strong>Subject:</strong> 780<br /><strong>Posted:</strong> 25-Apr-2008 at 10:01am<br /><br />Number 1 is an interesting idea because then if what you set in code for the value to be&nbsp;isn't what the user wants they will change it.<DIV>&nbsp;</DIV><DIV>Number 2 - I've looked into this and while it works really well I was assuming that when i called the instance verification that it would turn on the ErrorProvider on the form&nbsp;for the field that failed.&nbsp; Without me doing some research and taking the easy way out by asking you :-) Is there any way to, upon verification, get the errorproviders flashing for items that don't validate?</DIV><DIV>&nbsp;</DIV><DIV>Thanks</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 25 Apr 2008 10:01:34 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=780&amp;PID=2877#2877</guid>
  </item> 
  <item>
   <title>Integer values being 0 : Creating a new entity is one place...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=780&amp;PID=2866#2866</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=23" rel="nofollow">davidklitzke</a><br /><strong>Subject:</strong> 780<br /><strong>Posted:</strong> 22-Apr-2008 at 7:49pm<br /><br />Creating a new entity is one place where some of the properties of a business object can escape verification.&nbsp; If a property is a required property, it must be initialized in the process of creation.&nbsp; Furthermore,&nbsp;if it is an integer field, it will be initialized to zero. <DIV>&nbsp;</DIV><DIV>There are at least two solutions/workarounds to this problem<img src="http://www.ideablade.com/forum/uploads/20080422_225423_instance_verifi.JPG" height="384" width="676" border="0" />.</DIV><DIV>&nbsp;</DIV><DIV>(1) In the creation code, make sure there are no uninitialized fields that would break verification rules if set to the default value (e.g., an integer field set to 0).&nbsp; This is the quick (but by no means foolproof) method.</DIV><DIV>&nbsp;</DIV><DIV>(2) Use Instance Verification immediately after creating a business object.&nbsp; This is the sure way (although it is a little more work).&nbsp; Read more about Instance Verification in the "Developer's Guide".</DIV><span style="font-size:10px"><br /><br />Edited by davidklitzke - 22-Apr-2008 at 7:54pm</span>]]>
   </description>
   <pubDate>Tue, 22 Apr 2008 19:49:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=780&amp;PID=2866#2866</guid>
  </item> 
  <item>
   <title>Integer values being 0 : I have a form with a textbox on...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=780&amp;PID=2859#2859</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=90" rel="nofollow">DataMan</a><br /><strong>Subject:</strong> 780<br /><strong>Posted:</strong> 22-Apr-2008 at 8:45am<br /><br /><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Calibri>I have a form with a textbox on it (added using devforce) that is tied to an integer field in SQL.</FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Calibri>I added a verifier to the&nbsp;field that this textbox is bound to which&nbsp;says that the value is required and the min value is 1.<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></P><FONT size=3><FONT face=Calibri><DIV>&nbsp;</DIV><DIV>When I add a new record using the create method, the value 0 automatically gets entered into the text box.&nbsp; </FONT></FONT><FONT size=3><FONT face=Calibri>If I don’t change that value or tab into the field I am allowed to save the record even though it is 0.&nbsp; No error message occurs.<o:p></o:p></FONT></FONT></DIV><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face=Calibri size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Calibri>The same thing is happening with all of my comboboxes that are tied to integer values.<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face=Calibri size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face=Calibri>Do I need to add my own validation of those text boxes(!=0)/comboboxes(notinlist) and throw an error of my own or is there a way to do it in Ideablade?</P><DIV>&nbsp;</DIV><DIV><DIV></DIV><DIV></DIV>Thanks<o:p></o:p></FONT></FONT></DIV>]]>
   </description>
   <pubDate>Tue, 22 Apr 2008 08:45:27 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=780&amp;PID=2859#2859</guid>
  </item> 
 </channel>
</rss>