<?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>InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/142.aspx</link><description>Are you exploring new features coming up in 2010? Share information and ask questions here!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Limit displayed characters to 8</title><link>https://www.infopathdev.com:443/forums/thread/88808.aspx</link><pubDate>Wed, 10 Apr 2013 02:39:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88808</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88808.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=88808</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I must be misunderstanding, because the formula I suggested returns 8 chars (or less) in the sample I&amp;#39;ve attached.&lt;/p&gt;</description></item><item><title>Re: Limit displayed characters to 8</title><link>https://www.infopathdev.com:443/forums/thread/88795.aspx</link><pubDate>Tue, 09 Apr 2013 15:04:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88795</guid><dc:creator>dsmith45</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88795.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=88795</wfw:commentRss><description>&lt;p&gt;Hi Hilary, thanks for the reply.&amp;nbsp;&amp;nbsp;I tried this already&amp;nbsp;and found out that it won&amp;#39;t work because if I enter &amp;quot;Luke Skywalker&amp;quot;, his ID turns out to be LDSKYWALK, which is 9 characters, and if I leave out the middle initial, it becomes LSKYWALKE, which is also 9 characters.&amp;nbsp; I need to limit this to 8.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Dan&lt;/p&gt;</description></item><item><title>Re: Limit displayed characters to 8</title><link>https://www.infopathdev.com:443/forums/thread/88736.aspx</link><pubDate>Mon, 08 Apr 2013 03:19:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88736</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88736.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=88736</wfw:commentRss><description>&lt;p&gt;I&amp;#39;d concat the first initial, middle initial and last name, then take a substring of that.&lt;/p&gt;&lt;p&gt;Like this:&lt;/p&gt;&lt;p&gt;substring(concat(substring(FirstName, 1, 1), substring(MiddleInitial, 1, 2), LastName), 1, 8)&lt;/p&gt;&lt;p&gt;&amp;nbsp;So, that gives you the 8 char name you need and you can add your translate around that, then concat in the domain and \&lt;/p&gt;</description></item><item><title>Limit displayed characters to 8</title><link>https://www.infopathdev.com:443/forums/thread/88688.aspx</link><pubDate>Thu, 04 Apr 2013 23:33:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88688</guid><dc:creator>dsmith45</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88688.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=88688</wfw:commentRss><description>&lt;p&gt;Hi, in our organization we use 8-character User-IDs for authentication and I would like my InfoPath 2010 form to display it as such:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;First letter of first name&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;First letter of second name (middle initial)&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;First few letters of the last name so that the User-ID will be displayed as being up to 8 characters&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;For example, if Luke D. Skywalker joined our organization, and a form was filled out with Luke as his first name, D as his middle name initial, and Skywalker as his last name, his user-ID would become LDSKYWAL.&amp;nbsp; This assumes the first letter of the first name, the first letter of the second name, and part of the last name to make a total of 8 characters in his user-ID.&amp;nbsp; Having said this, if Luke didn&amp;#39;t have&amp;nbsp; a second initial,&amp;nbsp;his&amp;nbsp;ID should become LSKYWALK.&lt;/p&gt;
&lt;p&gt;My formula for figuring this out is kind of wrong -&amp;nbsp;it does work somewhat, but not the way I want it to.&lt;/p&gt;
&lt;p&gt;translate(concat(&amp;quot;IDIR\&amp;quot;, substring(FirstName, 1, 1), substring(MiddleInitial, 1, 2), substring(LastName, 1, 6)), &amp;quot;abcdefghijklmnopqrstuvwxyz&amp;quot;, &amp;quot;ABCDEFGHIJKLMNOPQRSTUVWXYZ&amp;quot;)&lt;/p&gt;
&lt;p&gt;This fomula will&amp;nbsp;concatenate the first letter of the FirstName field to 1 character in length displayed in the first position, the&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;first letter of the&amp;nbsp;MiddleInitial to 1 character in length displayed&amp;nbsp;in the second position, and up to 6 characters of the LastName&amp;nbsp;field to make up 8 characters, and translate the user-ID into uppercase, preceeded with&amp;nbsp;&amp;quot;IDIR\&amp;quot; text string&amp;nbsp;at the beginning.&lt;/p&gt;
&lt;p&gt;This is where I&amp;#39;m having trouble.&amp;nbsp; If I enter Luke&amp;#39;s name as the fields require with no middle initial, it translates to &amp;quot;IDIR\LSKYWAL&amp;quot; which is WRONG,&amp;nbsp;because it&amp;nbsp;is only 7 characters in length.&amp;nbsp; I need this to become &amp;quot;IDIR\LSKYWALK&amp;quot;.&amp;nbsp; If I enter his name with a middle initial, it then becomes &amp;quot;IDIR\LDSKYWAL&amp;quot;, which is correct.&lt;/p&gt;
&lt;p&gt;Can someone rewrite my formula above&amp;nbsp;so that if the name is entered with or without a middle initial, it&amp;#39;s still 8 characters in length?&amp;nbsp; I&amp;#39;m having no end of trouble with this.&lt;/p&gt;
&lt;p&gt;Thanks for your help.&lt;/p&gt;
&lt;p&gt;Dan&lt;/p&gt;</description></item></channel></rss>