<?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 : trim or left on char fields</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : trim or left on char fields</description>
  <pubDate>Mon, 13 Apr 2026 20:32:30 -700</pubDate>
  <lastBuildDate>Wed, 18 May 2011 17:46:46 -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=2695</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>trim or left on char fields :   Hi Kurt,Canonical functions...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2695&amp;PID=10751#10751</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 2695<br /><strong>Posted:</strong> 18-May-2011 at 5:46pm<br /><br />Hi Kurt,<div>&nbsp;</div><div>Canonical functions like Trim and LTrim&nbsp;are supported today when using Entity SQL in DevForce.&nbsp; The PassthruEsqlQuery is used for ESQL queries in DevForce.&nbsp;&nbsp; You can find more information here - <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/passthruesql-query" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/passthruesql-query</a></div><div>&nbsp;</div><div>The "AfterGet" property interceptor might be a better alternative for the char fields.&nbsp; With an AfterGet interceptor you can modify the value before it's returned from a property getter, so you could use this to strip off spaces.&nbsp; It's true that the queried data would still have spaces when returned from the EntityServer, but since results are compressed before sending to the client the extra spaces probably don't cause a significant increase in payload size.&nbsp; If you want more information on property interceptors this is a good place to start - <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/attribute-intercepti&#111;n" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/attribute-interception</a>.&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Wed, 18 May 2011 17:46:46 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2695&amp;PID=10751#10751</guid>
  </item> 
  <item>
   <title>trim or left on char fields :   Any idea on when we might...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2695&amp;PID=10740#10740</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=717" rel="nofollow">kpinniger</a><br /><strong>Subject:</strong> 2695<br /><strong>Posted:</strong> 18-May-2011 at 6:20am<br /><br />Any idea on when we might support EF 4 ability to do a left or trim on char columns...<div>&nbsp;</div><div>We have values in our legacy customer databases like this for a value, </div><div>&nbsp;</div><div><div><span style='color: rgb31, 73, 125; font-family: "Calibri","sans-serif"; font-size: 10.5pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-: EN-US; mso-fareast-: EN-US; mso-bidi-: AR-SA;'>“AP        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ”</span></div><div><span style='color: rgb31, 73, 125; font-family: "Calibri","sans-serif"; font-size: 10.5pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-: EN-US; mso-fareast-: EN-US; mso-bidi-: AR-SA;'>&nbsp;</span></div></div><div>and it is a char(60).&nbsp; We cannot change customers data and we cannot change customers column types, so we would like to be able to use EF 4 trim or ltrim.&nbsp; So when we retrieve data we need to be able to trim off the padded spaces.</div><div>&nbsp;</div><div>Thanks,</div><div>Kurt Pinniger</div><div>CDC Software</div><div><span style='color: rgb31, 73, 125; font-family: "Calibri","sans-serif"; font-size: 10.5pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-: EN-US; mso-fareast-: EN-US; mso-bidi-: AR-SA;'></span>&nbsp;</div><div><span style='color: rgb31, 73, 125; font-family: "Calibri","sans-serif"; font-size: 10.5pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-: EN-US; mso-fareast-: EN-US; mso-bidi-: AR-SA;'></span>&nbsp;</div>]]>
   </description>
   <pubDate>Wed, 18 May 2011 06:20:45 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2695&amp;PID=10740#10740</guid>
  </item> 
 </channel>
</rss>