<?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 How to refer to data tables within a project? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-refer-to-data-tables-within-a-project/m-p/794152#M97126</link>
    <description>&lt;P&gt;Hi! I have a jmpprj file with multiple tables in it. To make it easier for users, I've created a journal within the project with script buttons to launch specific analyses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;What is the best way to point to the dt in the script below? Open()? Other? If Open(), what is the correct file path (I am planning on sending this jmpprj file to many people and need the script to run "anywhere")&lt;/LI&gt;&lt;LI&gt;How to ensure the output stays within the project?&lt;/LI&gt;&lt;LI&gt;Any other tips on scripting within a project?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thanks in advance, o-talented-JSL-scripters!&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);
dt = // how to refer to a given table in this project?
dt &amp;lt;&amp;lt; Graph Builder(
	Size( 2165, 1020 ),
	Show Control Panel( 0 ),
	Fit to Window,
	Variables( X( :Platform ), Y( :Equipment.Simplified ) ),
	Elements( Points( X, Y, Legend( 5 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"Equipment.Simplified",
			ScaleBox,
			{Label Row( Show Major Grid( 1 ) )}
		),
		Dispatch( {}, "graph title", TextEditBox, {Set Text( "Blah Blah Blah" )} )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 03 Sep 2024 08:55:31 GMT</pubDate>
    <dc:creator>markschahl</dc:creator>
    <dc:date>2024-09-03T08:55:31Z</dc:date>
    <item>
      <title>How to refer to data tables within a project?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-refer-to-data-tables-within-a-project/m-p/794152#M97126</link>
      <description>&lt;P&gt;Hi! I have a jmpprj file with multiple tables in it. To make it easier for users, I've created a journal within the project with script buttons to launch specific analyses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;What is the best way to point to the dt in the script below? Open()? Other? If Open(), what is the correct file path (I am planning on sending this jmpprj file to many people and need the script to run "anywhere")&lt;/LI&gt;&lt;LI&gt;How to ensure the output stays within the project?&lt;/LI&gt;&lt;LI&gt;Any other tips on scripting within a project?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thanks in advance, o-talented-JSL-scripters!&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);
dt = // how to refer to a given table in this project?
dt &amp;lt;&amp;lt; Graph Builder(
	Size( 2165, 1020 ),
	Show Control Panel( 0 ),
	Fit to Window,
	Variables( X( :Platform ), Y( :Equipment.Simplified ) ),
	Elements( Points( X, Y, Legend( 5 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"Equipment.Simplified",
			ScaleBox,
			{Label Row( Show Major Grid( 1 ) )}
		),
		Dispatch( {}, "graph title", TextEditBox, {Set Text( "Blah Blah Blah" )} )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Sep 2024 08:55:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-refer-to-data-tables-within-a-project/m-p/794152#M97126</guid>
      <dc:creator>markschahl</dc:creator>
      <dc:date>2024-09-03T08:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to refer to data tables within a project?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-refer-to-data-tables-within-a-project/m-p/794170#M97127</link>
      <description>&lt;P&gt;Have you read scripting guide part of projects, &lt;A href="https://www.jmp.com/support/help/en/18.0/#page/jmp/creating-projects.shtml#" target="_blank"&gt;https://www.jmp.com/support/help/en/18.0/#page/jmp/creating-projects.shtml#&lt;/A&gt; ? Are you storing the data tables to the project (embedded) or are they just "links" (referenced)?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 09:12:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-refer-to-data-tables-within-a-project/m-p/794170#M97127</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-09-03T09:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to refer to data tables within a project?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-refer-to-data-tables-within-a-project/m-p/794752#M97149</link>
      <description>&lt;P&gt;Jarmo:&lt;BR /&gt;&lt;BR /&gt;Thanks for link. I thought that I had exhaustively searched the help...&lt;/P&gt;&lt;P&gt;The data tables are embedded in the project itself. There doesn't seem to be a path variable for "Current Project":&lt;BR /&gt;&lt;A href="https://www.jmp.com/support/help/en/18.0/index.shtml#page/jmp/path-variables.shtml#ww361809" target="_blank" rel="noopener"&gt;https://www.jmp.com/support/help/en/18.0/index.shtml#page/jmp/path-variables.shtml#ww361809&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 00:41:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-refer-to-data-tables-within-a-project/m-p/794752#M97149</guid>
      <dc:creator>markschahl</dc:creator>
      <dc:date>2024-09-04T00:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to refer to data tables within a project?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-refer-to-data-tables-within-a-project/m-p/794879#M97156</link>
      <description>&lt;P&gt;There is but &lt;STRONG&gt;it is only available inside a project&lt;/STRONG&gt;, $PROJECT&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1725429421510.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/67878i854781FC878630A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1725429421510.png" alt="jthi_0-1725429421510.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Projects have their own a bit weird file "path:&lt;EM&gt; "jmpprj://contents/"&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1725429527215.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/67879iB837A8455FA881D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1725429527215.png" alt="jthi_1-1725429527215.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I think you can also use Get Default Directory() &lt;STRONG&gt;IF &lt;/STRONG&gt;you have saved the script which is running that function &lt;STRONG&gt;inside the project&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Usually I try to script projects just like I would JMP normally (but in reality I try to JMP projects due to few issues they have), but depending where you are writing the JSL, inside or outside of project, it is a bit different.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 06:05:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-refer-to-data-tables-within-a-project/m-p/794879#M97156</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-09-04T06:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to refer to data tables within a project?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-refer-to-data-tables-within-a-project/m-p/794893#M97157</link>
      <description>&lt;P&gt;Jarmo: thanks, it was just what i needed!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 06:35:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-refer-to-data-tables-within-a-project/m-p/794893#M97157</guid>
      <dc:creator>markschahl</dc:creator>
      <dc:date>2024-09-04T06:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to refer to data tables within a project?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-refer-to-data-tables-within-a-project/m-p/797097#M97290</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JMPProject File Path.png" style="width: 425px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/68057i961F5A332AE5DAEE/image-size/large?v=v2&amp;amp;px=999" role="button" title="JMPProject File Path.png" alt="JMPProject File Path.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well, accidentally discovered this while hovering over the project contents file list: right click on the file to copy the path...&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 06:38:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-refer-to-data-tables-within-a-project/m-p/797097#M97290</guid>
      <dc:creator>markschahl</dc:creator>
      <dc:date>2024-09-09T06:38:45Z</dc:date>
    </item>
  </channel>
</rss>

