<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Padding values in a text box</title><link>https://www.infopathdev.com:443/forums/thread/24607.aspx</link><pubDate>Wed, 21 Nov 2007 14:30:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24607</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24607.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=24607</wfw:commentRss><description>&lt;p&gt;Alright Ed, we got get through this eventually right? :)&lt;/p&gt;
&lt;p&gt;Have you tried doing this without code and just through the rules setup? I think what&amp;nbsp;I described last should work for you.&amp;nbsp; The code above adds one space to your entry but would not work for shorter entries.&amp;nbsp; You would either need logic for each of the 4 scenarios and copy that or get the normalize-space to work.&lt;/p&gt;</description></item><item><title>Padding values in a text box</title><link>https://www.infopathdev.com:443/forums/thread/24598.aspx</link><pubDate>Wed, 21 Nov 2007 11:25:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24598</guid><dc:creator>Ed Rodman</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24598.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=24598</wfw:commentRss><description>&lt;p&gt;xdXDocument:GetDOM(&amp;quot;RELM_LOOKUP&amp;quot;)/dfs:myFields/dfs:dataFields/d:RELM_LOOKUP/@RELM_NME[concat(txt_RelmNumber, &amp;quot; &amp;quot;) = @RELM_ID]&lt;/p&gt;
&lt;p&gt;Clay, I set a condition that looks for the field entered does not equal the pattern (5 characters) this should catch anything that is not 5 characters. Then I&amp;#39;ve included the filter in the above XPATH code snippet.&amp;nbsp;&amp;nbsp; RELM_LOOKUP is the secondary&amp;nbsp; data connection, @RELM_NME is the value from the query that I want (Account Name) txt_RelmNumber is what they enter in the text box and @RELM_ID is the compare value from the secondary data connection. I cant get it to work for any value entered that is 3 or 4 characters in length. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Again, if I have an account name like &amp;quot;ABI&amp;quot; and I add 2 spaces at the end when I enter it into the text box, the lookup works perfectly....when i dont enter the spaces, I don&amp;#39;t get any value.&lt;/p&gt;</description></item></channel></rss>