<?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 Creating a UI to input a file using button box and generating graph in the same window in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Creating-a-UI-to-input-a-file-using-button-box-and-generating/m-p/523115#M74791</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a UI to input a JMP file using button box and generating graph in the same window in Vlistbox.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's me code: It gives me an error because the data table isn't selected. Any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

New Window( "",
	modal, 

	Button Box( " Click to Open", dt = Open( "$SAMPLE_DATA/Big Class.jmp" ) ),
	V List Box(
		obj = dt &amp;lt;&amp;lt; Graph Builder(
			Variables( X( :Sex ), Y( :Height ), Group X( :Age ) ),
			Elements( Box Plot( X, Y ) )
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 09 Jun 2023 17:04:39 GMT</pubDate>
    <dc:creator>Jackie_</dc:creator>
    <dc:date>2023-06-09T17:04:39Z</dc:date>
    <item>
      <title>Creating a UI to input a file using button box and generating graph in the same window</title>
      <link>https://community.jmp.com/t5/Discussions/Creating-a-UI-to-input-a-file-using-button-box-and-generating/m-p/523115#M74791</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a UI to input a JMP file using button box and generating graph in the same window in Vlistbox.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's me code: It gives me an error because the data table isn't selected. Any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

New Window( "",
	modal, 

	Button Box( " Click to Open", dt = Open( "$SAMPLE_DATA/Big Class.jmp" ) ),
	V List Box(
		obj = dt &amp;lt;&amp;lt; Graph Builder(
			Variables( X( :Sex ), Y( :Height ), Group X( :Age ) ),
			Elements( Box Plot( X, Y ) )
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Jun 2023 17:04:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Creating-a-UI-to-input-a-file-using-button-box-and-generating/m-p/523115#M74791</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2023-06-09T17:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a UI to input a file using button box and generating graph in the same window</title>
      <link>https://community.jmp.com/t5/Discussions/Creating-a-UI-to-input-a-file-using-button-box-and-generating/m-p/523151#M74793</link>
      <description>&lt;P&gt;You need to defer filling in the VLB until the button is pressed.&amp;nbsp; Also, you can use the &lt;CODE class=" language-jsl"&gt;Platform()&lt;/CODE&gt; function to help with table scoping (speaking of scoping, you can use the &lt;CODE class=" language-jsl"&gt;window&lt;/CODE&gt; pseudo-namespace to help with scoping)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Window( "Test",
	Modal
,
	Button Box( " Click to Open",
		window:dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
		window:vlb &amp;lt;&amp;lt; Append(
			Platform( window:dt,
				window:obj = window:dt &amp;lt;&amp;lt; Graph Builder(
					Variables( X( :Sex ), Y( :Height ), Group X( :Age ) ),
					Elements( Box Plot( X, Y ) )
				)
			)
		)
	)
,
	window:vlb = V List Box()
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Jul 2022 23:14:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Creating-a-UI-to-input-a-file-using-button-box-and-generating/m-p/523151#M74793</guid>
      <dc:creator>ErraticAttack</dc:creator>
      <dc:date>2022-07-18T23:14:50Z</dc:date>
    </item>
  </channel>
</rss>

