<?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: Setting link ID in jsl seems not to work - what is wrong? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Setting-link-ID-in-jsl-seems-not-to-work-what-is-wrong/m-p/254669#M50001</link>
    <description>&lt;P&gt;Still haven't figured it out, but I am getting some truly strange behavior here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having the same code in two windows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ThomasZatValcon_0-1585340549523.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22584i2A4CD7963E549CC6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ThomasZatValcon_0-1585340549523.png" alt="ThomasZatValcon_0-1585340549523.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I run the code in the left window, notice the icon with the two keys is grey (it doesn't work):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ThomasZatValcon_3-1585340647372.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22587i38EB0177CCE6E38E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ThomasZatValcon_3-1585340647372.png" alt="ThomasZatValcon_3-1585340647372.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the same two lines in the right window it works:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ThomasZatValcon_4-1585340679776.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22588i061B7229AADFA748/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ThomasZatValcon_4-1585340679776.png" alt="ThomasZatValcon_4-1585340679776.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code in the left window is where the jsl was created. All the code is just running in the global namespace. I even tried with names default to here(1) and get the same behavior which surprised me, as I expected not to be able to reference the table variables from another script window.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Mar 2020 20:30:49 GMT</pubDate>
    <dc:creator>ThomasZatValcon</dc:creator>
    <dc:date>2020-03-27T20:30:49Z</dc:date>
    <item>
      <title>Setting link ID in jsl seems not to work - what is wrong?</title>
      <link>https://community.jmp.com/t5/Discussions/Setting-link-ID-in-jsl-seems-not-to-work-what-is-wrong/m-p/254415#M49946</link>
      <description>&lt;P&gt;I am trying to set a link ID in JSL, but when setting it in JSL, the link ID seems to be set in the table like it should, but the link reference in the other table that is supposed to reference it does not work.&lt;/P&gt;
