<?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>Re: Using EVAL and concat for concatenating fields in repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/93123.aspx</link><pubDate>Wed, 18 Sep 2013 13:48:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93123</guid><dc:creator>giustis5</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93123.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=93123</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Ann&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thank you for the above, it certainly has my head spinning a little in trying to accomplish my goal.&lt;/p&gt;&lt;p&gt;I am trying to do the following:&lt;/p&gt;&lt;p&gt;have a user open an infopath form, if that user is a member of a specified security group, have all the members of that group output into a people picker control within the form.&lt;/p&gt;&lt;p&gt;Ive managed to create the UserGroup web service data connection to get the info and hacked it so that it actually works and pulls in the info I need for the specified security group, i can even get it to output the account id&amp;#39;s or login names of all members of the group to the person picker control, but unfortunately it only ever outputs the first persons name it finds for each occurence, i.e. using a count function i can see there are 5 people in the security group, but when i output their account id&amp;#39;s i get the first persons account id five times instead of each of the individual accounts.&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;My Data Connection is called HR_UK - Permission Check&lt;/p&gt;&lt;p&gt;currently just testing this, so i have a&amp;nbsp; just called the People Picker control - People&lt;/p&gt;&lt;p&gt;I am trying to set the accountid field of the people picker with the LoginName of each person it finds in the group, heres my XPATH so far which does return the value, only the first value it finds repeated for however many people are actually in the group.&amp;nbsp;&amp;nbsp; Currently i am not setting any filters, so essentially i just want it to output the people into the control from that group whenever the form loads.&amp;nbsp; The following is an on form load action rule to set the accountid of the people picker repeating group to the returned value.&lt;br /&gt;&lt;/p&gt;xdMath:Eval(xdMath:Eval(xdXDocument:GetDOM(&amp;quot;HR_UK - Permissions Check&amp;quot;)/dfs:myFields/dfs:dataFields/tns:GetUserCollectionFromGroupResponse/tns:GetUserCollectionFromGroupResult/tns:GetUserCollectionFromGroup/tns:Users/tns:User, &amp;#39;concat(substring(xdXDocument:GetDOM(&amp;quot;HR_UK - Permissions Check&amp;quot;)/dfs:myFields/dfs:dataFields/tns:GetUserCollectionFromGroupResponse/tns:GetUserCollectionFromGroupResult/tns:GetUserCollectionFromGroup/tns:Users/tns:User/@LoginName, 1, (current() = xdXDocument:GetDOM(&amp;quot;HR_UK - Permissions Check&amp;quot;)/dfs:myFields/dfs:dataFields/tns:GetUserCollectionFromGroupResponse/tns:GetUserCollectionFromGroupResult/tns:GetUserCollectionFromGroup/tns:Users/tns:User) * string-length(xdXDocument:GetDOM(&amp;quot;HR_UK - Permissions Check&amp;quot;)/dfs:myFields/dfs:dataFields/tns:GetUserCollectionFromGroupResponse/tns:GetUserCollectionFromGroupResult/tns:GetUserCollectionFromGroup/tns:Users/tns:User/@LoginName)), substring(concat(&amp;quot;; &amp;quot;, xdXDocument:GetDOM(&amp;quot;HR_UK - Permissions Check&amp;quot;)/dfs:myFields/dfs:dataFields/tns:GetUserCollectionFromGroupResponse/tns:GetUserCollectionFromGroupResult/tns:GetUserCollectionFromGroup/tns:Users/tns:User/@LoginName), 1, (not(current() = xdXDocument:GetDOM(&amp;quot;HR_UK - Permissions Check&amp;quot;)/dfs:myFields/dfs:dataFields/tns:GetUserCollectionFromGroupResponse/tns:GetUserCollectionFromGroupResult/tns:GetUserCollectionFromGroup/tns:Users/tns:User)) * string-length(concat(&amp;quot;; &amp;quot;, xdXDocument:GetDOM(&amp;quot;HR_UK - Permissions Check&amp;quot;)/dfs:myFields/dfs:dataFields/tns:GetUserCollectionFromGroupResponse/tns:GetUserCollectionFromGroupResult/tns:GetUserCollectionFromGroup/tns:Users/tns:User/@LoginName))))&amp;#39;), &amp;quot;..&amp;quot;)&lt;br /&gt;&lt;br /&gt;Any ideas?&lt;br /&gt;</description></item><item><title>Re: Using EVAL and concat for concatenating fields in repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/90038.aspx</link><pubDate>Wed, 22 May 2013 18:01:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90038</guid><dc:creator>stara</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90038.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=90038</wfw:commentRss><description>&lt;p&gt;Hi Ann,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using a multi-select list box and would like to concatenate selected values and store in text box?&lt;/p&gt;
&lt;p&gt;Can I use the same formula :&amp;nbsp;xdMath:Eval(xdMath:Eval(../my:Group/my:RepeatingGroup, &amp;#39;substring(concat(my:Value, &amp;quot;;&amp;quot;), 1, (my:Select = string(true())) * string-length(concat(my:Value, &amp;quot;;&amp;quot;)))&amp;#39;), &amp;quot;..&amp;quot;)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, what should I use for my:Value and my:Select?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks so much&lt;/p&gt;
&lt;p&gt;Stara&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Using EVAL and concat for concatenating fields in repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/87974.aspx</link><pubDate>Wed, 13 Mar 2013 12:29:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87974</guid><dc:creator>Johan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87974.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=87974</wfw:commentRss><description>Thank you for this!!!!!!!</description></item><item><title>Re: Using EVAL and concat for concatenating fields in repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/75545.aspx</link><pubDate>Tue, 21 Feb 2012 15:55:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:75545</guid><dc:creator>Frenchy_c</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/75545.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=75545</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks for this post it was very helpful, i am using it and it seems to work and populate the text box but i&amp;#39;m also getting the error below. is there anybody that can help&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;xdMath:Eval(xdMath:Eval(../my:RMS/my:RMS_Role, &amp;#39;substring(concat(my:Role, xdXDocument:GetDOM(&amp;quot;crlf&amp;quot;)/characters/@crlf), 1, (my:Selection = &amp;quot;1&amp;quot;) * string-length(concat(my:Role, xdXDocument:GetDOM(&amp;quot;crlf&amp;quot;)/characters/@crlf)))&amp;#39;), &amp;quot;..&amp;quot;)&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Error&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;System.Xml.XPath.XPathException&lt;br /&gt;&amp;#39;&lt;br /&gt;&amp;nbsp;&amp;nbsp;d:Balanced_Collections_1&lt;br /&gt;&amp;nbsp;&amp;nbsp;Z1BW_BEX_WORKBOOKS&lt;br /&gt;Z1BW_END_USERS_BASIC_ACCESS&lt;br /&gt;Z2CRM_RSBC_BR_PSCD_FCC_WOCONT&lt;br /&gt;Z4CRM_END_USER_AND_RFCS&lt;br /&gt;Z4CRM_UIU_FRAMEWORK&lt;br /&gt;Z4ECC_END_USER_AND_RFCS&lt;br /&gt;Z5CRM_RSBC_PR_ADDRESS_UPDATE&lt;br /&gt;Z5ECC_RSBC_BP_ACCOUNT_DISPLAY&lt;br /&gt;Z5ECC_RSBC_BP_CHG_ADDR_INFO&lt;br /&gt;Z5ECC_RSBC_BP_CHG_ASSET_INFO&lt;br /&gt;Z5ECC_RSBC_BP_DISPLAY&lt;br /&gt;Z5ECC_RSBC_CA_DISPLAY&lt;br /&gt;Z5ECC_RSBC_CO_CHG_DUN_LOCK&lt;br /&gt;Z5ECC_RSBC_CO_DISPLAY&lt;br /&gt;Z5ECC_RSBC_CO_MASS_LOCKS&lt;br /&gt;Z5ECC_RSBC_COLLECTION_REPORTS&lt;br /&gt;Z5ECC_RSBC_COLLECTION_RESEARCH&lt;br /&gt;Z5ECC_RSBC_PRIVATE_COLL_ADMIN&lt;br /&gt;Z5ECC_RSBC_WRITE_OFF_ADMIN&lt;br /&gt;ZBW_EASMGMT&lt;br /&gt;ZBW_HDACLAS&lt;br /&gt;ZBW_PAYMENT_SEARCH_HIST_ARCH&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;#39; has an invalid token.&lt;br /&gt;&amp;nbsp;&amp;nbsp; at MS.Internal.Xml.XPath.XPathParser.ParseXPathExpresion(String xpathExpresion)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at MS.Internal.Xml.XPath.QueryBuilder.Build(String query, Boolean allowVar, Boolean allowKey)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at MS.Internal.Xml.XPath.QueryBuilder.Build(String query, Boolean&amp;amp; needContext)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Xml.XPath.XPathExpression.Compile(String xpath, IXmlNamespaceResolver nsResolver)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Xml.XPath.XPathNavigator.SelectSingleNode(String xpath, IXmlNamespaceResolver resolver)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Access_request.FormCode.RMS_Profile_Changed(Object sender, XmlEventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Internal.XmlEventHost.GenericProxy(Object genericDelegate, DataDOMEvent dataDOMEvent, InfoPathEvents type)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Internal.XmlEventHost.ChangedProxy(DataDOMEvent dataDOMEvent)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.Interop.InfoPath.SemiTrust._DataDOMEventSink_SinkHelper.OnAfterChange(DataDOMEvent pDataDOMEvent)&lt;/p&gt;</description></item><item><title>Re: Using EVAL and concat for concatenating fields in repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/70197.aspx</link><pubDate>Sat, 10 Sep 2011 17:47:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70197</guid><dc:creator>Scott Rooke</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70197.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=70197</wfw:commentRss><description>Jimmy -&lt;br /&gt;&lt;br /&gt;

Thank you so much!  I was trying follow smaus&amp;#39;s formula and it got a little complicated.  I tried many variations except the one you sent.  That resolved the issue.  
&lt;br /&gt;&lt;br /&gt;
Much appreciated!!!!&lt;br /&gt;&lt;br /&gt;
Scott</description></item><item><title>Re: Using EVAL and concat for concatenating fields in repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/70196.aspx</link><pubDate>Sat, 10 Sep 2011 16:57:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70196</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70196.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=70196</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m having trouble following your formula, but I would think this would be enough:&lt;/p&gt;
&lt;p&gt;xdMath:Eval(xdMath:Eval(xdXDocument:GetDOM(&amp;quot;TA&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW[d:Active = string(true())], &amp;#39;concat(d:email, &amp;quot;;&amp;quot;)&amp;#39;), &amp;quot;..&amp;quot;)&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Using EVAL and concat for concatenating fields in repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/70195.aspx</link><pubDate>Sat, 10 Sep 2011 14:37:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70195</guid><dc:creator>Scott Rooke</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70195.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=70195</wfw:commentRss><description>Thank you Ann!  This has been very helpful getting me closer to want I need to implement.  After many attempts of building the formula in the &amp;quot;Insert Formula&amp;quot; window with no success, I copied pasted your code at the top and added my own values.  Listed below. &lt;br /&gt;&lt;br /&gt;

xdMath:Eval(xdMath:Eval(xdXDocument:GetDOM(&amp;quot;TA&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW, &amp;#39;substring(concat(xdXDocument:GetDOM(&amp;quot;TA&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:email, &amp;quot;;&amp;quot;), 1, (xdXDocument:GetDOM(&amp;quot;TA&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Active = string(true())) * string-length(concat(xdXDocument:GetDOM(&amp;quot;TA&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:email, &amp;quot;;&amp;quot;)))&amp;#39;), &amp;quot;..&amp;quot;)&lt;br /&gt;&lt;br /&gt;

This is the same formula with the filter applied to the data connection on the &amp;quot;Active&amp;quot; = TRUE&lt;br /&gt;&lt;br /&gt;

xdMath:Eval(xdMath:Eval(xdXDocument:GetDOM(&amp;quot;TA&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW[d:Active = string(true())], &amp;#39;substring(concat(xdXDocument:GetDOM(&amp;quot;TA&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:email, &amp;quot;;&amp;quot;), 1, (xdXDocument:GetDOM(&amp;quot;TA&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Active = string(true())) * string-length(concat(xdXDocument:GetDOM(&amp;quot;TA&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:email, &amp;quot;;&amp;quot;)))&amp;#39;), &amp;quot;..&amp;quot;)&lt;br /&gt;&lt;br /&gt;

Secondary Data Source:  TA &lt;br /&gt;
- List:  TA&lt;br /&gt;
-- Column: Title (Single line of text - out of the box)&lt;br /&gt;
-- Column: Active (yes/no - bool)&lt;br /&gt;
-- Column: email (single line of text)&lt;br /&gt;
-- Column: ID (out of the box)&lt;br /&gt;&lt;br /&gt;

Currently there are three rows in this list.&lt;br /&gt;&lt;br /&gt;

Title&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Active&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;email&lt;br /&gt;
John Doe&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Yes&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;john@doe.com&lt;br /&gt;
Jane Doe&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Yes&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;jane@doe.com&lt;br /&gt;
Jimmy Doe&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Yes&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;jimmy@doe.com&lt;br /&gt;&lt;br /&gt;

The main data source: myFields&lt;br /&gt;
It has one field: txtEmailAddresses (single line of text)&lt;br /&gt;&lt;br /&gt;

Let me state my objective.  I have a List with a Name, Active, and email address fields.  I want to concatenate a list of email addresses for those items in the list where the &amp;quot;Active&amp;quot; checkbox is = True.   Can you see where I&amp;#39;m going wrong with my current formula.  &lt;br /&gt;&lt;br /&gt;

Thanks in advance!&lt;br /&gt;
&lt;br /&gt;
Scott&lt;br /&gt;
(Chicago, IL)</description></item><item><title>Re: Using EVAL and concat for concatenating fields in repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/60697.aspx</link><pubDate>Tue, 26 Oct 2010 08:18:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60697</guid><dc:creator>sharepoint2010</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60697.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=60697</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi @all&lt;br /&gt;&lt;br /&gt;I tried the manual from smaus... But I have a repeating table in a repeating table. So it doesn&amp;#39;t work.&lt;br /&gt;&lt;br /&gt;It&amp;#39;s a Sharepoint 2010 list with two colums. Title (String) and User (Multiple user Field from Active Directory)&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.picfront.org/d/7Uc1" target="_blank" title="http://www.picfront.org/d/7Uc1"&gt;&lt;img src="http://www7.picfront.org/picture/9YXKoL1ZojD/thb/struktur.PNG" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.picfront.org/d/7Uc0" target="_blank" title="http://www.picfront.org/d/7Uc0"&gt;&lt;img src="http://www8.picfront.org/picture/XIDJBa4TN0/thb/spliste.PNG" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now I want to geht the field &amp;quot;AccounfID&amp;quot; for enable/disable Fields in the InfoPath 2010 Form if the user witch ist logged on in a group.&lt;br /&gt;&lt;br /&gt;Does anyboy have an idia? I cant find any helpful things...&lt;br /&gt;&lt;br /&gt;Thank&amp;#39;s so much&lt;/p&gt;</description></item><item><title>Re: Using EVAL and concat for concatenating fields in repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/49823.aspx</link><pubDate>Wed, 09 Dec 2009 15:12:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49823</guid><dc:creator>radamesort</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49823.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=49823</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Ann,&amp;nbsp; I cannot thank you enough for this!&lt;/p&gt;</description></item><item><title>Re: Using EVAL and concat for concatenating fields in repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/36667.aspx</link><pubDate>Wed, 07 Jan 2009 03:37:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36667</guid><dc:creator>Ryan Beesley</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36667.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=36667</wfw:commentRss><description>&lt;p&gt;Interesting post as this was what I was hoping to do without code.&amp;nbsp; My usage was a little different since I have a repeating section of 0 or more values.&amp;nbsp; Additionally I only wanted to seperate the values with &amp;quot;; &amp;quot;&amp;nbsp;if it was required, meaning 2 or more values.&amp;nbsp; Based on your lead, I arrived at the following.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p style="PADDING-RIGHT:10px;PADDING-LEFT:10px;PADDING-BOTTOM:16px;PADDING-TOP:16px;FONT-FAMILY:courier new;BACKGROUND-COLOR:#e1e1e1;"&gt;xdMath:Eval(xdMath:Eval(my:RepeatingGroup, &amp;#39;concat(substring(my:Value, 1, (current() = ../my:RepeatingGroup[1]) * string-length(my:Value)), substring(concat(&amp;quot;; &amp;quot;, my:Value), 1, (not(current() = ../my:RepeatingGroup[1])) * string-length(concat(&amp;quot;; &amp;quot;, my:Value))))&amp;#39;), &amp;quot;..&amp;quot;)&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;The breakthrough for me, was wrapping two strings with a concat, but using the above IF-like statement to select mutually exclusive strings.&lt;/p&gt;
&lt;p&gt;The first string uses the condition:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p style="PADDING-RIGHT:10px;PADDING-LEFT:10px;PADDING-BOTTOM:16px;PADDING-TOP:16px;FONT-FAMILY:courier new;BACKGROUND-COLOR:#e1e1e1;"&gt;(current() = ../my:RepeatingGroup[1])&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Whereas the second string negates the condition:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p style="PADDING-RIGHT:10px;PADDING-LEFT:10px;PADDING-BOTTOM:16px;PADDING-TOP:16px;FONT-FAMILY:courier new;BACKGROUND-COLOR:#e1e1e1;"&gt;(not(current() = ../my:RepeatingGroup[1]))&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;As the first string doesn&amp;#39;t use the &amp;quot;; &amp;quot; seperator, I simply return a substring that is the entire length of the string.&amp;nbsp; The second string prepends the seperator.&amp;nbsp; In both cases we are evaluating whether or not the current node is the first node.&amp;nbsp; This means that the first time through the concated string looks like:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p style="PADDING-RIGHT:10px;PADDING-LEFT:10px;PADDING-BOTTOM:16px;PADDING-TOP:16px;FONT-FAMILY:courier new;BACKGROUND-COLOR:#e1e1e1;"&gt;concat(my:Value, &amp;quot;&amp;quot;)&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;And with additional passes it looks like:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p style="PADDING-RIGHT:10px;PADDING-LEFT:10px;PADDING-BOTTOM:16px;PADDING-TOP:16px;FONT-FAMILY:courier new;BACKGROUND-COLOR:#e1e1e1;"&gt;concat(&amp;quot;&amp;quot;, concat(&amp;quot;; &amp;quot;, my:Value))&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;As long as the tested strings have carefully selected conditions, you should be able to combine an indefinite number of string nodes in this fashion and even apply format hinting&amp;nbsp;to the result; I won&amp;#39;t go so far as to say you can apply formatting, as this is probably not where it should be applied.&amp;nbsp; But you should be able to construct strings in any way you desire using this technique.&amp;nbsp; I hope this proves useful to someone else.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;/Ryan&lt;/p&gt;</description></item><item><title>Re: Using EVAL and concat for concatenating fields in repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/35089.aspx</link><pubDate>Mon, 01 Dec 2008 15:14:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35089</guid><dc:creator>concentratedawesome</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35089.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=35089</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;You are a God - that is some hardcore functionating.&amp;nbsp; You bailed me out of a jam, thanks.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Using EVAL and concat for concatenating fields in repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/30286.aspx</link><pubDate>Thu, 10 Jul 2008 15:41:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30286</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30286.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=30286</wfw:commentRss><description>&lt;p&gt;Hi, Ann:&lt;/p&gt;
&lt;p&gt;Thanks so much for posting this -- it was exactly what I needed to solve a problem!&lt;/p&gt;</description></item><item><title>Re: Using EVAL and concat for concatenating fields in repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/30263.aspx</link><pubDate>Thu, 10 Jul 2008 03:28:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30263</guid><dc:creator>smaus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30263.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=30263</wfw:commentRss><description>&lt;p&gt;Trying to build InfoPath forms with complicated logic&amp;nbsp;without code is pushing InfoPath beyond some of its limits.&amp;nbsp; Nonetheless, I did some research and was able to come up with an expression that will return a concatenated string of filtered values from a repeating table.&lt;/p&gt;
&lt;p&gt;Using a hacked together IF-like statement from &lt;a href="http://blogs.msdn.com/infopath/archive/2006/11/27/conditional-default-values.aspx"&gt;http://blogs.msdn.com/infopath/archive/2006/11/27/conditional-default-values.aspx&lt;/a&gt;&amp;nbsp;and the double &lt;span style="FONT-WEIGHT:bold;FONT-FAMILY:courier new;"&gt;eval()&lt;/span&gt; trick in &lt;a href="http://blogs.msdn.com/infopath/archive/2006/04/05/569338.aspx"&gt;http://blogs.msdn.com/infopath/archive/2006/04/05/569338.aspx&lt;/a&gt;, I arrived at this:&lt;/p&gt;
&lt;p style="PADDING-RIGHT:10px;PADDING-LEFT:10px;PADDING-BOTTOM:16px;PADDING-TOP:16px;FONT-FAMILY:courier new;BACKGROUND-COLOR:#e1e1e1;"&gt;xdMath:Eval(xdMath:Eval(../my:Group/my:RepeatingGroup, &amp;#39;substring(concat(my:Value, &amp;quot;;&amp;quot;), 1, (my:Select = string(true())) * string-length(concat(my:Value, &amp;quot;;&amp;quot;)))&amp;#39;), &amp;quot;..&amp;quot;)&lt;/p&gt;
&lt;p&gt;This return a semi-colon-delimited list of Values where Select has been checked and evaluates to TRUE&lt;/p&gt;
&lt;p&gt;With this schema:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Group&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;RepeatingGroup&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;Select&lt;/li&gt;
&lt;li&gt;Value&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/ul&gt;
&lt;p&gt;The double &lt;span style="FONT-WEIGHT:bold;FONT-FAMILY:courier new;"&gt;eval()&lt;/span&gt; trick merely loops through a repeating list. The key to filtering is in the calculation performed in the nested &lt;span style="FONT-WEIGHT:bold;FONT-FAMILY:courier new;"&gt;eval()&lt;/span&gt; function. That&amp;#39;s where the IF-like statement comes in.&lt;/p&gt;
&lt;p&gt;It starts with the &lt;span style="FONT-WEIGHT:bold;FONT-FAMILY:courier new;"&gt;substring()&lt;/span&gt; function.&lt;/p&gt;
&lt;p style="PADDING-RIGHT:10px;PADDING-LEFT:10px;PADDING-BOTTOM:16px;PADDING-TOP:16px;FONT-FAMILY:courier new;BACKGROUND-COLOR:#e1e1e1;"&gt;substring (string, start-position, end-position)&lt;/p&gt;
&lt;p&gt;Where 
&lt;p style="PADDING-RIGHT:10px;PADDING-LEFT:10px;PADDING-BOTTOM:16px;PADDING-TOP:16px;FONT-FAMILY:courier new;BACKGROUND-COLOR:#e1e1e1;"&gt;string = concat(my:Value, &amp;quot;;&amp;quot;)&lt;br /&gt;start-position = 1&lt;br /&gt;end-position =(my:Select = string(true())) * string-length(concat(my:Value, &amp;quot;;&amp;quot;)))&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s what I want in my concatenated string:&lt;/p&gt;
&lt;p style="PADDING-RIGHT:10px;PADDING-LEFT:10px;PADDING-BOTTOM:16px;PADDING-TOP:16px;FONT-FAMILY:courier new;BACKGROUND-COLOR:#e1e1e1;"&gt;concat(my:Value, &amp;quot;;&amp;quot;)&lt;/p&gt;
&lt;p&gt;But I only want it if &lt;span style="FONT-WEIGHT:bold;FONT-FAMILY:courier new;"&gt;my:Select = TRUE&lt;/span&gt; so to evaluate whether &lt;span style="FONT-WEIGHT:bold;FONT-FAMILY:courier new;"&gt;my:Select = TRUE&lt;/span&gt;:&lt;/p&gt;
&lt;p style="PADDING-RIGHT:10px;PADDING-LEFT:10px;PADDING-BOTTOM:16px;PADDING-TOP:16px;FONT-FAMILY:courier new;BACKGROUND-COLOR:#e1e1e1;"&gt;my:Select=string(true())&lt;/p&gt;
&lt;p&gt;If it&amp;#39;s this operation returns &lt;span style="FONT-WEIGHT:bold;FONT-FAMILY:courier new;"&gt;TRUE&lt;/span&gt;, the result will be a &lt;span style="FONT-WEIGHT:bold;FONT-FAMILY:courier new;"&gt;1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If the operation returns a &lt;span style="FONT-WEIGHT:bold;FONT-FAMILY:courier new;"&gt;FALSE&lt;/span&gt;, the result will be a zero &lt;span style="FONT-WEIGHT:bold;FONT-FAMILY:courier new;"&gt;(0)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Using the length of the text I want to return as a multiplier, I&amp;#39;ll either get a zero or I&amp;#39;ll get the length of the entire string:&lt;/p&gt;
&lt;p style="PADDING-RIGHT:10px;PADDING-LEFT:10px;PADDING-BOTTOM:16px;PADDING-TOP:16px;FONT-FAMILY:courier new;BACKGROUND-COLOR:#e1e1e1;"&gt;(my:Select=string(true()))* (string-length(concat(my:Value, &amp;quot;;&amp;quot;)))&lt;/p&gt;
&lt;p&gt;Pulling that together with the &lt;span style="FONT-WEIGHT:bold;FONT-FAMILY:courier new;"&gt;substring()&lt;/span&gt; function, it will return either a zero-length string or the entire text I want returned:&lt;/p&gt;
&lt;p style="PADDING-RIGHT:10px;PADDING-LEFT:10px;PADDING-BOTTOM:16px;PADDING-TOP:16px;FONT-FAMILY:courier new;BACKGROUND-COLOR:#e1e1e1;"&gt;substring(concat(my:Value, &amp;quot;;&amp;quot;), 1, (my:Select=string(true()))*(string-length(concat(my:Value, &amp;quot;;&amp;quot;))))&lt;/p&gt;
&lt;p&gt;Drop this into the calculation parameter in the nested &lt;span style="FONT-WEIGHT:bold;FONT-FAMILY:courier new;"&gt;eval()&lt;/span&gt; function and you&amp;#39;re done.&lt;/p&gt;
&lt;p&gt;My example returns one field based on the value of another field in that same repeating node. I use it to return a list of the selected values in a hacked-together, browser-enabled version of a multi-select list box.&amp;nbsp; If you want to return only non-blank fields, you can move some stuff around and make it&amp;nbsp;simpler.&amp;nbsp; Well, simpler maybe to some.&lt;/p&gt;
&lt;p style="PADDING-RIGHT:10px;PADDING-LEFT:10px;PADDING-BOTTOM:16px;PADDING-TOP:16px;FONT-FAMILY:courier new;BACKGROUND-COLOR:#e1e1e1;"&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;-Ann</description></item><item><title>Re: Using EVAL and concat for concatnating fields in repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/28948.aspx</link><pubDate>Mon, 26 May 2008 13:24:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28948</guid><dc:creator>Yurnero_</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28948.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=28948</wfw:commentRss><description>&lt;p&gt;Hello, I got a &amp;#39;problem&amp;#39; with eval() function&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I got a repeating table with number. Those data are imported from a sharepoint form library. And extract from forms.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;My problem is I can&amp;#39;t sum them&lt;/p&gt;
&lt;p&gt;I used &lt;/p&gt;
&lt;p&gt;sum(eval( &amp;lt;@data source&amp;gt;, &amp;#39;&amp;lt;@number_field&amp;gt;&amp;#39;)) and it crash infopath.&lt;/p&gt;
&lt;p&gt;any idea ?&lt;/p&gt;
&lt;p&gt;Fact is if I drag&amp;#39;n drop the data source field, number appear properly&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Best regards.&lt;/p&gt;
&lt;p&gt;edit :I open a new topic, because it&amp;#39;s different.&lt;/p&gt;</description></item><item><title>Re: Using EVAL and concat for concatnating fields in repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/26148.aspx</link><pubDate>Fri, 01 Feb 2008 05:56:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26148</guid><dc:creator>boverton</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26148.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=26148</wfw:commentRss><description>Thank you both very much for your efforts.&amp;nbsp;&amp;nbsp; I still don&amp;#39;t know why this will work on a secondary data source but not the main data source.&amp;nbsp;&amp;nbsp; Someone smarter than me will have to figure it out.&amp;nbsp;&amp;nbsp;</description></item></channel></rss>