<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Repeating Table values from datasource with People Picker Duplicate Comma Issues</title><link>https://www.infopathdev.com:443/forums/thread/101133.aspx</link><pubDate>Wed, 11 Feb 2015 01:49:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101133</guid><dc:creator>HLWilliams_Newb</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101133.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=101133</wfw:commentRss><description>&lt;p&gt;So what I need is a way to grab data from a multi-selection list box&amp;nbsp;tool (which grabs values from a data connection to a SP list)&amp;nbsp;and get the &amp;quot; ; &amp;quot; in between the values.&amp;nbsp; For this I am&amp;nbsp;currently using this eval&amp;nbsp;formula:&lt;/p&gt;
&lt;p&gt;eval(eval(RepeatingGroup, &amp;#39;concat(my:Value, substring(&amp;quot;;&amp;quot;, 1, string-length(my:Value)))&amp;#39;), &amp;quot;..&amp;quot;)&lt;/p&gt;
&lt;p&gt;Actual Code once the user clicks a button to populate the &amp;quot;Recipient&amp;quot; box which in turn feeds the data connection to send the email: &lt;/p&gt;
&lt;p&gt;&lt;em&gt;concat(eval(eval(DM[. != &amp;quot;&amp;quot;], &amp;#39;concat(., &amp;quot;;&amp;quot;)&amp;#39;), &amp;quot;..&amp;quot;), eval(eval(PM[. != &amp;quot;&amp;quot;], &amp;#39;concat(., &amp;quot;;&amp;quot;)&amp;#39;), &amp;quot;..&amp;quot;), eval(eval(TFBW[. != &amp;quot;&amp;quot;], &amp;#39;concat(., &amp;quot;;&amp;quot;)&amp;#39;), &amp;quot;..&amp;quot;), eval(eval(TEEngineer[. != &amp;quot;&amp;quot;], &amp;#39;concat(., &amp;quot;;&amp;quot;)&amp;#39;), &amp;quot;..&amp;quot;), eval(eval(TE_MNGR[. != &amp;quot;&amp;quot;], &amp;#39;concat(., &amp;quot;;&amp;quot;)&amp;#39;), &amp;quot;..&amp;quot;))&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;but the &lt;strong&gt;&amp;quot;value&amp;quot;&lt;/strong&gt; I am looking at is from a &lt;strong&gt;people picker&lt;/strong&gt; &amp;quot;DisplayName&amp;quot; value which when used in infopath forms for SP2010 adds a &lt;u&gt;duplicate comma&lt;/u&gt;, and this duplicate comma is causing issues.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;The datasouce is a list box choices that &amp;quot;get choices from an external data source&amp;quot;, the data source is an SP List with columns for the filtering criteria and a people picker column, so the Value: pcDisplayName, and Display name: pc:DisplayName.&amp;nbsp; If I used AccountID, it adds extra data in front so I still have to shave off 4 characters to even draw that ID that would work with outlook. &lt;/p&gt;
&lt;p&gt;Normally I would use:&amp;nbsp;&amp;nbsp;&amp;nbsp;concat(substring-before(&lt;strong&gt;&lt;span style="TEXT-DECORATION:underline;"&gt;DisplayName&lt;/span&gt;&lt;/strong&gt;, &amp;quot;,, &amp;quot;), &amp;quot;, &amp;quot;, substring-after(&lt;strong&gt;&lt;span style="TEXT-DECORATION:underline;"&gt;DisplayName&lt;/span&gt;&lt;/strong&gt;, &amp;quot;,, &amp;quot;))&amp;nbsp; which would take care of the comma, but it doesn&amp;#39;t work with concatenating the values from a multi-selection list box -&lt;em&gt; or does it???&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I cannot use a web browser form option (which fixes the duplicate comma issue with people pickers)&amp;nbsp;because I need the ability to &lt;u&gt;email submit&lt;/u&gt; this form and all the collected data via outlook once&amp;nbsp;the user is finished.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;ve monkeyed with the nestes evals but I get the error of too many things nested and it fails.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;Can anyone out there help me?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thank you in advance. &lt;/p&gt;</description></item></channel></rss>