&lt;P&gt;If I remove the link ID and set it by right clicking on the link ID, everything works fine.&lt;/P&gt;
&lt;P&gt;I use this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dfps:name( "Country" ) &amp;lt;&amp;lt; Set Property( "Link ID", 1 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can't see what is wrong with this. Am I missing some refresh operation to make it work? Any suggestions?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:26:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Setting-link-ID-in-jsl-seems-not-to-work-what-is-wrong/m-p/254415#M49946</guid>
      <dc:creator>ThomasZatValcon</dc:creator>
      <dc:date>2023-06-09T23:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Setting link ID in jsl seems not to work - what is wrong?</title>
      <link>https://community.jmp.com/t5/Discussions/Setting-link-ID-in-jsl-seems-not-to-work-what-is-wrong/m-p/254467#M49955</link>
      <description>&lt;P&gt;Are you saying that you're setting the reference before the ID?&amp;nbsp; Not sure how you'd do that, but this works fine for me.&amp;nbsp;&amp;nbsp;&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 = open("$SAMPLE_DATA\Big Class.jmp");
// creating a unique ID
dt &amp;lt;&amp;lt; New Column("_Row", &amp;lt;&amp;lt; Set Each Value(Row()));
// subsetting just so I have something to link
dt_sub =  dt &amp;lt;&amp;lt; Subset(
	Selected Rows( 0 ),
	Rows( [1, 2, 3, 4, 5] ),
	columns( :_Row )
);


Column(dt, "_Row") &amp;lt;&amp;lt; Set Property( "Link ID", 1 );
Column(dt_sub, "_Row") &amp;lt;&amp;lt; Set Property( "Link Reference",
	Reference Table( "$SAMPLE_DATA\Big Class.jmp" )
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Mar 2020 19:36:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Setting-link-ID-in-jsl-seems-not-to-work-what-is-wrong/m-p/254467#M49955</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2020-03-26T19:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Setting link ID in jsl seems not to work - what is wrong?</title>
      <link>https://community.jmp.com/t5/Discussions/Setting-link-ID-in-jsl-seems-not-to-work-what-is-wrong/m-p/254657#M49996</link>
      <description>&lt;P&gt;Thanks. I modified your code to represent better what is going on (tables are only in memory) to represent what is going on more closely and expected it to fail, but it actually works. Still haven't figured out what makes my other code fail, but will update this thread if I find out.&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 = Open( "$SAMPLE_DATA\Big Class.jmp" );
// creating a unique ID
dt2 = dt &amp;lt;&amp;lt; subset( all rows, all columns );

dt2 &amp;lt;&amp;lt; New Column( "_Row", &amp;lt;&amp;lt;Set Each Value( Row() ) );
// subsetting just so I have something to link
dt_sub = dt2 &amp;lt;&amp;lt; Subset( Selected Rows( 0 ), Rows( [1, 2, 3, 4, 5] ), all rows );


Column( dt2, "_Row" ) &amp;lt;&amp;lt; Set Property( "Link ID", 1 );
Column( dt_sub, "_Row" ) &amp;lt;&amp;lt; Set Property(
	"Link Reference",
	{Reference Table( dt2 ),
	Options( Row States Synchronization with Referenced Table( Accept( 1 ), Row States( Select, Exclude, Hide, Marker ) ) )}
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Mar 2020 20:03:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Setting-link-ID-in-jsl-seems-not-to-work-what-is-wrong/m-p/254657#M49996</guid>
      <dc:creator>ThomasZatValcon</dc:creator>
      <dc:date>2020-03-27T20:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Setting link ID in jsl seems not to work - what is wrong?</title>
      <link>https://community.jmp.com/t5/Discussions/Setting-link-ID-in-jsl-seems-not-to-work-what-is-wrong/m-p/254669#M50001</link>
      <description>&lt;P&gt;Still haven't figured it out, but I am getting some truly strange behavior here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having the same code in two windows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ThomasZatValcon_0-1585340549523.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22584i2A4CD7963E549CC6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ThomasZatValcon_0-1585340549523.png" alt="ThomasZatValcon_0-1585340549523.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I run the code in the left window, notice the icon with the two keys is grey (it doesn't work):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ThomasZatValcon_3-1585340647372.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22587i38EB0177CCE6E38E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ThomasZatValcon_3-1585340647372.png" alt="ThomasZatValcon_3-1585340647372.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the same two lines in the right window it works:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ThomasZatValcon_4-1585340679776.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22588i061B7229AADFA748/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ThomasZatValcon_4-1585340679776.png" alt="ThomasZatValcon_4-1585340679776.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code in the left window is where the jsl was created. All the code is just running in the global namespace. I even tried with names default to here(1) and get the same behavior which surprised me, as I expected not to be able to reference the table variables from another script window.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 20:30:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Setting-link-ID-in-jsl-seems-not-to-work-what-is-wrong/m-p/254669#M50001</guid>
      <dc:creator>ThomasZatValcon</dc:creator>
      <dc:date>2020-03-27T20:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Setting link ID in jsl seems not to work - what is wrong?</title>
      <link>https://community.jmp.com/t5/Discussions/Setting-link-ID-in-jsl-seems-not-to-work-what-is-wrong/m-p/254703#M50008</link>
      <description>Are they supposed to be the same? Because the two tables have different number of columns. &lt;BR /&gt;Have you looked that `dfps` is right? Or tried using `Column(dt, "Country")`?</description>
      <pubDate>Fri, 27 Mar 2020 22:29:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Setting-link-ID-in-jsl-seems-not-to-work-what-is-wrong/m-p/254703#M50008</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2020-03-27T22:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Setting link ID in jsl seems not to work - what is wrong?</title>
      <link>https://community.jmp.com/t5/Discussions/Setting-link-ID-in-jsl-seems-not-to-work-what-is-wrong/m-p/254752#M50023</link>
      <description>&lt;P&gt;It's two different tables. The one to the left is the table with the ID, the left table is the table with the reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I tried column(dt...) and dt:name()... referencing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried to put the code that works (when it is run from a separate script window) into a separate file and include it. Didn't work either. I tried to put it into an expr() and evaluate it. Also didn't help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the two lines of code work if I create a separate script window and run them from there, which is unexpected.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Mar 2020 09:50:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Setting-link-ID-in-jsl-seems-not-to-work-what-is-wrong/m-p/254752#M50023</guid>
      <dc:creator>ThomasZatValcon</dc:creator>
      <dc:date>2020-03-28T09:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Setting link ID in jsl seems not to work - what is wrong?</title>
      <link>https://community.jmp.com/t5/Discussions/Setting-link-ID-in-jsl-seems-not-to-work-what-is-wrong/m-p/254866#M50042</link>
      <description>&lt;P&gt;Try saving the tables before linking and see if your results become consistent. I'm not sure how the links work internally, but it might depend on a file name being available.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Mar 2020 01:27:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Setting-link-ID-in-jsl-seems-not-to-work-what-is-wrong/m-p/254866#M50042</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2020-03-29T01:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Setting link ID in jsl seems not to work - what is wrong?</title>
      <link>https://community.jmp.com/t5/Discussions/Setting-link-ID-in-jsl-seems-not-to-work-what-is-wrong/m-p/598505#M80223</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have got the very same problem with linking two tables via script.&lt;/P&gt;&lt;P&gt;It behaves exactly as &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/16947"&gt;@ThomasZatValcon&lt;/a&gt;&amp;nbsp;described.&lt;/P&gt;&lt;P&gt;After doing it manually through clicking I then copied the two lines of code from the log.&lt;/P&gt;&lt;P&gt;Then it depends where they are inserted. If I insert them in a new script window, the script works. If I insert them in my current script under development (from which the two tables were opened originally) it does not work.&lt;BR /&gt;Are there some new insights into this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;BR /&gt;Robert&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Btw. In the meantime I found a related thread. The workaround is to save the datatables first, but this is not always convenient.&lt;BR /&gt;&lt;A href="https://community.jmp.com/t5/Discussions/Virtual-Join-via-JSL-does-not-work/td-p/360675" target="_blank"&gt;https://community.jmp.com/t5/Discussions/Virtual-Join-via-JSL-does-not-work/td-p/360675&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 14:19:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Setting-link-ID-in-jsl-seems-not-to-work-what-is-wrong/m-p/598505#M80223</guid>
      <dc:creator>Robbb</dc:creator>
      <dc:date>2023-02-08T14:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Setting link ID in jsl seems not to work - what is wrong?</title>
      <link>https://community.jmp.com/t5/Discussions/Setting-link-ID-in-jsl-seems-not-to-work-what-is-wrong/m-p/598600#M80229</link>
      <description>&lt;P&gt;I discovered somethink new:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the JSL script that I am executing is not saved and was never saved before (so if source code was written or copied into a brand new opened scripting window), linking two unsaved data tables works like a charm.&lt;/P&gt;&lt;P&gt;If it is saved or if it is an existing script that was just modified and not saved, it is not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 14:55:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Setting-link-ID-in-jsl-seems-not-to-work-what-is-wrong/m-p/598600#M80229</guid>
      <dc:creator>Robbb</dc:creator>
      <dc:date>2023-02-08T14:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Setting link ID in jsl seems not to work - what is wrong?</title>
      <link>https://community.jmp.com/t5/Discussions/Setting-link-ID-in-jsl-seems-not-to-work-what-is-wrong/m-p/599586#M80299</link>
      <description>&lt;P&gt;As Craige mentions, I believe it is a "save" issue. I've had this problem before, and frustratingly, I had it only on PC. On the Mac, I did not need to perform the save.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ensuring my table was saved first, fixed the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Brady&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 14:29:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Setting-link-ID-in-jsl-seems-not-to-work-what-is-wrong/m-p/599586#M80299</guid>
      <dc:creator>brady_brady</dc:creator>
      <dc:date>2023-02-10T14:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Setting link ID in jsl seems not to work - what is wrong?</title>
      <link>https://community.jmp.com/t5/Discussions/Setting-link-ID-in-jsl-seems-not-to-work-what-is-wrong/m-p/599646#M80306</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14411"&gt;@Robbb&lt;/a&gt;&amp;nbsp;&amp;nbsp; I just sent a note to the dev team; I've not tested your theory, but I'm hoping you've identified a cause of the unpredictability. It is believable because there is something different about the current directory when a script isn't saved, and the tables depend on something related to that, maybe.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 16:06:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Setting-link-ID-in-jsl-seems-not-to-work-what-is-wrong/m-p/599646#M80306</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2023-02-10T16:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Setting link ID in jsl seems not to work - what is wrong?</title>
      <link>https://community.jmp.com/t5/Discussions/Setting-link-ID-in-jsl-seems-not-to-work-what-is-wrong/m-p/599675#M80309</link>
      <description>&lt;P&gt;Thanks for sharing these comments and insights.&amp;nbsp; It has been encouraged many times to save the tables before creating these link id and link references for tables, to make sure it saves properly. However, we did have a defect reported on this, and it was fixed during the 17.0 JMP cycle. So this scripting behavior no longer fails.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instal the new JMP 17.0 and this behavior should be more improved.&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 18:15:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Setting-link-ID-in-jsl-seems-not-to-work-what-is-wrong/m-p/599675#M80309</guid>
      <dc:creator>Mandy_Chambers</dc:creator>
      <dc:date>2023-02-10T18:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Setting link ID in jsl seems not to work - what is wrong?</title>
      <link>https://community.jmp.com/t5/Discussions/Setting-link-ID-in-jsl-seems-not-to-work-what-is-wrong/m-p/601812#M80522</link>
      <description>&lt;P&gt;Thanks Mandy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sometimes you don't want things saved.&lt;/P&gt;&lt;P&gt;But thanks for pointing out that this issue is fixed in JMP 17. I'm on 16.2. It is not always easy to update to a newer software version in a larger company, but now I know it would be worth the effort.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 06:58:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Setting-link-ID-in-jsl-seems-not-to-work-what-is-wrong/m-p/601812#M80522</guid>
      <dc:creator>Robbb</dc:creator>
      <dc:date>2023-02-16T06:58:11Z</dc:date>
    </item>
  </channel>
</rss>

