<?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: Dynamic Multi-Select Listbox - detecting checked value</title><link>https://www.infopathdev.com:443/forums/thread/80986.aspx</link><pubDate>Wed, 25 Jul 2012 10:38:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:80986</guid><dc:creator>rajkumar.bathula</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/80986.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=80986</wfw:commentRss><description>&lt;p&gt;Hi &lt;/p&gt;
&lt;p&gt;I am having different issue with multiselect list box and disabling it in InfoPath 2010 and administrator approval form publishing method.&lt;/p&gt;
&lt;p&gt;&lt;u&gt;In detail:&lt;/u&gt;&lt;/p&gt;
&lt;p&gt;I am having a section that contains multiselect list box. This section will be hidden/displayed based on some other control value on the Form. In this case, when i am giving Disable option using Formatting&amp;nbsp;rule for my multiselect list box,&amp;nbsp;I am getting error message as&amp;nbsp;&amp;#39;object reference not set to an instance&amp;#39; while uploading my publishied form to&amp;nbsp; Form Templates in Central Admin.&lt;/p&gt;
&lt;p&gt;If i&amp;nbsp;place my multiselect list box outside section and write disable formating rule, it is working fine.&lt;/p&gt;
&lt;p&gt;Conclusion: Disable formating rule is throwing error when my multiselect list box is placed in&amp;nbsp;section which is bydefault hidden and will be displayed later point of time. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;please help me out. let me know if you need any more information&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thank you beforehand.&lt;/p&gt;</description></item><item><title>Re: Dynamic Multi-Select Listbox - detecting checked value</title><link>https://www.infopathdev.com:443/forums/thread/53221.aspx</link><pubDate>Tue, 30 Mar 2010 06:40:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53221</guid><dc:creator>mehul.bhuva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53221.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=53221</wfw:commentRss><description>&lt;p&gt;It is believed that browser enabled InfoPath forms do not support multiple selection list box. &lt;/p&gt;
&lt;p&gt;But there is a work around for this. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have posted a step-by-step approach along with the source code to makemultiple selection list box a possibility with browser enabled InfoPath forms. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;Read my full post at: &lt;a href="http://www.sharepointfix.com/2010/03/creating-multi-select-list-box-in.html" target="_blank"&gt;http://www.sharepointfix.com/2010/03/creating-multi-select-list-box-in.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards, &lt;/p&gt;
&lt;p&gt;The SharePoint Fix Team&lt;/p&gt;</description></item><item><title>Re: Dynamic Multi-Select Listbox - detecting checked value</title><link>https://www.infopathdev.com:443/forums/thread/49372.aspx</link><pubDate>Tue, 24 Nov 2009 16:01:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49372</guid><dc:creator>fschick</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49372.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=49372</wfw:commentRss><description>&lt;p&gt;Thanks again. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Indeed, that does work. &lt;/p&gt;&lt;p&gt;Then the lesson is:&amp;nbsp; The solution in the referenced post applies to most attempts to ascertain values via an XPath formula from a muti-select list box&amp;#39;s selected values.&lt;br /&gt;&lt;/p&gt;&lt;p&gt; Thanks a lot. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;-Fritz &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Dynamic Multi-Select Listbox - detecting checked value</title><link>https://www.infopathdev.com:443/forums/thread/49370.aspx</link><pubDate>Tue, 24 Nov 2009 14:59:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49370</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49370.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=49370</wfw:commentRss><description>&lt;p&gt;Hello again.&amp;nbsp; Glad to hear you&amp;#39;re making some progress. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;fschick:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;I tried to apply the first rule to the multi Selection List Box itself and found the following - &lt;i&gt;what I call&lt;/i&gt; - &amp;#39;Quirk&amp;#39;:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Anytime I selected a value in the Multi Select Check Box as &amp;#39;CHECKED&amp;#39;, the rule would run and the proper total was calculated (Great!), but when &lt;i&gt;any&lt;/i&gt; of the &amp;#39;CHECKED&amp;#39; values were Un-CHECKED the rule would not recalculate (&lt;i&gt;thereby causing the total field to remain as though &lt;b&gt;nothing&amp;nbsp; &lt;/b&gt;was un-CHECKED)&lt;/i&gt; until &lt;i&gt;&lt;b&gt;any &lt;/b&gt;other option, including the one I just Un-CHECKED was set to CHECKED.&lt;/i&gt;&amp;nbsp;&amp;nbsp; There were no conditions on the rule running.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;I am aware of this quirk and actually mentioned it in the thread you referenced, and my previous post in this thread.&amp;nbsp; To get around it you need to use a default value in addition to a rule.&amp;nbsp; Have you tried setting a default value formula on InletSensorsSubtotal?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Dynamic Multi-Select Listbox - detecting checked value</title><link>https://www.infopathdev.com:443/forums/thread/49358.aspx</link><pubDate>Tue, 24 Nov 2009 07:22:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49358</guid><dc:creator>fschick</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49358.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=49358</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks Jimmy.&lt;/p&gt;&lt;p&gt;I know for the sake of purity, I probably should be using straight XML for my data sources, but what I neglected to tell you (im sorry) is im using an Access 2007 DB (to be exported to SQL server in the future). &lt;/p&gt;&lt;p&gt;But, I did figure out how to do what I am looking for with a confirmation button and rules.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Basically what I did was set up a button with the following rules:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;sum(@Price[@Product = InletSensors[//InletSensors != &amp;quot;&amp;quot;]])&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!--&amp;nbsp; Just looking for NON blank values in the Multi-Select Box to match to my Secondary Data Source&amp;#39;s Price List as per my previous post--&amp;gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;InletSensorConfirm = true()&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li&gt;&lt;i&gt;The only conditional on the rules was that &lt;/i&gt;InletSensorConfirm = FALSE&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;The Second rule refers to a boolean drop-down list box ( as opposed to a check box) that had its conditional display settings set to be hidden - whether it was true or false. ( so as to hide it at all times from the end user).&amp;nbsp; It has a default value of false()&amp;nbsp;&amp;nbsp; I use this control to toggle whether the user has &amp;#39;Confirmed&amp;#39; their selections in the multi Selection box.&amp;nbsp; If it is = true() i disable the multi-select box.&amp;nbsp;&lt;/p&gt;&lt;p&gt;I tried to apply the first rule to the multi Selection List Box itself and found the following - &lt;i&gt;what I call&lt;/i&gt; - &amp;#39;Quirk&amp;#39;:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Anytime I selected a value in the Multi Select Check Box as &amp;#39;CHECKED&amp;#39;, the rule would run and the proper total was calculated (Great!), but when &lt;i&gt;any&lt;/i&gt; of the &amp;#39;CHECKED&amp;#39; values were Un-CHECKED the rule would not recalculate (&lt;i&gt;thereby causing the total field to remain as though &lt;b&gt;nothing&amp;nbsp; &lt;/b&gt;was un-CHECKED)&lt;/i&gt; until &lt;i&gt;&lt;b&gt;any &lt;/b&gt;other option, including the one I just Un-CHECKED was set to CHECKED.&lt;/i&gt;&amp;nbsp;&amp;nbsp; There were no conditions on the rule running.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;That simply could not work since I am not assured that the salesperson using the form would mark anything else CHECKED after un-checking something. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;If you have any thoughts on how I could remove the hidden toggle field so that the rule runs at all times, whether or not another item is checked as described above.&lt;/p&gt;&lt;p&gt;Thanks again!&lt;/p&gt;&lt;p&gt;&amp;nbsp;-Fritz &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Dynamic Multi-Select Listbox - detecting checked value</title><link>https://www.infopathdev.com:443/forums/thread/49356.aspx</link><pubDate>Tue, 24 Nov 2009 05:14:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49356</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49356.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=49356</wfw:commentRss><description>&lt;p&gt;The attached form should be close to what you&amp;#39;re trying to do.&amp;nbsp; It uses the sum() function with some relatively simple XPath selection.&amp;nbsp; Like in the other example you indicated, you&amp;#39;ll need to put the formula in the default value and in a rule.&lt;/p&gt;&lt;p&gt;Please let me know if this is sufficient for what you need to do. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Dynamic Multi-Select Listbox - detecting checked value</title><link>https://www.infopathdev.com:443/forums/thread/49351.aspx</link><pubDate>Tue, 24 Nov 2009 04:08:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49351</guid><dc:creator>fschick</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49351.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=49351</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Jimmy, Thanks For Your Response. &lt;br /&gt;&lt;/p&gt;
&lt;div&gt;
a.&amp;nbsp; The location of the node bound to the multi-selection list box.&lt;/div&gt;&lt;div&gt;&lt;img src="http://www.scilog.com/images/MainDataSource.png" height="416" width="344" alt="" /&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
b.&amp;nbsp; The location of the prices.&amp;nbsp; (see below for both B &amp;amp; C)&lt;br /&gt;
&lt;p&gt;c.&amp;nbsp; The location of the nodes related to each price that correspond to
the values in the multi-selection list box (i.e., so we know which
prices to choose, and which not to).&lt;/p&gt;

