Hi everyone,
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:
TestTable:Origin << Set Property(
"Value Order",
{Custom Order({"EU", "IND", "US", "JPN", "AU"}), Common Order(0)}
);
However, when I try to pass the list as a variable, it doesn't work:
countriesOrder = {"EU", "IND", "US", "JPN", "AU"};
TestTable:Origin << Set Property(
"Value Order",
{Custom Order(countriesOrder), Common Order(0)}
);
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 Custom Order()
accepts—whether it can take a variable or only a literal list.