<?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: Coding property didn’t have two numbers in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Coding-property-didn-t-have-two-numbers/m-p/612796#M81303</link>
    <description>&lt;P&gt;Do this after running your script to add the Coding property: click the red triangle in the Table panel in the upper left corner of the data table, and select Copy Table Script. Then open a new script editor and paste the script. Examine the Set Property arguments. You should see a list with two numbers for the second argument. If you don't, then your script is wrong.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Mar 2023 19:23:20 GMT</pubDate>
    <dc:creator>Mark_Bailey</dc:creator>
    <dc:date>2023-03-15T19:23:20Z</dc:date>
    <item>
      <title>Coding property didn’t have two numbers</title>
      <link>https://community.jmp.com/t5/Discussions/Coding-property-didn-t-have-two-numbers/m-p/612733#M81292</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the for loop below iterating through columns assigning a "coding" property to each one. all_cols is the list of columns of interest.&amp;nbsp;The function works - almost as intended.&amp;nbsp; The coding property is assigned correctly, col min &amp;amp; col max values included.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;for( y = 1, y &amp;lt;= N Items( all_cols ), y++,
	row() = y;
	lims = Eval List( { col min( eval( all_cols[y] ) ), col max( eval( all_cols[y] ) ) } );
	all_cols[y] &amp;lt;&amp;lt; Set Property( "Coding", Expr( lims ) );
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However, in the enhanced log, I notice the error "Coding property didn’t have two numbers" iterate once for each column in all_cols. I've counted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's where this presents a problem.&amp;nbsp; Later in my script, Standard Least Squares is performed.&amp;nbsp; Once I go to remove an effect from the list of effects in Effect Summary, an error box of the same message appears. Shown below.&amp;nbsp; If the box is exited using the "x" in the upper right corner, or if the "OK" button is pressed, this box will indefinitely appear, locking up usage of JMP until I end JMP's tasks forcefully.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StarfruitBob_0-1678902601434.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51127i1DC5AD25BCDD6273/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StarfruitBob_0-1678902601434.png" alt="StarfruitBob_0-1678902601434.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A for each() function will have the same error, given similar JMP expression evaluations. This would be equivalent to highlighting all of the columns and batch changing all of their properties through Standardize Attributes.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any thoughts on what's happening and how to stop it?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:28:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Coding-property-didn-t-have-two-numbers/m-p/612733#M81292</guid>
      <dc:creator>StarfruitBob</dc:creator>
      <dc:date>2023-06-08T16:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Coding property didn’t have two numbers</title>
      <link>https://community.jmp.com/t5/Discussions/Coding-property-didn-t-have-two-numbers/m-p/612761#M81297</link>
      <description>&lt;P&gt;The Coding column property looks correct in the Column Info dialog but is incorrect. I examined the data table script and discovered that the second argument to the &amp;lt;&amp;lt; Set Property() message is assigned literally. It does not use the value stored in &lt;EM&gt;lims&lt;/EM&gt;. You have to substitute the value yourself. Here is one way that works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For( i = 1, i &amp;lt; N Col(), i++,
	lims = Eval List( {Col Min( Eval( Column(i) ) ), Col Max( Eval( Column(i) ) )} );
	Eval(
		Substitute(
			Expr( Column( i ) &amp;lt;&amp;lt; Set Property( "Coding", ccc ); ),
			Expr( ccc ), lims
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This property is automatically added when you click Make Table in a JMP DOE platform. Why do you need to add this property after the table is created?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 18:47:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Coding-property-didn-t-have-two-numbers/m-p/612761#M81297</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2023-03-15T18:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Coding property didn’t have two numbers</title>
      <link>https://community.jmp.com/t5/Discussions/Coding-property-didn-t-have-two-numbers/m-p/612775#M81299</link>
      <description>&lt;P&gt;all_cols is a list of columns, but it's being iterated through by the loop. The line under where lims is defined calls on lims with Expr().&amp;nbsp; Does this help?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 18:43:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Coding-property-didn-t-have-two-numbers/m-p/612775#M81299</guid>
      <dc:creator>StarfruitBob</dc:creator>
      <dc:date>2023-03-15T18:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Coding property didn’t have two numbers</title>
      <link>https://community.jmp.com/t5/Discussions/Coding-property-didn-t-have-two-numbers/m-p/612788#M81300</link>
      <description>&lt;P&gt;Here are more notes on this issue:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Using&amp;nbsp;&amp;lt;&amp;lt; Get Property("Coding") for each of the columns in the loop, the pairs of col min and col max values are returned successfully. This verifies that the property was correctly assigned, and values populated.&lt;/LI&gt;&lt;LI&gt;When isolating the code for Set Property() to a blank script, it runs fine, no error notifications in the enhanced logs... However, read below.&lt;/LI&gt;&lt;LI&gt;When in the Fit Model dialog, after performing the Set Property() from a separate script, as mentioned above, the error still occurs.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StarfruitBob_0-1678906789864.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51132iE0D84EF0C5356AF1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StarfruitBob_0-1678906789864.png" alt="StarfruitBob_0-1678906789864.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 15 Mar 2023 19:01:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Coding-property-didn-t-have-two-numbers/m-p/612788#M81300</guid>
      <dc:creator>StarfruitBob</dc:creator>
      <dc:date>2023-03-15T19:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Coding property didn’t have two numbers</title>
      <link>https://community.jmp.com/t5/Discussions/Coding-property-didn-t-have-two-numbers/m-p/612796#M81303</link>
      <description>&lt;P&gt;Do this after running your script to add the Coding property: click the red triangle in the Table panel in the upper left corner of the data table, and select Copy Table Script. Then open a new script editor and paste the script. Examine the Set Property arguments. You should see a list with two numbers for the second argument. If you don't, then your script is wrong.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 19:23:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Coding-property-didn-t-have-two-numbers/m-p/612796#M81303</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2023-03-15T19:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Coding property didn’t have two numbers</title>
      <link>https://community.jmp.com/t5/Discussions/Coding-property-didn-t-have-two-numbers/m-p/612798#M81304</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StarfruitBob_0-1678908541407.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51134iD6F3752802224236/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StarfruitBob_0-1678908541407.png" alt="StarfruitBob_0-1678908541407.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Excellent catch!&amp;nbsp; This is what's in the table script. I'll fiddle around with my coding to get the values necessary in there.&amp;nbsp; Thank you,&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt;&amp;nbsp;!&lt;BR /&gt;&lt;BR /&gt;I'll keep this thread open until I post the resolution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 19:30:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Coding-property-didn-t-have-two-numbers/m-p/612798#M81304</guid>
      <dc:creator>StarfruitBob</dc:creator>
      <dc:date>2023-03-15T19:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Coding property didn’t have two numbers</title>
      <link>https://community.jmp.com/t5/Discussions/Coding-property-didn-t-have-two-numbers/m-p/612799#M81305</link>
      <description>&lt;P&gt;This was a simple fix. Verified working with my datasets!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;for( y = 1, y &amp;lt;= N Items( all_cols ), y++,
	row() = y;
	lims = Eval List( { col min( eval( all_cols[y] ) ), col max( eval( all_cols[y] ) ) } );
	Eval( Eval expr ( all_cols[y] &amp;lt;&amp;lt; Set Property( "Coding", Expr( lims )  ) ) );
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Mar 2023 19:41:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Coding-property-didn-t-have-two-numbers/m-p/612799#M81305</guid>
      <dc:creator>StarfruitBob</dc:creator>
      <dc:date>2023-03-15T19:41:07Z</dc:date>
    </item>
  </channel>
</rss>

