<?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 Enter the file name and save in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Enter-the-file-name-and-save/m-p/513327#M74084</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a jsl script where the user can type the file name and save as csv.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what I tried. Save() doesn't work when I enter the variable exE. Any suggestions?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();

current_pref = Char( Arg( Parse( (Char( Get Preferences( Export settings ) )) ), 1 ) );

Pref( Export Settings( End Of Field( Comma ), Export Table Headers( 1 ) ) );

exC = ".cvs";


Nw = new window(""
				,&amp;lt;&amp;lt; modal(),
								   Text box ("Enter File name"),
					               input = Text edit box("", &amp;lt;&amp;lt; Set width(100));,
					               Spacer Box( Size( 20, 10 ) ),
				                   Buttonbox("Export", path = pickDirectory("Select the folder to save .CSV file:");
					               aa = input &amp;lt;&amp;lt; get text();
					               exE = Concat( aa, exC );
				)
	
);
save( path || "\" || exE );  /// 

Eval( Parse( "pref(" || current_pref || ")" ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 09 Jun 2023 17:02:22 GMT</pubDate>
    <dc:creator>Jackie_</dc:creator>
    <dc:date>2023-06-09T17:02:22Z</dc:date>
    <item>
      <title>Enter the file name and save</title>
      <link>https://community.jmp.com/t5/Discussions/Enter-the-file-name-and-save/m-p/513327#M74084</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a jsl script where the user can type the file name and save as csv.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what I tried. Save() doesn't work when I enter the variable exE. Any suggestions?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();

current_pref = Char( Arg( Parse( (Char( Get Preferences( Export settings ) )) ), 1 ) );

Pref( Export Settings( End Of Field( Comma ), Export Table Headers( 1 ) ) );

exC = ".cvs";


Nw = new window(""
				,&amp;lt;&amp;lt; modal(),
								   Text box ("Enter File name"),
					               input = Text edit box("", &amp;lt;&amp;lt; Set width(100));,
					               Spacer Box( Size( 20, 10 ) ),
				                   Buttonbox("Export", path = pickDirectory("Select the folder to save .CSV file:");
					               aa = input &amp;lt;&amp;lt; get text();
					               exE = Concat( aa, exC );
				)
	
);
save( path || "\" || exE );  /// 

Eval( Parse( "pref(" || current_pref || ")" ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Jun 2023 17:02:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Enter-the-file-name-and-save/m-p/513327#M74084</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2023-06-09T17:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Enter the file name and save</title>
      <link>https://community.jmp.com/t5/Discussions/Enter-the-file-name-and-save/m-p/513490#M74089</link>
      <description>&lt;P&gt;exC is not recognized within the Modal window, so the simple fix is below&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();

current_pref = Char( Arg( Parse( (Char( Get Preferences( Export settings ) )) ), 1 ) );

Pref( Export Settings( End Of Field( Comma ), Export Table Headers( 1 ) ) );

exC = ".cvs";


Nw = New Window( "",
	&amp;lt;&amp;lt;modal(),
	Text Box( "Enter File name" ),
	input = Text Edit Box( "", &amp;lt;&amp;lt;Set width( 100 ) ),
	Spacer Box( Size( 20, 10 ) ),
	Button Box( "Export",
		path = Pick Directory( "Select the folder to save .CSV file:" );
		aa = input &amp;lt;&amp;lt; get text();
		
	)
	
);

exE = Concat( aa, exC );
save( path || "\" || exE );  /// 

Eval( Parse( "pref(" || current_pref || ")" ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Jun 2022 03:45:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Enter-the-file-name-and-save/m-p/513490#M74089</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-06-24T03:45:19Z</dc:date>
    </item>
  </channel>
</rss>

