<?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: Saving a new project using a variable name created within the project in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Saving-a-new-project-using-a-variable-name-created-within-the/m-p/533454#M75642</link>
    <description>&lt;P&gt;Found the answer to my own question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, using 'this project()' does the trick. See script below&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Clear Log();
project = New Project();

project &amp;lt;&amp;lt; run script(
	dt = New Table( "test table for project", add rows( 1 ) );
	dt &amp;lt;&amp;lt; save( "$DOCUMENTS/test delete.jmp" );
	pjname = "blogus project.jmpprj";
	
	this project() &amp;lt;&amp;lt; Save As( "$DOCUMENTS/" || pjname );
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 13 Aug 2022 22:07:26 GMT</pubDate>
    <dc:creator>Sburel</dc:creator>
    <dc:date>2022-08-13T22:07:26Z</dc:date>
    <item>
      <title>Saving a new project using a variable name created within the project</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-a-new-project-using-a-variable-name-created-within-the/m-p/533437#M75641</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've put together a script that starts by creating a project. After doing all sorts of things within the project, I get a variable name that want to&amp;nbsp; use to name/save the project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried using a global namespace to transfer the variable from inside the project to no avail.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion would be very appreciated&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Clear Log();
project = New Project();

project &amp;lt;&amp;lt; run script(
	dt = New Table( "test table for project", add rows( 1 ) );
	dt &amp;lt;&amp;lt; save( "$DOCUMENTS/test delete.jmp" );
	if(isnamespace("trans")==0, trans = new namespace("trans"));
	trans:pjname = "blogus project.jmpprj";
);
name=trans:pjname;
show(name);
project &amp;lt;&amp;lt; Save As( "$DOCUMENTS/" || name );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Jun 2023 17:07:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-a-new-project-using-a-variable-name-created-within-the/m-p/533437#M75641</guid>
      <dc:creator>Sburel</dc:creator>
      <dc:date>2023-06-09T17:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Saving a new project using a variable name created within the project</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-a-new-project-using-a-variable-name-created-within-the/m-p/533454#M75642</link>
      <description>&lt;P&gt;Found the answer to my own question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, using 'this project()' does the trick. See script below&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Clear Log();
project = New Project();

project &amp;lt;&amp;lt; run script(
	dt = New Table( "test table for project", add rows( 1 ) );
	dt &amp;lt;&amp;lt; save( "$DOCUMENTS/test delete.jmp" );
	pjname = "blogus project.jmpprj";
	
	this project() &amp;lt;&amp;lt; Save As( "$DOCUMENTS/" || pjname );
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 13 Aug 2022 22:07:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-a-new-project-using-a-variable-name-created-within-the/m-p/533454#M75642</guid>
      <dc:creator>Sburel</dc:creator>
      <dc:date>2022-08-13T22:07:26Z</dc:date>
    </item>
  </channel>
</rss>

