<?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: Display selected file in button box in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Display-selected-file-in-button-box/m-p/46949#M26753</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Just an idea I thought of. From the script, understood that it allows us to open 2 files based on the path selected. Once the each file is open, how can we assign it as data table to automatically create for example a distribution(or a simple Fix Y-X) plot. Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Nov 2017 00:38:48 GMT</pubDate>
    <dc:creator>adam</dc:creator>
    <dc:date>2017-11-09T00:38:48Z</dc:date>
    <item>
      <title>Display selected file in button box</title>
      <link>https://community.jmp.com/t5/Discussions/Display-selected-file-in-button-box/m-p/40747#M23798</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I have a button that prompts user to select 2 files. However, once the user clicks the button and picks a file, I would like the path name to show up on the button so that the user knows the file was correctly selected. In the photo below, once a user picks a file, I want that selected path to show up in the highlighted area.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Button.PNG" style="width: 181px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/6506i6E5744D580E34472/image-size/large?v=v2&amp;amp;px=999" role="button" title="Button.PNG" alt="Button.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Current Code:&lt;/P&gt;&lt;PRE&gt;New Window( "Data and Limits file",
	&amp;lt;&amp;lt;modal,
	Text box(""),
	Text box("Choose a data file:"),
	Button Box( "Pick file", D = Pick File()),
	//Text box(L),
	Text box (""),
	Text box (""),
	Text box("Choose a limits file:"),
	Button Box( "Pick File", L = Pick File()),
	//Text box(D),
	Text box(""),
	Text box (""),
	);&lt;/PRE&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2017 19:39:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Display-selected-file-in-button-box/m-p/40747#M23798</guid>
      <dc:creator>matt7109</dc:creator>
      <dc:date>2017-06-19T19:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Display selected file in button box</title>
      <link>https://community.jmp.com/t5/Discussions/Display-selected-file-in-button-box/m-p/40749#M23800</link>
      <description>&lt;P&gt;Here is the script. &amp;nbsp;The documentation on all of the features that can be used with a given function or display object is available at:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help==&amp;gt;Scripting Index&lt;/P&gt;
&lt;P&gt;It will give you all of the details, and examples&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
New Window( "Data and Limits file",
	&amp;lt;&amp;lt;modal,
	Spacer Box( size( 10, 10 ) ),
	Text Box( "Choose a data file:" ),
	BB1 = Button Box( "Pick file",
		D = Pick File();
		If( D != "",
			BB1 &amp;lt;&amp;lt; set button name( D )
		);
	), 
	//Text box(L),
	Spacer Box( size( 20, 10 ) ),
	Text Box( "Choose a limits file:" ),
	BB2 = Button Box( "Pick File",
		L = Pick File();
		If( L != "",
			BB2 &amp;lt;&amp;lt; set button name( L )
		);
	), 
	//Text box(D),
	Spacer Box( size( 20, 10 ) ) 

);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Jun 2017 20:08:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Display-selected-file-in-button-box/m-p/40749#M23800</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-06-19T20:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Display selected file in button box</title>
      <link>https://community.jmp.com/t5/Discussions/Display-selected-file-in-button-box/m-p/40750#M23801</link>
      <description>&lt;P&gt;Perfect!!! Thanks so much!&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2017 20:15:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Display-selected-file-in-button-box/m-p/40750#M23801</guid>
      <dc:creator>matt7109</dc:creator>
      <dc:date>2017-06-19T20:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Display selected file in button box</title>
      <link>https://community.jmp.com/t5/Discussions/Display-selected-file-in-button-box/m-p/40756#M23806</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;'s solution changes the text of the button, which is what the title of your post says you wanted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But, the picture you provided looks like you want the name of the file below the button – not in the button.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that's what you really want here's a modification of Jim's code that will get you there.&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( "Data and Limits file",
	&amp;lt;&amp;lt;modal,
	Spacer Box( size( 10, 10 ) ),
	Text Box( "Choose a data file:" ),
	BB1 = Button Box( "Pick file",
		D = Pick File();
		If( D != "",
			file1 &amp;lt;&amp;lt; set text( D )
		);
	),
	file1 = Text Box( ), 
	//Text box(L),
	Spacer Box( size( 20, 10 ) );,
	Text Box( "Choose a limits file:" ),
	BB2 = Button Box( "Pick File",
		L = Pick File();
		If( L != "",
			file2 &amp;lt;&amp;lt; set text( L )
		);
	),
	file2 = Text Box(  ), 
	//Text box(D),
	Spacer Box( size( 20, 10 ) ) 

	;
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Jun 2017 21:14:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Display-selected-file-in-button-box/m-p/40756#M23806</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2017-06-19T21:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Display selected file in button box</title>
      <link>https://community.jmp.com/t5/Discussions/Display-selected-file-in-button-box/m-p/46949#M26753</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Just an idea I thought of. From the script, understood that it allows us to open 2 files based on the path selected. Once the each file is open, how can we assign it as data table to automatically create for example a distribution(or a simple Fix Y-X) plot. Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 00:38:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Display-selected-file-in-button-box/m-p/46949#M26753</guid>
      <dc:creator>adam</dc:creator>
      <dc:date>2017-11-09T00:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Display selected file in button box</title>
      <link>https://community.jmp.com/t5/Discussions/Display-selected-file-in-button-box/m-p/46952#M26756</link>
      <description>&lt;P&gt;Here are 2 simple scripts that illustrate how to create a handle to the different data tables, and then to use that handle to determine which analysis to use with what data table.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\iris.jmp" );
dt2 = Open( "$SAMPLE_DATA\big class.jmp" );

dt &amp;lt;&amp;lt; Distribution(
	Continuous Distribution( Column( :Sepal length ) ),
	Continuous Distribution( Column( :Sepal width ) ),
	Continuous Distribution( Column( :Petal length ) ),
	Continuous Distribution( Column( :Petal width ) )
);

dt2 &amp;lt;&amp;lt; Oneway( Y( :height ), X( :age ), Means( 1 ), Mean Diamonds( 1 ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dtList = {};
dt = Open( "$SAMPLE_DATA\iris.jmp" );
Insert Into( dtlist, dt );
dt = Open( "$SAMPLE_DATA\big class.jmp" );
Insert Into( dtlist, dt );

dtList[1] &amp;lt;&amp;lt; Distribution(
	Continuous Distribution( Column( :Sepal length ) ),
	Continuous Distribution( Column( :Sepal width ) ),
	Continuous Distribution( Column( :Petal length ) ),
	Continuous Distribution( Column( :Petal width ) )
);

dtList[2] &amp;lt;&amp;lt; Oneway( Y( :height ), X( :age ), Means( 1 ), Mean Diamonds( 1 ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Nov 2017 01:33:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Display-selected-file-in-button-box/m-p/46952#M26756</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-11-09T01:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Display selected file in button box</title>
      <link>https://community.jmp.com/t5/Discussions/Display-selected-file-in-button-box/m-p/46953#M26757</link>
      <description>Thanks a lot, Jim !</description>
      <pubDate>Thu, 09 Nov 2017 02:00:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Display-selected-file-in-button-box/m-p/46953#M26757</guid>
      <dc:creator>adam</dc:creator>
      <dc:date>2017-11-09T02:00:05Z</dc:date>
    </item>
  </channel>
</rss>

