<?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 How to Use a Variable for Custom Value Order in JMP Scripting? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-Use-a-Variable-for-Custom-Value-Order-in-JMP-Scripting/m-p/897608#M105770</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;I'm trying to set a custom value order in a column using JSL. Here's the code that works when I hardcode the list:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;TestTable:Origin &amp;lt;&amp;lt; Set Property(
"Value Order",
{Custom Order({"EU", "IND", "US", "JPN", "AU"}), Common Order(0)}
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;However, when I try to pass the list as a variable, it doesn't work:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;countriesOrder = {"EU", "IND", "US", "JPN", "AU"};
TestTable:Origin &amp;lt;&amp;lt; Set Property(
"Value Order",
{Custom Order(countriesOrder), Common Order(0)}
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;My goal is to read the country order from an Excel file and use that list dynamically. But I can't find documentation on what&amp;nbsp;&lt;CODE&gt;Custom Order()&lt;/CODE&gt;&amp;nbsp;accepts—whether it can take a variable or only a literal list.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Aug 2025 20:33:39 GMT</pubDate>
    <dc:creator>mysteriouskrypt</dc:creator>
    <dc:date>2025-08-28T20:33:39Z</dc:date>
    <item>
      <title>How to Use a Variable for Custom Value Order in JMP Scripting?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Use-a-Variable-for-Custom-Value-Order-in-JMP-Scripting/m-p/897608#M105770</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;I'm trying to set a custom value order in a column using JSL. Here's the code that works when I hardcode the list:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;TestTable:Origin &amp;lt;&amp;lt; Set Property(
"Value Order",
{Custom Order({"EU", "IND", "US", "JPN", "AU"}), Common Order(0)}
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;However, when I try to pass the list as a variable, it doesn't work:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;countriesOrder = {"EU", "IND", "US", "JPN", "AU"};
TestTable:Origin &amp;lt;&amp;lt; Set Property(
"Value Order",
{Custom Order(countriesOrder), Common Order(0)}
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;My goal is to read the country order from an Excel file and use that list dynamically. But I can't find documentation on what&amp;nbsp;&lt;CODE&gt;Custom Order()&lt;/CODE&gt;&amp;nbsp;accepts—whether it can take a variable or only a literal list.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 20:33:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Use-a-Variable-for-Custom-Value-Order-in-JMP-Scripting/m-p/897608#M105770</guid>
      <dc:creator>mysteriouskrypt</dc:creator>
      <dc:date>2025-08-28T20:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to Use a Variable for Custom Value Order in JMP Scripting?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Use-a-Variable-for-Custom-Value-Order-in-JMP-Scripting/m-p/897631#M105771</link>
      <description>&lt;P&gt;A variable within a JMP list will not be evaluated unless forced.&amp;nbsp; Try this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;countriesOrder = {"EU", "IND", "US", "JPN", "AU"};
Eval(
	Eval Expr(
		TestTable:Origin &amp;lt;&amp;lt; Set Property(
			"Value Order",
			{Custom Order( Expr( countriesOrder ) ), Common Order( 0 )}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Aug 2025 21:57:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Use-a-Variable-for-Custom-Value-Order-in-JMP-Scripting/m-p/897631#M105771</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2025-08-28T21:57:36Z</dc:date>
    </item>
  </channel>
</rss>

