<?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: File selection input box in JMP Application builder in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/File-selection-input-box-in-JMP-Application-builder/m-p/209490#M42007</link>
    <description>&lt;P&gt;Definitely.&amp;nbsp; Just create a button box and give it a script that does a pick file. Here, I just have a button box and an empty text box named "file_path_text".&amp;nbsp; For the button box script, I just type in "On Select".&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GUI.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/17310i013147FA9199E88E/image-size/large?v=v2&amp;amp;px=999" role="button" title="GUI.png" alt="GUI.png" /&gt;&lt;/span&gt;Then in the script window, I define On Select like so:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="script.png" style="width: 673px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/17311i12E06AEAAB6CAD49/image-size/large?v=v2&amp;amp;px=999" role="button" title="script.png" alt="script.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;On Select = expr(
	file_path = Pick File(
		"Select Excel File",
		"$DOCUMENTS",
		{"Excel|xls;xlsx"}
	);
	
	file_path_text &amp;lt;&amp;lt; Set Text(file_path)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;When you run it, you should see your selected file printed in the previously empty text box showing the path of your previously selected file.&amp;nbsp; Use "dt = open(file_path)" to open the selected file when you're script is ready to start working with the selected file.&lt;/P&gt;</description>
    <pubDate>Mon, 20 May 2019 18:44:53 GMT</pubDate>
    <dc:creator>cwillden</dc:creator>
    <dc:date>2019-05-20T18:44:53Z</dc:date>
    <item>
      <title>File selection input box in JMP Application builder</title>
      <link>https://community.jmp.com/t5/Discussions/File-selection-input-box-in-JMP-Application-builder/m-p/209112#M42002</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating a JMP application which would open a xlsx workbook, load individual sheets into datatables in background and link the datatables to Graph building JSL script buttons in JMP app.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to create a file selection input box in JMP Application builder, where in user can browse and select the xlsx workbook from the app?&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 17:42:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/File-selection-input-box-in-JMP-Application-builder/m-p/209112#M42002</guid>
      <dc:creator>dileepkr</dc:creator>
      <dc:date>2019-05-20T17:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: File selection input box in JMP Application builder</title>
      <link>https://community.jmp.com/t5/Discussions/File-selection-input-box-in-JMP-Application-builder/m-p/209490#M42007</link>
      <description>&lt;P&gt;Definitely.&amp;nbsp; Just create a button box and give it a script that does a pick file. Here, I just have a button box and an empty text box named "file_path_text".&amp;nbsp; For the button box script, I just type in "On Select".&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GUI.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/17310i013147FA9199E88E/image-size/large?v=v2&amp;amp;px=999" role="button" title="GUI.png" alt="GUI.png" /&gt;&lt;/span&gt;Then in the script window, I define On Select like so:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="script.png" style="width: 673px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/17311i12E06AEAAB6CAD49/image-size/large?v=v2&amp;amp;px=999" role="button" title="script.png" alt="script.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;On Select = expr(
	file_path = Pick File(
		"Select Excel File",
		"$DOCUMENTS",
		{"Excel|xls;xlsx"}
	);
	
	file_path_text &amp;lt;&amp;lt; Set Text(file_path)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;When you run it, you should see your selected file printed in the previously empty text box showing the path of your previously selected file.&amp;nbsp; Use "dt = open(file_path)" to open the selected file when you're script is ready to start working with the selected file.&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 18:44:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/File-selection-input-box-in-JMP-Application-builder/m-p/209490#M42007</guid>
      <dc:creator>cwillden</dc:creator>
      <dc:date>2019-05-20T18:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: File selection input box in JMP Application builder</title>
      <link>https://community.jmp.com/t5/Discussions/File-selection-input-box-in-JMP-Application-builder/m-p/209491#M42008</link>
      <description>Thank you so much for the solution!</description>
      <pubDate>Mon, 20 May 2019 18:47:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/File-selection-input-box-in-JMP-Application-builder/m-p/209491#M42008</guid>
      <dc:creator>dileepkr</dc:creator>
      <dc:date>2019-05-20T18:47:59Z</dc:date>
    </item>
  </channel>
</rss>

