﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Issues  » Object Mapper Trim Option</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 11:28:28 GMT</lastBuildDate><ttl>20</ttl><item><title>Object Mapper Trim Option</title><link>http://forum.strataframe.net/FindPost1370.aspx</link><description>&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;One problem with the new trim options in &lt;?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /&gt;&lt;st1:place w:st="on"&gt;OM&lt;/st1:place&gt; is that if you set “Trim Left and Right” you cannot enter text with an embedded space. &lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;For example if I have a field called business name I would like to allow “Microsoft Corporation” but not “_Microsoft Corporation”, “Microsoft Corporation_“, or &lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;“_ Microsoft Corporation_“. &lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;In this case when you try to enter the blank following “Microsoft” the cursor repositions to the beginning of the text. &lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;The only way to add the space is to insert it after you’ve entered the entire text string. I can code around this but it would be nice if there were some way for the framework to automatically handle it.&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;-Larry&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;</description><pubDate>Mon, 05 Jun 2006 10:55:51 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: Object Mapper Trim Option</title><link>http://forum.strataframe.net/FindPost1391.aspx</link><description>I'm glad that worked... I'm still checking to see if there is a way to work around it if the BindingUpdateMode is still set to OnPropertyChanged, but it's not looking that way.</description><pubDate>Mon, 05 Jun 2006 10:55:51 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Object Mapper Trim Option</title><link>http://forum.strataframe.net/FindPost1390.aspx</link><description>Ben,&lt;/P&gt;&lt;P style="BACKGROUND: white"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;Thanks for the 'OnValidation' tip. That results in the behavior I was looking for.&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="BACKGROUND: white"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;-Larry&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;</description><pubDate>Mon, 05 Jun 2006 10:53:48 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: Object Mapper Trim Option</title><link>http://forum.strataframe.net/FindPost1377.aspx</link><description>Hrm.&amp;nbsp; Thanks for the heads up on that Larry.&amp;nbsp; I'll check into that.&amp;nbsp; One think you might do is try changing the&amp;nbsp;BindingUpdateMode&amp;nbsp;on the TextBox control from OnPropertyChanged to OnValidation and see if that helps.&amp;nbsp; That will set the binding to only push its entered data back to the business object when the control validates.</description><pubDate>Sun, 04 Jun 2006 21:04:49 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>