<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic list box widget not working as expected. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/list-box-widget-not-working-as-expected/m-p/357300#M60740</link>
    <description>&lt;P&gt;Here is a simple snippet which pops up a list box and when an item is selected it should simply return the item to the log window. In reality I have a function which will do something with the returned item.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, in JMP 15 it always return the item twice which is odd behavior. Maybe this is an unintended use case and I need to use this widget another way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;myListBox = listBox({"A", "B", "C"}, width(50), maxSelected(1), nlines(3), 
	&amp;lt;&amp;lt; script(
		mySelection = myListBox &amp;lt;&amp;lt; getSelected;
		print("I selected: " || mySelection[1]);
	);
);

newWindow("Test", myListBox);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="thickey_0-1612832055277.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/30112i413FDB2A16C956AE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="thickey_0-1612832055277.png" alt="thickey_0-1612832055277.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 22:05:42 GMT</pubDate>
    <dc:creator>thickey</dc:creator>
    <dc:date>2023-06-09T22:05:42Z</dc:date>
    <item>
      <title>list box widget not working as expected.</title>
      <link>https://community.jmp.com/t5/Discussions/list-box-widget-not-working-as-expected/m-p/357300#M60740</link>
      <description>&lt;P&gt;Here is a simple snippet which pops up a list box and when an item is selected it should simply return the item to the log window. In reality I have a function which will do something with the returned item.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, in JMP 15 it always return the item twice which is odd behavior. Maybe this is an unintended use case and I need to use this widget another way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;myListBox = listBox({"A", "B", "C"}, width(50), maxSelected(1), nlines(3), 
	&amp;lt;&amp;lt; script(
		mySelection = myListBox &amp;lt;&amp;lt; getSelected;
		print("I selected: " || mySelection[1]);
	);
);

newWindow("Test", myListBox);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="thickey_0-1612832055277.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/30112i413FDB2A16C956AE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="thickey_0-1612832055277.png" alt="thickey_0-1612832055277.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 22:05:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/list-box-widget-not-working-as-expected/m-p/357300#M60740</guid>
      <dc:creator>thickey</dc:creator>
      <dc:date>2023-06-09T22:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: list box widget not working as expected.</title>
      <link>https://community.jmp.com/t5/Discussions/list-box-widget-not-working-as-expected/m-p/357327#M60743</link>
      <description>&lt;P&gt;I am running JMP 15.2.1 and I get only one printing to the log&lt;/P&gt;
&lt;PRE&gt;myListBox = listBox({"A", "B", "C"}, width(50), maxSelected(1), nlines(3), 
	&amp;lt;&amp;lt; script(
		mySelection = myListBox &amp;lt;&amp;lt; getSelected;
		print("I selected: " || mySelection[1]);
	);
);

newWindow("Test", myListBox);
/*:

DisplayBox[EvalContextBox]
"I selected: B"&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Feb 2021 03:19:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/list-box-widget-not-working-as-expected/m-p/357327#M60743</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-02-09T03:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: list box widget not working as expected.</title>
      <link>https://community.jmp.com/t5/Discussions/list-box-widget-not-working-as-expected/m-p/357476#M60754</link>
      <description>&lt;P&gt;Thanks Jim. Interestingly it does not happen on JMP 12. I also tried it on another machine with a separate JMP install (Also JMP 15.0.0) and it does this double print.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue though is that it seems to run EVERYTHING which is part of a &amp;lt;&amp;lt;script() in this widget twice.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll see if I can update my JMP to &amp;gt; 15.0.0&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 13:45:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/list-box-widget-not-working-as-expected/m-p/357476#M60754</guid>
      <dc:creator>thickey</dc:creator>
      <dc:date>2021-02-09T13:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: list box widget not working as expected.</title>
      <link>https://community.jmp.com/t5/Discussions/list-box-widget-not-working-as-expected/m-p/357500#M60756</link>
      <description>&lt;P&gt;Upgraded to JMP 15.1 and the issue is resolved.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Jim.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 14:23:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/list-box-widget-not-working-as-expected/m-p/357500#M60756</guid>
      <dc:creator>thickey</dc:creator>
      <dc:date>2021-02-09T14:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: list box widget not working as expected.</title>
      <link>https://community.jmp.com/t5/Discussions/list-box-widget-not-working-as-expected/m-p/357506#M60758</link>
      <description>&lt;P&gt;I'm glad to hear that&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/24222"&gt;@thickey&lt;/a&gt;. I can confirm that this was a bug introduced in JMP 15.0 and fixed in JMP 15.1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But remember that 15.1 isn't the most recent release of JMP 15. You can get JMP 15.2.1 at &lt;A href="https://jmp.com/update" target="_self"&gt;jmp.com/update&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 14:39:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/list-box-widget-not-working-as-expected/m-p/357506#M60758</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2021-02-09T14:39:46Z</dc:date>
    </item>
  </channel>
</rss>

