<?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 How to use List box to access new window in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-use-List-box-to-access-new-window/m-p/670543#M85854</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this example code where the user selects an option from the radio box which then brings them to another window. I am able to get this to work for the radio and combo box, but ideally, I would like it to be a list box. However, the list box doesn't do anything when, selecting "one" and pressing "ok". Is there an extra piece of code I need to include to make a list box functional?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate the help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;win = New Window( "test",
	&amp;lt;&amp;lt;Modal,
	Text Box(""),
	Panel Box( "test", rbTest = radio Box( {"one", "two", "three", "four"} ) ),
	Spacer Box( size( 20, 10 ) ),
	H List Box(
		Button Box( "OK",
			pTest = rbTest &amp;lt;&amp;lt; get selected;
			flagExecute = 0;
		),
		Button Box( "Cancel", flagExecute = 1 ), 
		
	),

);

If(pTest == "one",

win = New Window( "check",
	&amp;lt;&amp;lt;Modal,
	Panel Box( "check", rbProd = Radio Box( {"check"} ), ),
	Spacer Box( size( 20, 10 ) ),
)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Aug 2023 12:17:37 GMT</pubDate>
    <dc:creator>Hams</dc:creator>
    <dc:date>2023-08-23T12:17:37Z</dc:date>
    <item>
      <title>How to use List box to access new window</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-List-box-to-access-new-window/m-p/670543#M85854</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this example code where the user selects an option from the radio box which then brings them to another window. I am able to get this to work for the radio and combo box, but ideally, I would like it to be a list box. However, the list box doesn't do anything when, selecting "one" and pressing "ok". Is there an extra piece of code I need to include to make a list box functional?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate the help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;win = New Window( "test",
	&amp;lt;&amp;lt;Modal,
	Text Box(""),
	Panel Box( "test", rbTest = radio Box( {"one", "two", "three", "four"} ) ),
	Spacer Box( size( 20, 10 ) ),
	H List Box(
		Button Box( "OK",
			pTest = rbTest &amp;lt;&amp;lt; get selected;
			flagExecute = 0;
		),
		Button Box( "Cancel", flagExecute = 1 ), 
		
	),

);

If(pTest == "one",

win = New Window( "check",
	&amp;lt;&amp;lt;Modal,
	Panel Box( "check", rbProd = Radio Box( {"check"} ), ),
	Spacer Box( size( 20, 10 ) ),
)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 12:17:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-List-box-to-access-new-window/m-p/670543#M85854</guid>
      <dc:creator>Hams</dc:creator>
      <dc:date>2023-08-23T12:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to use List box to access new window</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-List-box-to-access-new-window/m-p/670561#M85856</link>
      <description>&lt;P&gt;Check what goes wrong when you are using list box by printing the pTest value&lt;/P&gt;
&lt;LI-SPOILER&gt;&amp;lt;&amp;lt; get selected will return list for List Box so you will have to handle that&lt;/LI-SPOILER&gt;</description>
      <pubDate>Wed, 23 Aug 2023 12:46:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-List-box-to-access-new-window/m-p/670561#M85856</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-08-23T12:46:26Z</dc:date>
    </item>
  </channel>
</rss>

