<?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: With JSL what is the correct syntax to set the Column property &amp;quot;Reverse&amp;quot; in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/With-JSL-what-is-the-correct-syntax-to-set-the-Column-property/m-p/322241#M57219</link>
    <description>&lt;P&gt;Just to be clear, are you talking about &lt;EM&gt;Row Order Levels&lt;/EM&gt;, or &lt;EM&gt;Value Ordering&lt;/EM&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Row Order Levels I think just takes a flag - your screenshot looks more like value ordering, and that takes a list e.g.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;&amp;lt;&amp;lt; Set Property( "Value Ordering", {"F", "M"} ),&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Those buttons on the GUI are just utility buttons to help you create the order of the list.&amp;nbsp; They are not implemented as parameters in the message itself.&amp;nbsp; For the message you have to explicitly define the list, and ordering of the items defines the value ordering.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you wanted to mimic the reverse logic, you need to do two things; first get a list of the unique values in the column:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = open("$SAMPLE_DATA/Big Class.jmp");
summarize(levels=by(dt:sex));
show(levels);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In this example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;levels = {"F", "M"};&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And to reverse them:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;reverseInto(levels);
show(levels);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This gives&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;levels = {"M", "F"};&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So now you can write&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt:sex &amp;lt;&amp;lt; setProperty("Value Ordering",levels);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Unless of course you really did mean &lt;EM&gt;Row Order Levels&lt;/EM&gt;!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Oct 2020 22:50:17 GMT</pubDate>
    <dc:creator>David_Burnham</dc:creator>
    <dc:date>2020-10-15T22:50:17Z</dc:date>
    <item>
      <title>With JSL what is the correct syntax to set the Column property "Reverse"</title>
      <link>https://community.jmp.com/t5/Discussions/With-JSL-what-is-the-correct-syntax-to-set-the-Column-property/m-p/322161#M57212</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to set the properties of a Column to 1) Row Order levels and 2) Reverse.&lt;BR /&gt;So far I can do the first one without any problems.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt; dt:ColXYZ &amp;lt;&amp;lt;Set Property ( "Row Order Levels", 1 );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However I cannot find anywhere what is the correct syntax to emulate the GUI button "Reverse"&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-10-15 161608.jpg" style="width: 199px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/27430iF835F70713D0950E/image-size/small?v=v2&amp;amp;px=200" role="button" title="Screenshot 2020-10-15 161608.jpg" alt="Screenshot 2020-10-15 161608.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have tried several ways but none have worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:06:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/With-JSL-what-is-the-correct-syntax-to-set-the-Column-property/m-p/322161#M57212</guid>
      <dc:creator>ALopez</dc:creator>
      <dc:date>2023-06-11T11:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: With JSL what is the correct syntax to set the Column property "Reverse"</title>
      <link>https://community.jmp.com/t5/Discussions/With-JSL-what-is-the-correct-syntax-to-set-the-Column-property/m-p/322241#M57219</link>
      <description>&lt;P&gt;Just to be clear, are you talking about &lt;EM&gt;Row Order Levels&lt;/EM&gt;, or &lt;EM&gt;Value Ordering&lt;/EM&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Row Order Levels I think just takes a flag - your screenshot looks more like value ordering, and that takes a list e.g.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;&amp;lt;&amp;lt; Set Property( "Value Ordering", {"F", "M"} ),&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Those buttons on the GUI are just utility buttons to help you create the order of the list.&amp;nbsp; They are not implemented as parameters in the message itself.&amp;nbsp; For the message you have to explicitly define the list, and ordering of the items defines the value ordering.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you wanted to mimic the reverse logic, you need to do two things; first get a list of the unique values in the column:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = open("$SAMPLE_DATA/Big Class.jmp");
summarize(levels=by(dt:sex));
show(levels);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In this example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;levels = {"F", "M"};&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And to reverse them:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;reverseInto(levels);
show(levels);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This gives&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;levels = {"M", "F"};&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So now you can write&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt:sex &amp;lt;&amp;lt; setProperty("Value Ordering",levels);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Unless of course you really did mean &lt;EM&gt;Row Order Levels&lt;/EM&gt;!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 22:50:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/With-JSL-what-is-the-correct-syntax-to-set-the-Column-property/m-p/322241#M57219</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2020-10-15T22:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: With JSL what is the correct syntax to set the Column property "Reverse"</title>
      <link>https://community.jmp.com/t5/Discussions/With-JSL-what-is-the-correct-syntax-to-set-the-Column-property/m-p/322243#M57221</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;Sorry to be so greedy, but&amp;nbsp;I actually want both. So, I will first set the Row Levels for the column&lt;/P&gt;&lt;PRE class="language-jsl"&gt;&lt;CODE&gt; dt:ColXYZ &amp;lt;&amp;lt;Set Property ( "Row Order Levels", 1 )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and then implement your solution.to get the "Levels" and then Reverse them.&amp;nbsp; What a bummer that the GUI button does not represent a parameter and it is NOT documented.&lt;/P&gt;&lt;P&gt;Thank you very much for the info.&amp;nbsp; Nice lesson.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 23:08:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/With-JSL-what-is-the-correct-syntax-to-set-the-Column-property/m-p/322243#M57221</guid>
      <dc:creator>ALopez</dc:creator>
      <dc:date>2020-10-15T23:08:07Z</dc:date>
    </item>
  </channel>
</rss>

