<?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 : Entity MaxLength Property</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Entity MaxLength Property</description>
  <pubDate>Fri, 12 Jun 2026 14:21:51 -700</pubDate>
  <lastBuildDate>Tue, 22 Mar 2011 16:50:05 -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=2569</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>Entity MaxLength Property : Hi Silvo, The issue is that I...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2569&amp;PID=10253#10253</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=579" rel="nofollow">gregweb</a><br /><strong>Subject:</strong> 2569<br /><strong>Posted:</strong> 22-Mar-2011 at 4:50pm<br /><br /><P>Hi Silvo,</P><DIV>The issue is that I am doing data processing and have no control over the data that is sometimes input.&nbsp; Thus it can happen that the field is over 350 chars, so yes, I just want to truncate the field down to the 350 chars so no error is thrown.</DIV><DIV>&nbsp;</DIV><DIV>So yes, you do understand correctly.</DIV><DIV>&nbsp;</DIV><DIV>I will check out the BeforeSet property interceptor, it's sounds like what I am looking for.</DIV><DIV>&nbsp;</DIV><DIV>Greg</DIV>]]>
   </description>
   <pubDate>Tue, 22 Mar 2011 16:50:05 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2569&amp;PID=10253#10253</guid>
  </item> 
  <item>
   <title>Entity MaxLength Property : Hi Greg,   Not sure I understand...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2569&amp;PID=10224#10224</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2569<br /><strong>Posted:</strong> 21-Mar-2011 at 1:53am<br /><br /><P>Hi Greg, </P><DIV>&nbsp;</DIV><DIV>Not sure I understand the issue... </DIV><DIV>You want to be able to enter more than 350 characters and not have any error thrown? If this is the size limit you will get the exception regardless. (from DevForce and/or the datasource)</DIV><DIV>&nbsp;</DIV><DIV>If you still&nbsp;want to be able to input more than 350 chars without&nbsp;errors, you should handle the extra characters before you try to commit. For that I suggest using the property interceptor (<EM>BeforeSet</EM>) to truncate the string to the maximum allowed size.</DIV><DIV>&nbsp;</DIV><DIV>You can find additional info about property interceptors&nbsp;in the <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/Property-Interceptors" target="_blank">DevForce Resource Center</A>.</DIV><DIV>&nbsp;</DIV><DIV>Let me know if I understood your issue and if that's the answer you are looking for.</DIV><DIV>&nbsp;</DIV><DIV>Silvio.</DIV>]]>
   </description>
   <pubDate>Mon, 21 Mar 2011 01:53:05 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2569&amp;PID=10224#10224</guid>
  </item> 
  <item>
   <title>Entity MaxLength Property :   I have an Entity which has...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2569&amp;PID=10214#10214</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=579" rel="nofollow">gregweb</a><br /><strong>Subject:</strong> 2569<br /><strong>Posted:</strong> 19-Mar-2011 at 10:01am<br /><br /><DIV></DIV><DIV></DIV><DIV>I have an Entity which has a VarChar field of 350 chars.&nbsp; On rare occasions, the length will exceed that.&nbsp; An error is then thrown by the database.</DIV><DIV>&nbsp;</DIV><DIV>If I set the MaxLength of the property on the Entity, I still get an error that says MaxLength has been exceeded.</DIV><DIV>&nbsp;</DIV><DIV>What is the guidance on avoiding this type of error?&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>There is no GUI involved, it occurs on backend processing, so I don't think it really a validation issue.</DIV><DIV>&nbsp;</DIV><DIV>If it just truncated the field, that would be OK with me as it's usually corruption on a data error when it gets exceeded.</DIV><DIV>&nbsp;</DIV><DIV>But I do want to save the rest of the entity which I can't do if it's throwing an error.</DIV><DIV>&nbsp;</DIV><DIV>Greg</DIV>]]>
   </description>
   <pubDate>Sat, 19 Mar 2011 10:01:13 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2569&amp;PID=10214#10214</guid>
  </item> 
 </channel>
</rss>