<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Multiple Selection Listbox - Get Index number?</title><link>https://www.infopathdev.com:443/forums/thread/106567.aspx</link><pubDate>Thu, 12 May 2016 22:27:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106567</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106567.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=106567</wfw:commentRss><description>Your &amp;quot;Value&amp;quot; node didn&amp;#39;t have a namespace prefix. My &amp;quot;field2&amp;quot; node did - the &amp;quot;my:&amp;quot; prefix. That&amp;#39;s why I asked for your exact XPath - so the XPath to the preceding sibling was correct.</description></item><item><title>Re: Multiple Selection Listbox - Get Index number?</title><link>https://www.infopathdev.com:443/forums/thread/106566.aspx</link><pubDate>Thu, 12 May 2016 22:20:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106566</guid><dc:creator>ljuliusson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106566.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=106566</wfw:commentRss><description>Yahooo!! That worked! Thank you SOOO much!! Wow, so I&amp;#39;m trying to understand what made the difference. I realize I forgot the incrementer &amp;quot;+ 1&amp;quot; in my original try, but don&amp;#39;t quite understand why your original formula didn&amp;#39;t work. It looks like the only difference was not having the &amp;quot;my:&amp;quot; before the second value.  Can you explain, or is this just a case of very sensitive formatting rules.    Lara</description></item><item><title>Re: Multiple Selection Listbox - Get Index number?</title><link>https://www.infopathdev.com:443/forums/thread/106564.aspx</link><pubDate>Thu, 12 May 2016 21:57:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106564</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106564.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=106564</wfw:commentRss><description>This works for me (pick the initial &amp;quot;Value&amp;quot; with the field picker): eval(eval(Value[. != &amp;quot;&amp;quot;], &amp;#39;concat(., count(preceding-sibling::Value[. != &amp;quot;&amp;quot;]) + 1, &amp;quot;, &amp;quot;)&amp;#39;), &amp;quot;..&amp;quot;)</description></item><item><title>Re: Multiple Selection Listbox - Get Index number?</title><link>https://www.infopathdev.com:443/forums/thread/106563.aspx</link><pubDate>Thu, 12 May 2016 19:54:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106563</guid><dc:creator>ljuliusson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106563.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=106563</wfw:commentRss><description>Here it is:   /dfs:myFields/dfs:dataFields/my:SharePointListItem_RW/my:group1/Value</description></item><item><title>Re: Multiple Selection Listbox - Get Index number?</title><link>https://www.infopathdev.com:443/forums/thread/106556.aspx</link><pubDate>Thu, 12 May 2016 18:38:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106556</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106556.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=106556</wfw:commentRss><description>Can you copy the XPath for the &amp;quot;Value&amp;quot; field? Set the Fields pane to advanced view, right click on the Value node and select &amp;quot;Copy XPath&amp;quot;?</description></item><item><title>Re: Multiple Selection Listbox - Get Index number?</title><link>https://www.infopathdev.com:443/forums/thread/106555.aspx</link><pubDate>Thu, 12 May 2016 18:32:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106555</guid><dc:creator>ljuliusson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106555.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=106555</wfw:commentRss><description>I should also say that all of these (myFields &amp;gt; dataFields &amp;gt; my:SharePointListItem_RW &amp;gt; Field Office &amp;gt; Value) except for my:SharePointListItem_RW are locked.  Not sure if that matters.</description></item><item><title>Re: Multiple Selection Listbox - Get Index number?</title><link>https://www.infopathdev.com:443/forums/thread/106553.aspx</link><pubDate>Thu, 12 May 2016 18:00:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106553</guid><dc:creator>ljuliusson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106553.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=106553</wfw:commentRss><description>Hi Hilary,

