<?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: Combining values from repeating section (with a multiselection list box) into one string</title><link>https://www.infopathdev.com:443/forums/thread/89054.aspx</link><pubDate>Sun, 21 Apr 2013 16:27:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89054</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89054.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=89054</wfw:commentRss><description>&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;span&gt;&lt;span style="mso-list:Ignore;"&gt;&lt;span style="font-size-adjust:none;font-stretch:normal;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Repeating fields are not a best practice because they are
hard to map to separate database rows and can cause form logic to fail when accessing fields after the repeating one.&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;I recommend creating a group called Roles with another repeating group underneath&amp;nbsp;it called Role and a field called Name inside of that.&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Then, you can use a double eval technique to get your string. Something like this: &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;substring(eval(eval(Role, &amp;#39;concat(my:Name, &amp;quot; | &amp;quot;)&amp;#39;), &amp;quot;..&amp;quot;), 1, string-length(eval(eval(Role, &amp;#39;concat(my:Name, &amp;quot; | &amp;quot;)&amp;#39;), &amp;quot;..&amp;quot;)) - 2)&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;It&amp;#39;s a wee bit&amp;nbsp;tricky. We do cover this as part of our training class and I&amp;#39;d be happy to send you the training lab that walks you through the technique but first you have to fix your data source.&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="3"&gt;&lt;span&gt;&lt;font face="Calibri"&gt;:)&lt;/font&gt;&lt;/span&gt;&lt;font face="Times New Roman"&gt;

&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Combining values from repeating section (with a multiselection list box) into one string</title><link>https://www.infopathdev.com:443/forums/thread/89047.aspx</link><pubDate>Sat, 20 Apr 2013 06:42:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89047</guid><dc:creator>soebje</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89047.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=89047</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I have a form with af multiselection list box control inside a repeating section with the following structure.&lt;/p&gt;&lt;p&gt;I would like to have the values from the repeating section parsed to at singlefield text field (for later parsing i a database)&lt;/p&gt;&lt;p&gt;My fields structure looks like this&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;img src="https://dl.dropboxusercontent.com/u/1135180/Fields.PNG" alt="" /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Companies is my repeating section&lt;br /&gt;Name is a text field&lt;br /&gt;Description is a text field&lt;br /&gt;Roles is a repeating text field. Used in the form with af Multiselection list box&lt;/p&gt;&lt;p&gt;So form can have multiple companies&lt;br /&gt;Each company has a name, description and multiple roles&lt;/p&gt;&lt;p&gt;A need a rule that extracts the values of the companies repeating section and parse them into the field &amp;#39;CompanyInfo&amp;#39; like this:&lt;br /&gt;CompanyAName#CompanyADescription#CompanyARole1Value|CompanyARole2Value;CompanyBName#CompanyBDescription#CompanyBRole1Value|CompanyBRole2Value,CompanyBRole3Value&lt;/p&gt;&lt;p&gt;So repeating section are devided by semicolons. Fields within repeating section is devided by #. And values inside&amp;nbsp;Roles is devided by |&lt;/p&gt;&lt;p&gt;I have tried with different eval/concat combinations but can&amp;#39;t quite get it working. &lt;/p&gt;&lt;p&gt;So please help with this one and let me now if additional information is required&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Best regards&lt;/p&gt;&lt;p&gt;Søren, DK&lt;/p&gt;</description></item></channel></rss>