<?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: JSL scripting query regarding jmp table call in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-scripting-query-regarding-jmp-table-call/m-p/539358#M76032</link>
    <description>&lt;P&gt;Depending how you have built your script(s), using &lt;A href="https://www.jmp.com/support/help/en/16.2/#page/jmp/namespaces.shtml" target="_blank" rel="noopener"&gt;Namespaces&lt;/A&gt;&amp;nbsp;might work.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Sep 2022 06:03:35 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2022-09-01T06:03:35Z</dc:date>
    <item>
      <title>JSL scripting query regarding jmp table call</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-scripting-query-regarding-jmp-table-call/m-p/539339#M76031</link>
      <description>&lt;P&gt;I want to call a table which I am using in the current JSL script into another script, is there any way in which I can do that? I have attached snippet of the code, I want to use the dt1_Name (or dt) in another jsl script which I have linked to this script:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt1_Name= Pick File(
	"Select the JMP MasterFile",
	"", 
	{"JMP Files|jmp;jsl;jrn", "All Files|*"},
	1,
	0,
	"" 
);
Show( dt1_Name ); 
dt = Open( dt1_Name ); 
Show( dt ); 

bwidth = 150;

dt &amp;lt;&amp;lt; bring window to front;
box_win = New Window( "Select Columns",
	H List Box(
		Panel Box( "Select Columns", ColListData = Col List Box( dt, All, Grouped,width( bwidth ), nLines( 5 ) ) ),
		V List Box(
			Panel Box( "Case Selected Columns Into Roles",
				Lineup Box( N Col( 2 ), Spacing( 3 ),
					Button Box( "START DATE", colLista &amp;lt;&amp;lt; Append( ColListData &amp;lt;&amp;lt; Get Selected ) ),
					ColLista = Col List Box( width( bwidth ), N Lines( 1 ), Max Items( 1 ), Min Items( 1 ) ),
					Button Box( "END DATE", colListb &amp;lt;&amp;lt; Append( ColListData &amp;lt;&amp;lt; Get Selected ) ),
					ColListb = Col List Box( width( bwidth ), N Lines( 1 ), Max Items( 1 ), Min Items( 1 ) ),
					Button Box( "PAY DATE", colListc &amp;lt;&amp;lt; Append( ColListData &amp;lt;&amp;lt; Get Selected ) ),
					ColListc = Col List Box( width( bwidth ), N Lines( 1 ), Max Items( 1 ), Min Items( 1 )),
					Button Box( "STATUS", colListd &amp;lt;&amp;lt; Append( ColListData &amp;lt;&amp;lt; Get Selected ) ),
					ColListd = Col List Box( width( bwidth ), N Lines( 1 ), Max Items( 1 ), Min Items( 1 ) ),
					Button Box( "Remove",
						ColLista &amp;lt;&amp;lt; RemoveSelected;
						ColListb &amp;lt;&amp;lt; RemoveSelected;
						ColListc &amp;lt;&amp;lt; RemoveSelected;
					),
					Spacer Box()
				)
			),
			Lineup Box( N Col( 3 ), Spacing( 0, 3 ),
				Spacer Box( &amp;lt;&amp;lt;Set Auto Stretching( 1, 0 ) ),
				Button Box( "OK",
					acol = ColLista &amp;lt;&amp;lt; Get Items;
					As Column( acol ) &amp;lt;&amp;lt; Set Name( "STARTDATE" );
					bcol = ColListb &amp;lt;&amp;lt; Get Items;
					As Column( bcol ) &amp;lt;&amp;lt; set name( "ENDDATE" );
					ccol = ColListc &amp;lt;&amp;lt; Get Items;
					As Column( ccol ) &amp;lt;&amp;lt; set name( "PAY DATE" );
					dcol = ColListd &amp;lt;&amp;lt; Get Items;
					As Column( dcol ) &amp;lt;&amp;lt; set name( "STATUS" );
					box_win &amp;lt;&amp;lt; Close Window;	
					); 
					Close( dt, Save );
					Include("$Desktop/nextstep.jsl");
					
				),
				Button Box( "Cancel", box_win &amp;lt;&amp;lt; Close Window )
			)
		)

	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:53:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-scripting-query-regarding-jmp-table-call/m-p/539339#M76031</guid>
      <dc:creator>shasha_2</dc:creator>
      <dc:date>2023-06-10T23:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: JSL scripting query regarding jmp table call</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-scripting-query-regarding-jmp-table-call/m-p/539358#M76032</link>
      <description>&lt;P&gt;Depending how you have built your script(s), using &lt;A href="https://www.jmp.com/support/help/en/16.2/#page/jmp/namespaces.shtml" target="_blank" rel="noopener"&gt;Namespaces&lt;/A&gt;&amp;nbsp;might work.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 06:03:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-scripting-query-regarding-jmp-table-call/m-p/539358#M76032</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-09-01T06:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: JSL scripting query regarding jmp table call</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-scripting-query-regarding-jmp-table-call/m-p/539414#M76041</link>
      <description>&lt;P&gt;If you start off each script with&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here( 1 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;All of the variables etc. in that specific script will be unique to that script, and only that script.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 09:17:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-scripting-query-regarding-jmp-table-call/m-p/539414#M76041</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-09-01T09:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: JSL scripting query regarding jmp table call</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-scripting-query-regarding-jmp-table-call/m-p/539452#M76044</link>
      <description>&lt;P&gt;If your first script looks like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names default to here(1);
a = 1;
::b = 2;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;From a second script, notice you can look at the b variable because it has been globally scoped with the :: operator in front of it.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names default to here(1);
try(show(a));
try(show(::b));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So as long as you define your table variable as globally scoped, you should be able to call it from other scripts.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 10:20:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-scripting-query-regarding-jmp-table-call/m-p/539452#M76044</guid>
      <dc:creator>pauldeen</dc:creator>
      <dc:date>2022-09-01T10:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: JSL scripting query regarding jmp table call</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-scripting-query-regarding-jmp-table-call/m-p/539502#M76048</link>
      <description>Thank you, it's working!</description>
      <pubDate>Thu, 01 Sep 2022 13:39:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-scripting-query-regarding-jmp-table-call/m-p/539502#M76048</guid>
      <dc:creator>shasha_2</dc:creator>
      <dc:date>2022-09-01T13:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: JSL scripting query regarding jmp table call</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-scripting-query-regarding-jmp-table-call/m-p/539503#M76049</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 13:39:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-scripting-query-regarding-jmp-table-call/m-p/539503#M76049</guid>
      <dc:creator>shasha_2</dc:creator>
      <dc:date>2022-09-01T13:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: JSL scripting query regarding jmp table call</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-scripting-query-regarding-jmp-table-call/m-p/539504#M76050</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 13:40:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-scripting-query-regarding-jmp-table-call/m-p/539504#M76050</guid>
      <dc:creator>shasha_2</dc:creator>
      <dc:date>2022-09-01T13:40:28Z</dc:date>
    </item>
  </channel>
</rss>

