<?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: Nasty issue with table names in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/funny-issue-with-column-names/m-p/816149#M99625</link>
    <description>&lt;P&gt;More than a guess : )&lt;BR /&gt;&lt;BR /&gt;It's interesting ...&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;that JMP keeps the column name&amp;nbsp; "File Name" internally for the second column - despite the conflict with the other column&lt;BR /&gt;just save the table script and you will see something like in&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;'s post&lt;/LI&gt;&lt;LI&gt;that JMP uses this internal name to find the column - although the "File Name 2" in the table view&lt;BR /&gt;besides "file Name", you can also access the column via "File Name 2"&lt;/LI&gt;&lt;LI&gt;that JMP first scans the &lt;U&gt;localized&lt;/U&gt; column names - and THEN the original column names (otherwise it would find the first column).&lt;BR /&gt;The sequence seems to be:&lt;BR /&gt;1) column name a: just exact matches&lt;BR /&gt;2) localized column names - even approximate matches&lt;BR /&gt;3) column name b:&amp;nbsp; approximate matches&lt;/LI&gt;&lt;LI&gt;where the additional column came from.&lt;BR /&gt;I tried Concatenate and Update - with English and German settings ... with JMP 18.1 and JMP19EA4.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Nov 2024 07:29:29 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2024-11-21T07:29:29Z</dc:date>
    <item>
      <title>funny issue with column names</title>
      <link>https://community.jmp.com/t5/Discussions/funny-issue-with-column-names/m-p/816058#M99617</link>
      <description>&lt;P&gt;I was wondering about a script that did not do what it was supposed to do - not at all!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just open the attached data table and run the script: &lt;STRONG&gt;THE_BUG&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Caption(
"column \!"File Name\!"
values: " || Char((current data table():file Name &amp;lt;&amp;lt; Get values));
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result is surprising:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1732126833528.png" style="width: 267px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/70454iA70B7037AA06BD70/image-dimensions/267x96?v=v2" width="267" height="96" role="button" title="hogi_0-1732126833528.png" alt="hogi_0-1732126833528.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why not "A" and "B" ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1732127013623.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/70455i550EE34ED126B67A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1732127013623.png" alt="hogi_0-1732127013623.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;One can easily fix the script ...&lt;BR /&gt;&lt;BR /&gt;But digging deeper, there is a quite surprising root cause ...&lt;/P&gt;&lt;P&gt;please enjoy : )&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 20:34:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/funny-issue-with-column-names/m-p/816058#M99617</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-11-20T20:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Nasty issue with table names</title>
      <link>https://community.jmp.com/t5/Discussions/funny-issue-with-column-names/m-p/816090#M99619</link>
      <description>&lt;P&gt;I am confused. This is what I get using JMP 18.1.0:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dan_Obermiller_0-1732127389036.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/70456i950650CE0006AD32/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dan_Obermiller_0-1732127389036.png" alt="Dan_Obermiller_0-1732127389036.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am I missing something?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 18:30:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/funny-issue-with-column-names/m-p/816090#M99619</guid>
      <dc:creator>Dan_Obermiller</dc:creator>
      <dc:date>2024-11-20T18:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Nasty issue with table names</title>
      <link>https://community.jmp.com/t5/Discussions/funny-issue-with-column-names/m-p/816092#M99620</link>
      <description>&lt;P&gt;Sorry, while updating the post, I accidentally removed the root cause.&lt;BR /&gt;&lt;BR /&gt;Now the miracle works again ...&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 18:44:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/funny-issue-with-column-names/m-p/816092#M99620</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-11-20T18:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Nasty issue with table names</title>
      <link>https://community.jmp.com/t5/Discussions/funny-issue-with-column-names/m-p/816102#M99621</link>
      <description>&lt;P&gt;In the original data table you might have gotten&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1732127862902.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/70457i3B1767994915AED0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1732127862902.png" alt="jthi_0-1732127862902.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;My guess is that it is caused by using translated column name and same name in other column + relying on JMP's loose name rules (file Name instead of File Name for column referencing)&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Table("where_is_the_bug",
	Add Rows(2),
	Compress File When Saved(1),
	New Script(
		"THE BUG", JSL Quote(Caption(
"column \!"File Name\!"
name: "|| (current data table():file Name &amp;lt;&amp;lt; Get Name)||"
values: " || Char((current data table():file Name &amp;lt;&amp;lt; Get values));
)
)	,
		As String(1)
	),
	New Column("File Name",
		Character,
		"Nominal",
		Compact(),
		Set Values({"A", "B"}),
		Set Display Width(71)
	),
	New Column(["de" =&amp;gt; "Dateiname", "en" =&amp;gt; "File Name"],
		Character,
		"Nominal",
		Compact(),
		Set Selected,
		Set Values({"C", "C"}),
		Set Display Width(83)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;
Most definitely a bug considering JMP's rules for names but there are easy workarounds.&lt;/LI-SPOILER&gt;</description>
      <pubDate>Wed, 20 Nov 2024 18:43:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/funny-issue-with-column-names/m-p/816102#M99621</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-11-20T18:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Nasty issue with table names</title>
      <link>https://community.jmp.com/t5/Discussions/funny-issue-with-column-names/m-p/816149#M99625</link>
      <description>&lt;P&gt;More than a guess : )&lt;BR /&gt;&lt;BR /&gt;It's interesting ...&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;that JMP keeps the column name&amp;nbsp; "File Name" internally for the second column - despite the conflict with the other column&lt;BR /&gt;just save the table script and you will see something like in&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;'s post&lt;/LI&gt;&lt;LI&gt;that JMP uses this internal name to find the column - although the "File Name 2" in the table view&lt;BR /&gt;besides "file Name", you can also access the column via "File Name 2"&lt;/LI&gt;&lt;LI&gt;that JMP first scans the &lt;U&gt;localized&lt;/U&gt; column names - and THEN the original column names (otherwise it would find the first column).&lt;BR /&gt;The sequence seems to be:&lt;BR /&gt;1) column name a: just exact matches&lt;BR /&gt;2) localized column names - even approximate matches&lt;BR /&gt;3) column name b:&amp;nbsp; approximate matches&lt;/LI&gt;&lt;LI&gt;where the additional column came from.&lt;BR /&gt;I tried Concatenate and Update - with English and German settings ... with JMP 18.1 and JMP19EA4.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 07:29:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/funny-issue-with-column-names/m-p/816149#M99625</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-11-21T07:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Nasty issue with table names</title>
      <link>https://community.jmp.com/t5/Discussions/funny-issue-with-column-names/m-p/816160#M99626</link>
      <description>&lt;P&gt;As a consequence - a JSL code is very "fragile" if a column name is written slight different to the actual column name:&lt;BR /&gt;&lt;BR /&gt;Somebody can add a new column with alternative values. If&amp;nbsp;one of the localized names is similar to the original column name/ the reference in the script JMP will prioritize the new column. This can lead to surprising plots - maybe less obvious ones than this one:&lt;BR /&gt;&amp;lt;- Graph Builder will use this one&amp;nbsp;&lt;/P&gt;&lt;P&gt;column name: &lt;FONT face="courier new,courier"&gt;weight&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;JSL script: &lt;FONT face="courier new,courier"&gt;Weight&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;alternative column (at the end of the table):&amp;nbsp;&lt;CODE class=" language-jsl"&gt;wEiGhT &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/CODE&gt;&amp;lt;- Graph Builder will use this one&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1732136728576.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/70460i10A4ACD92479A09E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1732136728576.png" alt="hogi_0-1732136728576.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open("$SAMPLE_IMPORT_DATA/Bigclass.xlsx");

