<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Concat fields in repeating table</title><link>https://www.infopathdev.com:443/forums/thread/23157.aspx</link><pubDate>Tue, 18 Sep 2007 19:19:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23157</guid><dc:creator>swhiting</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23157.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=23157</wfw:commentRss><description>&lt;p&gt;This referenced blog solution works well for emails [&amp;nbsp; &lt;strong&gt;eval(&lt;span&gt;eval(&lt;u&gt;person&lt;/u&gt;, &amp;quot;concat(my:email, &amp;#39;;&amp;#39;)&amp;quot;), &amp;quot;..&amp;quot;)&amp;nbsp; ]&lt;/span&gt;&lt;/strong&gt;&amp;nbsp;but when you concatenate fields that are to be displayed on the form you&amp;#39;re left with the separator (comma, semi-colon or whatever) at the end of the text.&lt;/p&gt;
&lt;p&gt;Is there a way to eliminate the last separator character?&lt;/p&gt;</description></item><item><title>Re: Concat fields in repeating table</title><link>https://www.infopathdev.com:443/forums/thread/21406.aspx</link><pubDate>Tue, 03 Jul 2007 12:27:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21406</guid><dc:creator>galliumarsenide</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21406.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=21406</wfw:commentRss><description>thank you! that worked just perfect.. :D&lt;br /&gt;</description></item><item><title>Re: Concat fields in repeating table</title><link>https://www.infopathdev.com:443/forums/thread/21272.aspx</link><pubDate>Tue, 26 Jun 2007 19:53:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21272</guid><dc:creator>davidair</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21272.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=21272</wfw:commentRss><description>&lt;p&gt;This InfoPath Team blog post could be exactly what you are looking for:&lt;/p&gt;&lt;p&gt;&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;&lt;/p&gt;&lt;p&gt;It&amp;#39;s entitled &amp;quot;loops in formulas&amp;quot; :)&lt;/p&gt;</description></item><item><title>Re: Concat fields in repeating table</title><link>https://www.infopathdev.com:443/forums/thread/21261.aspx</link><pubDate>Tue, 26 Jun 2007 15:27:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21261</guid><dc:creator>romaik</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21261.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=21261</wfw:commentRss><description>&lt;p&gt;I cannot help you with that but my advice is : &lt;/p&gt;&lt;p&gt;point which line is line 35 so that when the guys in USA will watch your question, they will not have to ask.&lt;/p&gt;&lt;p&gt;And therefore, you might gain 1 day :)&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Concat fields in repeating table</title><link>https://www.infopathdev.com:443/forums/thread/21260.aspx</link><pubDate>Tue, 26 Jun 2007 15:04:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21260</guid><dc:creator>galliumarsenide</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21260.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=21260</wfw:commentRss><description>&lt;p&gt;hi!&lt;/p&gt;&lt;p&gt;i got the same problem, but it seems my scripting skills are too poor to get this thing working. - how should the code be called? (onAfterChange ?)&lt;/p&gt;&lt;p&gt;currently i got:&lt;/p&gt;&lt;p&gt;function msoxd_my_packageTitle::OnBeforeChange(eventObj) { &lt;br /&gt;&amp;nbsp;&amp;nbsp; var list = XDocument.DOM.selectNodes( &amp;quot;//my:workPackages/my:section/my:packageTitle&amp;quot; ); // &amp;lt;- the repeating&amp;nbsp;fields&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;var str = &amp;quot;&amp;quot;; &lt;br /&gt;&amp;nbsp;&amp;nbsp; while( node = list.nextNode() ) { &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; str += node.text + &amp;quot;; &amp;quot;; } &lt;br /&gt;&amp;nbsp;&amp;nbsp; var target = XDocument.DOM.selectSingleNode( &amp;quot;//my:wpDescriptions&amp;quot; );&amp;nbsp;// &amp;lt;- the field where the condensed string should go&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;target.text = str; &lt;br /&gt;}&lt;/p&gt;&lt;p&gt;and i get the error: &lt;/p&gt;&lt;p&gt;InfoPath cannot complete this action because of an error in the form&amp;#39;s code.&lt;br /&gt;The following error occurred:&lt;/p&gt;&lt;p&gt;InfoPath cannot update the data because the form is currently read-only.&lt;br /&gt;File:script.js&lt;br /&gt;Line: 35&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;... can somebody help me?&lt;/p&gt;</description></item><item><title>Re: Concat fields in repeating table</title><link>https://www.infopathdev.com:443/forums/thread/7278.aspx</link><pubDate>Mon, 12 Dec 2005 02:43:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7278</guid><dc:creator>whapakk</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7278.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7278</wfw:commentRss><description>Ok. Guess I'll go with code then! Thanks Matt!&lt;br /&gt;&lt;br /&gt;Mike Olea&lt;br /&gt;InfoPathNoob</description></item><item><title>Re: Concat fields in repeating table</title><link>https://www.infopathdev.com:443/forums/thread/7277.aspx</link><pubDate>Thu, 08 Dec 2005 19:44:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7277</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7277.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7277</wfw:commentRss><description>With a repeating table of varying size this would be very hard to do with rules (if not impossible).  The code would be really easy, check this out:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;function getEmails()&lt;br /&gt;{&lt;br /&gt;	var list = XDocument.DOM.selectNodes( "//my:repeatingTable/my:email" );&lt;br /&gt;	var str = "";&lt;br /&gt;&lt;br /&gt;	while( node = list.nextNode() )&lt;br /&gt;	{&lt;br /&gt;		str += node.text + "; ";&lt;br /&gt;	}&lt;br /&gt;	&lt;br /&gt;	return str;&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;</description></item><item><title>Re: Concat fields in repeating table</title><link>https://www.infopathdev.com:443/forums/thread/7276.aspx</link><pubDate>Thu, 08 Dec 2005 10:51:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7276</guid><dc:creator>whapakk</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7276.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7276</wfw:commentRss><description>Hi, 'been looking around the forum and I found this old thread... This is exactly what I am trying to do! But so far, the statement I managed to construct using rules only gets the first row. Is there an easy way of doing this through rules or do I really have to use looping with managed code/script. Thanks.&lt;br /&gt;&lt;br /&gt;Mike Olea&lt;br /&gt;InfoPathNoob</description></item><item><title>Re: Concat fields in repeating table</title><link>https://www.infopathdev.com:443/forums/thread/7275.aspx</link><pubDate>Tue, 26 Jul 2005 06:05:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7275</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7275.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7275</wfw:commentRss><description>Hiya,&lt;br /&gt;You might be able to do something sneakily recursive in XPath, but this really seems like a call for some simple code. Just an OnAfterChange loop with Concat ought to suffice. Recreate it every time. You could be clever and look for a way to just insert the new or delete the old, but that&amp;#39;s too hard and won&amp;#39;t yield much perf gains. Anyway, good luck on your coding.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Concat fields in repeating table</title><link>https://www.infopathdev.com:443/forums/thread/7274.aspx</link><pubDate>Tue, 26 Jul 2005 01:18:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7274</guid><dc:creator>wcotech</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7274.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7274</wfw:commentRss><description>Thanks for the response Patrick,&lt;br /&gt;I know that you can use the Concat function in to yield the following:&lt;br /&gt;repeating table&lt;br /&gt;---------------&lt;br /&gt;[field1]="1" [field2]="2"&lt;br /&gt;&lt;br /&gt;concat([field1],[field2)&lt;br /&gt;&lt;br /&gt;Result: "12"&lt;br /&gt;&lt;br /&gt;But I want to concatinate all occurances of the same field together.  I'm requesting this to be able to group a list of email addresses together to use for an email field.&lt;br /&gt;&lt;br /&gt;Thanks!</description></item><item><title>Re: Concat fields in repeating table</title><link>https://www.infopathdev.com:443/forums/thread/7273.aspx</link><pubDate>Sat, 23 Jul 2005 01:05:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7273</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7273.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7273</wfw:commentRss><description>Hi WCOTech,&lt;br /&gt;Yes! This is easy. Just use the Concat function to calculate the value for the display field. Double click on the field that you want to display the concatenated string. Click on Fx button and then Insert Function. Select Text and then Concat. Click OK insert the fields as paramters. You'll have to play with it to get it to work with repeating fields, and there might be a challenge getting it to concat a variable length. Good luck!&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Concat fields in repeating table</title><link>https://www.infopathdev.com:443/forums/thread/4801.aspx</link><pubDate>Fri, 22 Jul 2005 22:58:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4801</guid><dc:creator>wcotech</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4801.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4801</wfw:commentRss><description>Hey All,&lt;br /&gt;&lt;br /&gt;Is there a way to concatinate each field in a repeating table such as:&lt;br /&gt;&lt;br /&gt;repeatingtable1:&lt;br /&gt;-------------------&lt;br /&gt;[Field1]"This"&lt;br /&gt;[Field1]"is"&lt;br /&gt;[Field1]"a"&lt;br /&gt;[Field1]"test"&lt;br /&gt;wich would result in a field displaying "This is a test"?&lt;br /&gt;&lt;br /&gt;Thanks Guys!!!&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>