list box widget not working as expected.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.
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.
myListBox = listBox({"A", "B", "C"}, width(50), maxSelected(1), nlines(3),
<< script(
mySelection = myListBox << getSelected;
print("I selected: " || mySelection[1]);
);
);
newWindow("Test", myListBox);
Consumer and Market ResearchQuality and Process EngineeringRe: list box widget not working as expected.I'm glad to hear that @thickey. I can confirm that this was a bug introduced in JMP 15.0 and fixed in JMP 15.1.
But remember that 15.1 isn't the most recent release of JMP 15. You can get JMP 15.2.1 at jmp.com/update.
Re: list box widget not working as expected.Upgraded to JMP 15.1 and the issue is resolved.
Thanks Jim.
Re: list box widget not working as expected.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.
The issue though is that it seems to run EVERYTHING which is part of a <<script>&amp;amp;amp;lt;P&amp;amp;amp;gt;&amp;amp;amp;nbsp;&amp;amp;amp;lt;/P&amp;amp;amp;gt;&amp;amp;amp;lt;P&amp;amp;amp;gt;I&amp;amp;amp;amp;#39;ll see if I can update my JMP to &amp;amp;amp;gt; 15.0.0&amp;amp;amp;lt;/P&amp;amp;amp;gt;&amp;amp;amp;lt;/lingo-body&amp;amp;amp;gt;&amp;amp;amp;lt;lingo-sub id="lingo-sub-357327" slang="en-US"&amp;amp;amp;gt;Re: list box widget not working as expected.&amp;amp;amp;lt;/lingo-sub&amp;amp;amp;gt;&amp;amp;amp;lt;lingo-body id="lingo-body-357327" slang="en-US"&amp;amp;amp;gt;&amp;amp;amp;lt;P&amp;amp;amp;gt;I am running JMP 15.2.1 and I get only one printing to the log&amp;amp;amp;lt;/P&amp;amp;amp;gt;
&amp;amp;amp;lt;PRE&amp;amp;amp;gt;myListBox = listBox({"A", "B", "C"}, width(50), maxSelected(1), nlines(3),
&amp;amp;amp;amp;lt;&amp;amp;amp;amp;lt; script(
mySelection = myListBox &amp;amp;amp;amp;lt;&amp;amp;amp;amp;lt; getSelected;
print("I selected: " || mySelection[1]);
);
);
newWindow("Test", myListBox);
/*:
DisplayBox[EvalContextBox]
"I selected: B"&amp;amp;amp;lt;/PRE&amp;amp;amp;gt;&amp;amp;amp;lt;/lingo-body&amp;amp;amp;gt;