<?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 Re: get selected item from a List Box() in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/get-selected-item-from-a-List-Box/m-p/251491#M49379</link>
    <description>&lt;P&gt;This approach is a bit simpler - I put actions directly into the radio box.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;all_database_list = {"AN_CDS", "XYZ", "ABC"};

x = {"abc", "cda"};
y = {"123", "345"};
selection = New Window( "Check",
	H List Box(
		Panel Box( "Select Database",
			radio = Radio Box( All_database_list, 
				Database_column_type = radio &amp;lt;&amp;lt; getSelected;
				If( Database_column_type == "AN_CDS",
					_cbFilters &amp;lt;&amp;lt; set items( x ),
					_cbFilters &amp;lt;&amp;lt; set items( y )
				);
			), 
		),
		FilterTxTBox = Text Box( "Columns: " ),
		_cbFilters = List Box( x, width( 100 ), nlines( 3 ), max selected( 1 ) ),
		Button Box( "Done", 
			SourceData = _cbFilters &amp;lt;&amp;lt; GetSelected;
			Show( SourceData );
			selection &amp;lt;&amp;lt; close window;
		),
	), 
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 10 Mar 2020 12:59:58 GMT</pubDate>
    <dc:creator>pmroz</dc:creator>
    <dc:date>2020-03-10T12:59:58Z</dc:date>
    <item>
      <title>get selected item from a List Box()</title>
      <link>https://community.jmp.com/t5/Discussions/get-selected-item-from-a-List-Box/m-p/251441#M49363</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;I have a GUI where &lt;CODE class=" language-jsl"&gt;_cbFilters is&amp;nbsp;poupulated&amp;nbsp;in&amp;nbsp;from&amp;nbsp;different&amp;nbsp;list.&amp;nbsp;Once&amp;nbsp;the&amp;nbsp;List&amp;nbsp;Box&amp;nbsp;is&amp;nbsp;populated,&amp;nbsp;I&amp;nbsp;want&amp;nbsp;to&amp;nbsp;select&amp;nbsp;the&amp;nbsp;variable&amp;nbsp;and&amp;nbsp;pass&amp;nbsp;it&amp;nbsp;for&amp;nbsp;some&amp;nbsp;other&amp;nbsp;us. But unable to do that. I tried get text() get selected etc...e..&lt;/CODE&gt;&lt;/STRONG&gt;&lt;/PRE&gt;&lt;PRE&gt;Button Box( "Get DataBase Filter Column",
						 _cbFilters  &amp;lt;&amp;lt; Remove all; 
						Database_column_type = radio &amp;lt;&amp;lt; getSelected;
						if(Database_column_type == "AN_CDS",
								 _cbFilters  &amp;lt;&amp;lt; Append(Mongo_list) ,																									
								 _cbFilters  &amp;lt;&amp;lt; Append(SQLColumnFilters_BootLogParsed))
						),
_cbFilters = List Box()
columnFilter = _cbFilters &amp;lt;&amp;lt; get selected;_&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 22:04:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/get-selected-item-from-a-List-Box/m-p/251441#M49363</guid>
      <dc:creator>Dib-Dey</dc:creator>
      <dc:date>2020-03-09T22:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: get selected item from a List Box()</title>
      <link>https://community.jmp.com/t5/Discussions/get-selected-item-from-a-List-Box/m-p/251447#M49364</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running the simple code below and trying to get the selected item from List Box(). But it is giving me error saying:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Name Unresolved: SourceData in access or evaluation of 'SourceData' , SourceData/*###*/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;x = {"abc", "cda"};
y={"123","345"};
selection = New Window( "Check",
	H List Box(
		Panel Box( "Select Database",
			radio = Radio Box( All_database_list, HideShowObject( radio ) ),
			Button Box( "Get DataBase Filter Column",
				_cbFilters &amp;lt;&amp;lt; Remove all;
				Database_column_type = radio &amp;lt;&amp;lt; getSelected;
				If( Database_column_type == "AN_CDS",
					_cbFilters &amp;lt;&amp;lt; Append( x ),
					_cbFilters &amp;lt;&amp;lt; Append( y )
				);
			),

		),
		FilterTxTBox = Text Box( "Columns: " ),
		_cbFilters  = List Box({" "},width(100),nlines(3),max selected( 1 )),
		Button Box("Done", SourceData = _cbFilters &amp;lt;&amp;lt; GetSelected;),
		show(SourceData)
	),

);&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Mar 2020 22:49:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/get-selected-item-from-a-List-Box/m-p/251447#M49364</guid>
      <dc:creator>Dib-Dey</dc:creator>
      <dc:date>2020-03-09T22:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: get selected item from a List Box()</title>
      <link>https://community.jmp.com/t5/Discussions/get-selected-item-from-a-List-Box/m-p/251491#M49379</link>
      <description>&lt;P&gt;This approach is a bit simpler - I put actions directly into the radio box.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;all_database_list = {"AN_CDS", "XYZ", "ABC"};

x = {"abc", "cda"};
y = {"123", "345"};
selection = New Window( "Check",
	H List Box(
		Panel Box( "Select Database",
			radio = Radio Box( All_database_list, 
				Database_column_type = radio &amp;lt;&amp;lt; getSelected;
				If( Database_column_type == "AN_CDS",
					_cbFilters &amp;lt;&amp;lt; set items( x ),
					_cbFilters &amp;lt;&amp;lt; set items( y )
				);
			), 
		),
		FilterTxTBox = Text Box( "Columns: " ),
		_cbFilters = List Box( x, width( 100 ), nlines( 3 ), max selected( 1 ) ),
		Button Box( "Done", 
			SourceData = _cbFilters &amp;lt;&amp;lt; GetSelected;
			Show( SourceData );
			selection &amp;lt;&amp;lt; close window;
		),
	), 
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Mar 2020 12:59:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/get-selected-item-from-a-List-Box/m-p/251491#M49379</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2020-03-10T12:59:58Z</dc:date>
    </item>
  </channel>
</rss>