&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;img src="http://www.scilog.com/images/SecondaryDataSource.png" title="Secondary Data Source" alt="Secondary Data Source" height="545" hspace="20" width="352" /&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; Jimmy:&amp;nbsp; So, what I am doing is populating the MultiSelect List box with items from Product column in the Secondary Data source (above).&amp;nbsp; I am filtering the values that can be shown in the Multi-select list box with the value from another field.&amp;nbsp; Everything to this point is okay and I have accomplished.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;So what I want to do is this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Multi-Select List Box has unique filtered values provided from the Secondary Data Source&amp;nbsp;&amp;nbsp; (accomplished)&lt;/li&gt;

&lt;li&gt;Since the multi-select list Display Name and Value are both equal to :Product&amp;nbsp; (see below), I need to use these values as filters on the :Price column to do the following step (Not accomplished)&lt;br /&gt;&lt;/li&gt;

&lt;li&gt;.&lt;img src="http://www.scilog.com/images/ListBox.png" title="ListBox" alt="ListBox" height="561" width="418" /&gt;&lt;/li&gt;

&lt;li&gt;sum() all :Price values from the secondary data source which have their :Product values selected in the Multi-Select List Box in the InletSensorsSubtotal textbox field in the Main Data Source.&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;I hope this is helpful.&amp;nbsp; Thanks A Lot for your assistance, Jimmy!!&amp;nbsp;&amp;nbsp; Also, prefer to use XPath expressions instead of code.&lt;/p&gt;&lt;p&gt;-Fritz &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Dynamic Multi-Select Listbox - detecting checked value</title><link>https://www.infopathdev.com:443/forums/thread/49350.aspx</link><pubDate>Tue, 24 Nov 2009 01:05:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49350</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49350.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=49350</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;It&amp;#39;s usually easier to provide a concrete answer when we know the structure of your data source.&amp;nbsp; Could you provide a screenshot of your data source indicating:&lt;/p&gt;
&lt;ol style="list-style-type:lower-alpha;"&gt;
&lt;li&gt;The location of the node bound to the multi-selection list box.&lt;/li&gt;
&lt;li&gt;The location of the prices.&lt;/li&gt;
&lt;li&gt;The location of the nodes related to each price that correspond to the values in the multi-selection list box (i.e., so we know which prices to choose, and which not to).&lt;br /&gt;&lt;/li&gt;
&lt;/ol&gt;</description></item><item><title>Dynamic Multi-Select Listbox - detecting checked value</title><link>https://www.infopathdev.com:443/forums/thread/49336.aspx</link><pubDate>Mon, 23 Nov 2009 16:41:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49336</guid><dc:creator>fschick</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49336.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=49336</wfw:commentRss><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have found this forum helpful in the past and thought that since I could not find an answer via google or on this site, some members could help me with this.&lt;/p&gt;&lt;p&gt;Although this post is &lt;i&gt;close&lt;/i&gt; to what I want to do:&amp;nbsp; &lt;a href="http://www.infopathdev.com/forums/t/13563.aspx" title="http://www.infopathdev.com/forums/t/13563.aspx" target="_blank"&gt;http://www.infopathdev.com/forums/t/13563.aspx&lt;/a&gt;&amp;nbsp; it is not really what I want to do.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I am Populating a multi-selection list box with filtered data from a secondary data source.&amp;nbsp; Each item listed in the control is unique.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;What I cannot figure out is how to detect when a user has checked a value in that control.&amp;nbsp; Both the display and value of each item is the same.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;What I want to do is detect when an item is checked and use that value from the multi select listbox to populate a text box whose formula would use the &lt;i&gt;sum()&lt;/i&gt; function to dynamically give a full pricing total of all checked items in the multi-selection list box.&lt;/p&gt;&lt;p&gt;If you need additional information, please specify what you would need from me.&lt;/p&gt;&lt;p&gt;Thanks A Lot!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;-Fritz &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>