<?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: Need help to reference to a user input entry to the jsl in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Need-help-to-reference-to-a-user-input-entry-to-the-jsl/m-p/396325#M64708</link>
    <description>&lt;P&gt;I assume there is no such file as "num_input.csv".&amp;nbsp; What I believe you want is&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;&amp;lt;&amp;lt; Set Name Filter( num_input || ".csv" ),&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You need to take the time to read the Scripting Guide.&amp;nbsp; It will give you the background of the structures of JSL.&amp;nbsp; It is available in the JMP Documentation Library under the Help pull down menu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 27 Jun 2021 12:49:13 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2021-06-27T12:49:13Z</dc:date>
    <item>
      <title>Need help to reference to a user input entry to the jsl</title>
      <link>https://community.jmp.com/t5/Discussions/Need-help-to-reference-to-a-user-input-entry-to-the-jsl/m-p/396303#M64704</link>
      <description>&lt;P&gt;Hi, I'm trying to reference back to the user input as the name filter for the MFI&amp;nbsp;in my script but when I run the script it seems to run the MFI portion first before opening up the user input window. Can someone help advise what went wrong?&amp;nbsp;Appreciate!&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);

win = New Window( "Set the Value",
	H List Box( Text Box( "Set this value" ), num_edit_box1 = Text Edit Box( "lot" ) ),
	
	H List Box(
		Button Box( "OK", 
		
			//store results in jsl variables
			num_input = num_edit_box1 &amp;lt;&amp;lt; get text();
		
			//close the window
			//wait until you've unloaded the input boxes before you closing
			//or else they'll be gone
			win &amp;lt;&amp;lt; close window;
			
			//now do whatever work you want with the inputs
			Show( num_input );
			Print( num_input );
		),
		
		//a cancel button that closes the window and doesn't store store the results
		Button Box( "Cancel", win &amp;lt;&amp;lt; close window )
	)
);

Multiple File Import(
	&amp;lt;&amp;lt;Set Folder( "C:XXXX" ),
	&amp;lt;&amp;lt;Set Name Filter( "num_input.csv" ),
	&amp;lt;&amp;lt;Set Name Enable( 1 ),
	&amp;lt;&amp;lt;Set Size Filter( {14753758, 16813862} ),
	&amp;lt;&amp;lt;Set Size Enable( 0 ),&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 19:51:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-help-to-reference-to-a-user-input-entry-to-the-jsl/m-p/396303#M64704</guid>
      <dc:creator>deliaaa</dc:creator>
      <dc:date>2023-06-09T19:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to reference to a user input entry to the jsl</title>
      <link>https://community.jmp.com/t5/Discussions/Need-help-to-reference-to-a-user-input-entry-to-the-jsl/m-p/396312#M64705</link>
      <description>JMP does not stop processing when a New Window() is specified, unless it is a Modal window, or the New Window is the last code in the script.&lt;BR /&gt;Therefore, you have a couple of options, to correct your code.&lt;BR /&gt;    Add &amp;lt;&amp;lt;Modal, as one of the definition elements of your New Window()&lt;BR /&gt;    Move the MFI code into the OK Button execution</description>
      <pubDate>Sun, 27 Jun 2021 04:40:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-help-to-reference-to-a-user-input-entry-to-the-jsl/m-p/396312#M64705</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-06-27T04:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to reference to a user input entry to the jsl</title>
      <link>https://community.jmp.com/t5/Discussions/Need-help-to-reference-to-a-user-input-entry-to-the-jsl/m-p/396316#M64707</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;, thanks so much for the input! Adding &amp;lt;&amp;lt;Modal works&amp;nbsp;well!&lt;/P&gt;
&lt;P&gt;However, I now have problem referencing to the user input variable&amp;nbsp;for "num_input"&amp;nbsp;as the Name filter for the MFI, tried a few ways to do it but doesn't work. I'm very new to jsl, hope to get some advice.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Multiple File Import(
&amp;lt;&amp;lt;Set Folder( "C:XXXX" ),
&amp;lt;&amp;lt;Set Name Filter( "num_input.csv" ),
&amp;lt;&amp;lt;Set Name Enable( 1 ),
&amp;lt;&amp;lt;Set Size Filter( {14753758, 16813862} ),
&amp;lt;&amp;lt;Set Size Enable( 0 ),&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Jun 2021 20:22:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-help-to-reference-to-a-user-input-entry-to-the-jsl/m-p/396316#M64707</guid>
      <dc:creator>deliaaa</dc:creator>
      <dc:date>2021-06-28T20:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to reference to a user input entry to the jsl</title>
      <link>https://community.jmp.com/t5/Discussions/Need-help-to-reference-to-a-user-input-entry-to-the-jsl/m-p/396325#M64708</link>
      <description>&lt;P&gt;I assume there is no such file as "num_input.csv".&amp;nbsp; What I believe you want is&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;&amp;lt;&amp;lt; Set Name Filter( num_input || ".csv" ),&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You need to take the time to read the Scripting Guide.&amp;nbsp; It will give you the background of the structures of JSL.&amp;nbsp; It is available in the JMP Documentation Library under the Help pull down menu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jun 2021 12:49:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-help-to-reference-to-a-user-input-entry-to-the-jsl/m-p/396325#M64708</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-06-27T12:49:13Z</dc:date>
    </item>
  </channel>
</rss>