That works great in the form you sent, but when I try to implement it on my form, it doesn&amp;#39;t work, and I get &amp;quot;The formula contains one or more errors&amp;quot;.  I&amp;#39;ve tried it as a rule on the Field Office control, and as a default value in my receiving text box field.  Is there a specific reason why you put it on a button?   Also, in my Fields, I have several layers starting with:  myFields &amp;gt; dataFields &amp;gt; my:SharePointListItem_RW &amp;gt; Field Office &amp;gt; Value.   Is there a problem hidden in there somewhere, do you think?   I&amp;#39;m rather new to this, but think I&amp;#39;m really close, since the other two formulas (double eval and count) work independently.  I wish I could upload my form to you, but I&amp;#39;m not able to.     Thanks again for your time!     Lara</description></item><item><title>Re: Multiple Selection Listbox - Get Index number?</title><link>https://www.infopathdev.com:443/forums/thread/106549.aspx</link><pubDate>Thu, 12 May 2016 15:12:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106549</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106549.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=106549</wfw:commentRss><description>See attached - there is a rule on a button that sets another field that I think does what you want.</description></item><item><title>Re: Multiple Selection Listbox - Get Index number?</title><link>https://www.infopathdev.com:443/forums/thread/106546.aspx</link><pubDate>Thu, 12 May 2016 14:19:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106546</guid><dc:creator>ljuliusson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106546.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=106546</wfw:commentRss><description>Hi Hilary, thanks for getting back.  I want to build a string that has all of the selected field offices delimited by a running count, so something like this:   Colorado Field Office1Kansas Field Office2Nebraska Field Office3.   My Multiple-selection list box is named &amp;quot;Field Office&amp;quot;,  in the Advanced view of my fields it looks like a folder, with &amp;quot;Value&amp;quot; MSLB inside of it.   This works to build a comma delimited list:   eval(eval(Value, &amp;#39;concat(., &amp;quot;, &amp;quot;)&amp;#39;), &amp;quot;..&amp;quot;)       and this works to provide me with a final count:   count(Value[. != &amp;quot;&amp;quot;])     so I thought I could put the two together to get what I want, like this:    eval(eval(Value, &amp;#39;concat(., count(Value[. != &amp;quot;&amp;quot;]))&amp;#39;), &amp;quot;..&amp;quot;)    However, I get a message that the formula has errors.          Lara</description></item><item><title>Re: Multiple Selection Listbox - Get Index number?</title><link>https://www.infopathdev.com:443/forums/thread/106535.aspx</link><pubDate>Thu, 12 May 2016 00:03:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106535</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106535.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=106535</wfw:commentRss><description>I&amp;#39;m confused! So - is the count the total of selected field offices? It isn&amp;#39;t like this multiselect is inside a repeating section or something, right? The count is just a ... running count?</description></item><item><title>Re: Multiple Selection Listbox - Get Index number?</title><link>https://www.infopathdev.com:443/forums/thread/106534.aspx</link><pubDate>Wed, 11 May 2016 23:41:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106534</guid><dc:creator>ljuliusson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106534.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=106534</wfw:commentRss><description>Hi Hilary,

I am wondering if you can help me. I&amp;#39;ve seen you giving great answers to a number of people on here. 

I&amp;#39;m using InfoPath 2010 and posting to a SharePoint list. I&amp;#39;ve tried following this thread, but am not able to get the formulas to work. Also, I don&amp;#39;t need the HTML formatting that Nino needed. What I want is the selected Field Offices from a multiple-selection list box, to be concatenated together with index numbers between them, so that I can easily pull them out into separate fields, so that I can do something with them in a SharePoint Designer workflow later on. Basically I want something like this:
Colorado Field Office1Kansas  Field Office2Nebraska Field Office3

