<?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: Virtual linking two tables via JSL scripting in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Virtual-linking-two-tables-via-JSL-scripting/m-p/305190#M56128</link>
    <description>&lt;P&gt;Cool! had not seen that before.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Sep 2020 13:40:19 GMT</pubDate>
    <dc:creator>Craige_Hales</dc:creator>
    <dc:date>2020-09-11T13:40:19Z</dc:date>
    <item>
      <title>Virtual linking two tables via JSL scripting</title>
      <link>https://community.jmp.com/t5/Discussions/Virtual-linking-two-tables-via-JSL-scripting/m-p/282996#M54747</link>
      <description>&lt;P&gt;I have one a table opened by the user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After some python code I generate another table that ends:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;having a subset of columns (keeping same column names)&lt;/LI&gt;&lt;LI&gt;sharing its time index (few rows might have been removed).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;How can link these two tables via JSL?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The functionality I am after is to have something equivalent as if I did a subset in JMP.&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Start of script;
Names Default To Here( 1 );
Clear Log();

dt = Open( "$SAMPLE_DATA/Bands Data.JMP" );

dt  &amp;lt;&amp;lt; Subset(
	Linked,
	Suppress formula evaluation( 0 ),
	Sampling Rate( 0.9 ),
	columns( :timestamp, :proof cut, :viscosity, :caliper, :ink temperature )
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:33:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Virtual-linking-two-tables-via-JSL-scripting/m-p/282996#M54747</guid>
      <dc:creator>FN</dc:creator>
      <dc:date>2023-06-09T23:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Virtual linking two tables via JSL scripting</title>
      <link>https://community.jmp.com/t5/Discussions/Virtual-linking-two-tables-via-JSL-scripting/m-p/283006#M54748</link>
      <description>&lt;P&gt;The scripting index has three examples under &lt;EM&gt;Virtual Join&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Virtual Join in the Scripting Intex. Notice the Example 1 button is a pull down menu with other examples." style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/25840iDFD0CF1F9F8FF82E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Virtual Join in the Scripting Intex. Notice the Example 1 button is a pull down menu with other examples." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Virtual Join in the Scripting Intex. Notice the Example 1 button is a pull down menu with other examples.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There's an example of virtual join in&amp;nbsp;&lt;LI-MESSAGE title="Reverse Geocode Lat-Lon to Zip" uid="276875" url="https://community.jmp.com/t5/Uncharted/Reverse-Geocode-Lat-Lon-to-Zip/m-p/276875#U276875" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-blog-thread lia-fa-icon lia-fa-blog lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;. It saves the tables to disk before using&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;	zipcodeNS:dtdbf:shape &amp;lt;&amp;lt; Set Property( "Link ID", 1 );
	zipcodeNS:dtshp:shape &amp;lt;&amp;lt; Set Property( "Link Reference", Reference Table( zipcodeNS:dtdbf ) );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;to link them by the shape property.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 11:54:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Virtual-linking-two-tables-via-JSL-scripting/m-p/283006#M54748</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2020-07-30T11:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Virtual linking two tables via JSL scripting</title>
      <link>https://community.jmp.com/t5/Discussions/Virtual-linking-two-tables-via-JSL-scripting/m-p/304901#M56113</link>
      <description>&lt;P&gt;Does virtual join create the interactive linking when selecting rows or columns?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the examples I ran this did not happen.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 21:28:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Virtual-linking-two-tables-via-JSL-scripting/m-p/304901#M56113</guid>
      <dc:creator>FN</dc:creator>
      <dc:date>2020-09-10T21:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Virtual linking two tables via JSL scripting</title>
      <link>https://community.jmp.com/t5/Discussions/Virtual-linking-two-tables-via-JSL-scripting/m-p/304922#M56115</link>
      <description>&lt;P&gt;&lt;STRIKE&gt;No, the tables are not linked like a "linked subset".&lt;/STRIKE&gt;&amp;nbsp;(edit: see&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6194"&gt;@bernd_heinen&lt;/a&gt;&amp;nbsp;answer) But they are linked like a join; if you run that first example and change a color name in the table of colors, the change is immediately reflected in the table of people.&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4880"&gt;@chungwei&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 13:39:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Virtual-linking-two-tables-via-JSL-scripting/m-p/304922#M56115</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2020-09-11T13:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Virtual linking two tables via JSL scripting</title>
      <link>https://community.jmp.com/t5/Discussions/Virtual-linking-two-tables-via-JSL-scripting/m-p/304923#M56116</link>
      <description>&lt;P&gt;It is also possible I'm not answering the question you really asked. Perhaps an expert on the Tables menu will take another look.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 22:54:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Virtual-linking-two-tables-via-JSL-scripting/m-p/304923#M56116</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2020-09-10T22:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Virtual linking two tables via JSL scripting</title>
      <link>https://community.jmp.com/t5/Discussions/Virtual-linking-two-tables-via-JSL-scripting/m-p/305159#M56123</link>
      <description>&lt;P&gt;I understand that the subsetting is just an example. If tables are virtually joined row states can be syncronized between them. In the "parent" table there is the column with the linke reference (the blue keys). When you open that column's properties and look for the "link reference" property, you'll find options there.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LinkRef.PNG" style="width: 848px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/26708iB4594233B9127042/image-size/large?v=v2&amp;amp;px=999" role="button" title="LinkRef.PNG" alt="LinkRef.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here, you can determine which table shall be driving the row states. All settings can be set by JSL like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Column( "Unique Subject Identifier" ) &amp;lt;&amp;lt; Set Property(
	"Link Reference",
	{Reference Table( "Nic Demographics.jmp" ), Options(
		"Use Linked Column Name"(1),
		Row States Synchronization with Referenced Table( Accept( 1 ), Row States( Select, Exclude, Hide ) )
	)}
)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The one thing, that is not possible, is to transfer selections, no matter if they are made in the parent or the child table.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 11:11:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Virtual-linking-two-tables-via-JSL-scripting/m-p/305159#M56123</guid>
      <dc:creator>bernd_heinen</dc:creator>
      <dc:date>2020-09-11T11:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Virtual linking two tables via JSL scripting</title>
      <link>https://community.jmp.com/t5/Discussions/Virtual-linking-two-tables-via-JSL-scripting/m-p/305190#M56128</link>
      <description>&lt;P&gt;Cool! had not seen that before.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 13:40:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Virtual-linking-two-tables-via-JSL-scripting/m-p/305190#M56128</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2020-09-11T13:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Virtual linking two tables via JSL scripting</title>
      <link>https://community.jmp.com/t5/Discussions/Virtual-linking-two-tables-via-JSL-scripting/m-p/634584#M83256</link>
      <description>&lt;P&gt;Why are options like&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Options(
		"Use Linked Column Name"(1),
		Row States Synchronization with Referenced Table( Accept( 1 ), Row States( Select, Exclude, Hide ) )
	)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;not grabbed by the advanced log?&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 19:40:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Virtual-linking-two-tables-via-JSL-scripting/m-p/634584#M83256</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-05-23T19:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Virtual linking two tables via JSL scripting</title>
      <link>https://community.jmp.com/t5/Discussions/Virtual-linking-two-tables-via-JSL-scripting/m-p/636468#M83456</link>
      <description>&lt;P&gt;This may or may not be an issue. &amp;nbsp;I will report this to development, about the action recording to see if we can record that in the log. &amp;nbsp;Thanks for bringing it to our attention.&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 16:45:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Virtual-linking-two-tables-via-JSL-scripting/m-p/636468#M83456</guid>
      <dc:creator>Mandy_Chambers</dc:creator>
      <dc:date>2023-05-29T16:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Virtual linking two tables via JSL scripting</title>
      <link>https://community.jmp.com/t5/Discussions/Virtual-linking-two-tables-via-JSL-scripting/m-p/657682#M84705</link>
      <description>&lt;P&gt;I want to use Virtual Links between Tables in a Dashboard along the idea:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;use One Data Filter for Table 1&lt;/LI&gt;&lt;LI&gt;Plots/Tabulates for Table 2-N are updated accordingly.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;With&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-jsl"&gt;&lt;CODE&gt;Column( "Unique Subject Identifier" ) &amp;lt;&amp;lt; Set Property(
	"Link Reference",
	{Reference Table( "Nic Demographics.jmp" ), Options(
		"Use Linked Column Name"(1),
		Row States Synchronization with Referenced Table( Accept( 1 ), Row States( Select, Exclude, Hide ) )
	)}
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;from&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discussions/Virtual-linking-two-tables-via-JSL-scripting/m-p/305159/highlight/true#M56123" target="_blank"&gt;https://community.jmp.com/t5/Discussions/Virtual-linking-two-tables-via-JSL-scripting/m-p/305159/highlight/true#M56123&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can synchronize the row states.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I need to use a &lt;STRONG&gt;non-local&lt;/STRONG&gt; data filter to make it work?&lt;/P&gt;&lt;P&gt;There is no option in the Application Builder to use a non-local data filter, but I can modify the script and remove the &lt;FONT face="courier new,courier"&gt;local&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;Is this a good idea?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Better use a Filter State Handler to remote control the data filters of the other tables?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 13:48:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Virtual-linking-two-tables-via-JSL-scripting/m-p/657682#M84705</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-07-12T13:48:13Z</dc:date>
    </item>
  </channel>
</rss>