expr = Expr(dt &amp;lt;&amp;lt; Graph Builder(
	Size( 437, 413 ),
	Graph Spacing( 4 ),
	Variables( X( :height ), Y( :Weight ), Overlay( :sex ) ),
	Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) )
));

expr;
Wait(1);&lt;BR /&gt;
caption("and with some magic ...");
New Column( ["x-id" =&amp;gt; "wEiGhT", "en" =&amp;gt; "innocent column"],	Set Values( 100::61)	);

expr;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 05:35:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/funny-issue-with-column-names/m-p/816160#M99626</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-11-21T05:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Nasty issue with table names</title>
      <link>https://community.jmp.com/t5/Discussions/funny-issue-with-column-names/m-p/816194#M99629</link>
      <description>&lt;P&gt;Using the data table that&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;&amp;nbsp; supplied, it get the blank values that were originally shown.&amp;nbsp; I then noticed that there is a column called File Name 2 that has blank values for the 2 rows.&amp;nbsp; &amp;nbsp;I then deleted the column File Name 2 and reran the script, and the script displayed&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1732139464854.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/70461iE306ACFE8615C0BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1732139464854.png" alt="txnelson_0-1732139464854.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you change the name of the column File Name 2 the script will also run correctly&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 21:53:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/funny-issue-with-column-names/m-p/816194#M99629</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-11-20T21:53:09Z</dc:date>
    </item>
  </channel>
</rss>