I am able to successfully run a double eval on my Field Office values and put commas between the values using:
eval(eval(Value, &amp;#39;concat(., &amp;quot;, &amp;quot;)&amp;#39;), &amp;quot;..&amp;quot;)

I am also able to successfully count the number of field offices selected using:
count(Value[. != &amp;quot;&amp;quot;])

But when I try to put these together in the way that seems to make sense:
eval(eval(Value, &amp;#39;concat(., count(Value[. != &amp;quot;&amp;quot;]))&amp;#39;), &amp;quot;..&amp;quot;)
I get a message that I have errors in my formula. I&amp;#39;ve tried this many ways, and can&amp;#39;t get it to work. 
eval(eval(Value, &amp;#39;concat(., &amp;quot;count(Value[. != &amp;quot;&amp;quot;])&amp;quot;)&amp;#39;), &amp;quot;..&amp;quot;)
eval(eval(Value, &amp;#39;concat(Value, count(Value[. != &amp;quot;&amp;quot;]))&amp;#39;), &amp;quot;..&amp;quot;)
and everything else I can think of. 

Any thoughts?

Many thanks for any help.
Lara</description></item><item><title>Re: Multiple Selection Listbox - Get Index number?</title><link>https://www.infopathdev.com:443/forums/thread/102947.aspx</link><pubDate>Wed, 24 Jun 2015 19:08:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102947</guid><dc:creator>neeenz</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102947.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=102947</wfw:commentRss><description>Worked like a charm! This gave me more understanding with the referencing part, I kind of had an idea that the grouping and variable location is a factor just not sure how to use the correct syntax for it. Thank you so much AGAIN Hilary :D</description></item><item><title>Re: Multiple Selection Listbox - Get Index number?</title><link>https://www.infopathdev.com:443/forums/thread/102944.aspx</link><pubDate>Wed, 24 Jun 2015 18:54:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102944</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102944.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=102944</wfw:commentRss><description>&lt;p&gt;I think that you may be counting the number of preceding sibling nodes inside the repeating group? I&amp;#39;m not sure. &lt;/p&gt;&lt;p&gt;Is the field with the default formula inside the&amp;nbsp;repeating group?&amp;nbsp;You may want to use something like&amp;nbsp;count(../preceding-sibling::my:RepeatingGroup) with&amp;nbsp;&amp;quot;my:RepeatingGroup&amp;quot; replaced with your actual repeating group&amp;nbsp;XPath.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Multiple Selection Listbox - Get Index number?</title><link>https://www.infopathdev.com:443/forums/thread/102930.aspx</link><pubDate>Wed, 24 Jun 2015 14:54:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102930</guid><dc:creator>neeenz</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102930.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=102930</wfw:commentRss><description>&lt;p&gt;Hi Hilary,&lt;/p&gt;&lt;p&gt;&amp;nbsp;Ran into a weird scenario:&lt;/p&gt;&lt;p&gt;&amp;nbsp;I have a repeating table, I keep track of the number of items through an integer where it has the formula: &lt;strong&gt;&lt;em&gt;count(preceding-sibling::*) + 1&lt;/em&gt;&lt;/strong&gt;, this formula works for keeping track of the number of items. BUT it starts on 4. Any ideas why it&amp;#39;s starting at 4? On other instance counter I have, count(preceding-sibling::*/&amp;lt;counter variable&amp;gt;) + 1 works. &lt;/p&gt;&lt;p&gt;** To remedy the above, i just added a -3 to my counters when being used to add tags to the repeating items, i know it&amp;#39;s not a good remedy but just want to get an idea what&amp;#39;s causing the 4 default number.&lt;/p&gt;</description></item><item><title>Re: Multiple Selection Listbox - Get Index number?</title><link>https://www.infopathdev.com:443/forums/thread/102923.aspx</link><pubDate>Tue, 23 Jun 2015 22:19:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102923</guid><dc:creator>neeenz</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102923.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=102923</wfw:commentRss><description>&lt;p&gt;Hi Hilary,&lt;/p&gt;&lt;p&gt;That worked! Thanks a lot! I kind of have a basic understanding how the reference works now, thanks to you! :) Thank you so much Hilary! &lt;/p&gt;</description></item></channel></rss>