<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Trouble using eval() on repeating section</title><link>https://www.infopathdev.com:443/forums/thread/86946.aspx</link><pubDate>Mon, 11 Feb 2013 06:01:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86946</guid><dc:creator>JoshuaValson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86946.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=86946</wfw:commentRss><description>&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;Hi All,&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;I am new to SharePoint. And am using the double eval to bind values to a multi select listbox from items of an external list which is filtered based on some fields on the form. I prefer codeless programming ( i mean use rules / xpath functions). I am getting the values in the listbox as a single item checked. i wanted it to be different items.&lt;/p&gt;
&lt;p&gt;Please advise on this matter. Thanks in advance.&lt;/p&gt;</description></item><item><title>Re: Trouble using eval() on repeating section</title><link>https://www.infopathdev.com:443/forums/thread/53979.aspx</link><pubDate>Wed, 21 Apr 2010 14:32:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53979</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53979.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=53979</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Use this formula as the default value for your AllOk field:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;substring(&amp;quot;FAILEDOK&amp;quot;, not(/my:myFields/my:MachineList/my:Machine[my:MachineOk != 1]) * 6 + 1, 6) &lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;You might need to change the path if it doesn&amp;#39;t quite match what&amp;#39;s in your data source.&lt;/p&gt;&lt;p&gt;What this does is evaluate to a different part of the string &amp;quot;FAILEDOK&amp;quot; depending on whether there is a MachineOk checkbox that is unchecked.&amp;nbsp; If there is one, then &lt;b&gt;not(/my:myFields/my:MachineList/my:Machine[my:MachineOk != 1])&lt;/b&gt; will evaluate to &lt;b&gt;false (0)&lt;/b&gt;, and what you will have is:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;substring(&amp;quot;FAILEDOK&amp;quot;, 0 * 6 + 1, 6) -&amp;gt; substring(&amp;quot;FAILEDOK&amp;quot;, 1, 6) -&amp;gt; FAILED&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&amp;nbsp;If all of the MachineOk boxes are checked, then &lt;b&gt;not(/my:myFields/my:MachineList/my:Machine[my:MachineOk != 1])&lt;/b&gt; will evaluate to &lt;b&gt;true (1)&lt;/b&gt; and you will have&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;substring(&amp;quot;FAILEDOK&amp;quot;, 1 * 6 + 1, 6) -&amp;gt; substring(&amp;quot;FAILEDOK&amp;quot;, 7, 6) -&amp;gt; OK &lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Re: Trouble using eval() on repeating section</title><link>https://www.infopathdev.com:443/forums/thread/53977.aspx</link><pubDate>Wed, 21 Apr 2010 14:21:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53977</guid><dc:creator>HankStallings</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53977.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=53977</wfw:commentRss><description>&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/storage/43/48112/SelectedItems.xsn"&gt;http://www.infopathdev.com/forums/storage/43/48112/SelectedItems.xsn&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This is the infopath form Hilary posted.&lt;/p&gt;</description></item><item><title>Re: Trouble using eval() on repeating section</title><link>https://www.infopathdev.com:443/forums/thread/53976.aspx</link><pubDate>Wed, 21 Apr 2010 13:59:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53976</guid><dc:creator>Kaspaas</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53976.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=53976</wfw:commentRss><description>&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;Hi,&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;I have a related problem using InfoPath 2007:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;My Schema is &lt;/font&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;&lt;font size="3" face="Times New Roman"&gt;MachineList (Group)&lt;/font&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;&lt;font size="3" face="Times New Roman"&gt;AllOk&amp;nbsp; (Text)&lt;/font&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;&lt;font size="3" face="Times New Roman"&gt;Machine (Repeating Group)&lt;/font&gt;&lt;/div&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;&lt;font size="3" face="Times New Roman"&gt;Name (text)&lt;/font&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;&lt;font size="3" face="Times New Roman"&gt;MachineOk (boolean&amp;nbsp;checkbox - checked = 1)&amp;nbsp;&lt;/font&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;
&lt;p&gt;The object is to show in AllOk &amp;quot;OK&amp;quot; when all the records in Machine have the checkboxes checked, and &amp;quot;FAILED&amp;quot; when one or more checkboxes are not checked.&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t find the coding to get such a formula running.&lt;/p&gt;
&lt;p&gt;Any hits on how to dow this?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Trouble using eval() on repeating section</title><link>https://www.infopathdev.com:443/forums/thread/50126.aspx</link><pubDate>Tue, 22 Dec 2009 18:55:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50126</guid><dc:creator>radamesort</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50126.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=50126</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If the items are on a multiple selection list box, can I use this solution to concatenate only the checked (selected) values?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Trouble using eval() on repeating section</title><link>https://www.infopathdev.com:443/forums/thread/48116.aspx</link><pubDate>Wed, 21 Oct 2009 18:30:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48116</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48116.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=48116</wfw:commentRss><description>&lt;p&gt;Wonderful, glad it was what you were looking for!&lt;/p&gt;</description></item><item><title>Re: Trouble using eval() on repeating section</title><link>https://www.infopathdev.com:443/forums/thread/48115.aspx</link><pubDate>Wed, 21 Oct 2009 18:16:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48115</guid><dc:creator>HankStallings</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48115.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=48115</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m so grateful that I have temporary access to your brain...that was too darn easy!&amp;nbsp; That is perfect!&lt;/p&gt;&lt;p&gt;Thanks so much!&lt;/p&gt;&lt;p&gt;Hank &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Trouble using eval() on repeating section</title><link>https://www.infopathdev.com:443/forums/thread/48112.aspx</link><pubDate>Wed, 21 Oct 2009 17:55:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48112</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48112.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=48112</wfw:commentRss><description>&lt;p&gt;Is there a particular reason you want to copy the values from Business Units and Apps into another field? It sounds like you want to copy them into a repeating field -- is that what you mean by formatting the field as a list? If you want to add and populate a repeating field, you&amp;#39;ll need to use code or an alternative like qRules.&lt;/p&gt;
&lt;p&gt;However, if all you want is a list control that shows the values in each field, you can do that by adding two bulleted list controls (for example) bound to the Business Units and Applications fields. I&amp;#39;ve attached a simple sample -- just right click on the link in the message header and save the form locally. Right click the saved file and select Design to open the template in design mode and preveiw. Hope that helps!&lt;/p&gt;</description></item><item><title>Re: Trouble using eval() on repeating section</title><link>https://www.infopathdev.com:443/forums/thread/48094.aspx</link><pubDate>Wed, 21 Oct 2009 14:06:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48094</guid><dc:creator>HankStallings</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48094.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=48094</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Hilary Stoupa:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;Instead of having this as a rule on your txtAddEmail field, try using the eval function as a default value for your txtEmailCC. If your data structure is like the list you posted (with txtEmailCC at the same level as rsctAddEmail) the default will look like this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;eval(eval(&lt;u&gt;rsctAddEmail&lt;/u&gt;, &amp;#39;concat(my:txtAddEmail, &amp;quot;;&amp;quot;)&amp;#39;), &amp;quot;..&amp;quot;)&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Make sure you pick rsctAddEmail from the data tree so it has the correct XPath. I&amp;#39;ve attached a sample to this post, just right click the link in the post header and save the file locally. Open it in design mode and preview it to test.&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp; 
&lt;p&gt;Hilary,&lt;/p&gt;
&lt;p&gt;I am having I believe to be a related issue.&amp;nbsp; I have a form&amp;nbsp;with two Multiple Selection Lists, so users can subscribe to&amp;nbsp;distribution lists for alert emails we send out for our product outages&amp;nbsp;- one has a list called &lt;strong&gt;Business Units&lt;/strong&gt; and the other is called &lt;strong&gt;Applications&lt;/strong&gt;.&amp;nbsp; As the user selects from either list, I want those selections to populate a third field called &lt;strong&gt;Lists&lt;/strong&gt;.&amp;nbsp; Ideally I would like it to format as list.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Business Units&lt;/strong&gt; xPath is /my:myFields/my:BusinessUnits/my:BU&lt;br /&gt;&lt;strong&gt;Applications&lt;/strong&gt; xPath is /my:myFields/my:Applications/my:Apps&lt;br /&gt;&lt;strong&gt;Lists&lt;/strong&gt; xPath is /my:myFields/my:Lists&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;I&amp;#39;ve tried a version of what you&amp;#39;ve suggested here, but as I select items, it doesn&amp;#39;t populate the field until I uncheck one of the boxes.&amp;nbsp; Plus it creates a long delimited string.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I know the selected items are written to table to hold in the Multiple Selection List field until it is submitted, is there a way I can display a formatted version of those values?&lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;</description></item><item><title>Re: Trouble using eval() on repeating section</title><link>https://www.infopathdev.com:443/forums/thread/46516.aspx</link><pubDate>Wed, 02 Sep 2009 16:43:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46516</guid><dc:creator>g-man</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46516.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=46516</wfw:commentRss><description>&lt;p&gt;Perfect!&amp;nbsp; Thanks Hilary, didn&amp;#39;t think of putting the formula in the default value.&lt;/p&gt;</description></item><item><title>Re: Trouble using eval() on repeating section</title><link>https://www.infopathdev.com:443/forums/thread/46512.aspx</link><pubDate>Wed, 02 Sep 2009 16:06:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46512</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46512.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=46512</wfw:commentRss><description>&lt;p&gt;Instead of having this as a rule on your txtAddEmail field, try using the eval function as a default value for your txtEmailCC. If your data structure is like the list you posted (with txtEmailCC at the same level as rsctAddEmail) the default will look like this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;eval(eval(&lt;u&gt;rsctAddEmail&lt;/u&gt;, &amp;#39;concat(my:txtAddEmail, &amp;quot;;&amp;quot;)&amp;#39;), &amp;quot;..&amp;quot;)&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Make sure you pick rsctAddEmail from the data tree so it has the correct XPath. I&amp;#39;ve attached a sample to this post, just right click the link in the post header and save the file locally. Open it in design mode and preview it to test.&lt;/p&gt;</description></item><item><title>Trouble using eval() on repeating section</title><link>https://www.infopathdev.com:443/forums/thread/46510.aspx</link><pubDate>Wed, 02 Sep 2009 14:34:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46510</guid><dc:creator>g-man</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46510.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=46510</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m having trouble concatenating text boxes from a repeating section.&amp;nbsp; I&amp;#39;ve researched and found others have solved this issue, but I can&amp;#39;t get it to work for me.&amp;nbsp; Here&amp;#39;s what I have...&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;rsctAddEmail (repeating section)&lt;/div&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;txtAddEmail (text box)&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;li&gt;
&lt;div&gt;txtEmailCC (text box)&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;On txtAddEmail I have the following rule:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Condition: None - This rule always applies&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Action: Set a field&amp;#39;s value&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Field: txtEmailCC&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Value: eval(eval(&lt;u&gt;..&lt;/u&gt;, &amp;quot;concat(my:txtAddEmail, &amp;#39;;&amp;#39;)&amp;quot;), &amp;quot;..&amp;quot;)&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;When I test this, only the last text box value I enter gets added to txtEmailCC.&amp;nbsp; Any help is greatly appreciated.&lt;/p&gt;</description></item></channel></rss>