<?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: Help with Value Ordering in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Help-with-Value-Ordering/m-p/227526#M45136</link>
    <description>&lt;P&gt;I am not sure but try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:Results &amp;lt;&amp;lt; Set Property( "Value Ordering", Eval List( {"Buffer", b1, b2, b3} ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 27 Sep 2019 16:23:41 GMT</pubDate>
    <dc:creator>Mark_Bailey</dc:creator>
    <dc:date>2019-09-27T16:23:41Z</dc:date>
    <item>
      <title>Help with Value Ordering</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-Value-Ordering/m-p/227504#M45133</link>
      <description>&lt;P&gt;So I want to order my column a certain way by using the Value ordering property. In this case b1, b2 and b3 are user inputs from Text Edit Box but still the ordering in the column does not follow {"Buffer", b1, b2, b3} it follows an alphabetical order.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = current data table();

:Results&amp;lt;&amp;lt;set property("value ordering", {"Buffer", b1, b2, b3});&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I also tried the following after value ordering but it doesn't help&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; Sort(By(:Results),Order(Ascending),Replace Table);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 16:01:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-Value-Ordering/m-p/227504#M45133</guid>
      <dc:creator>shah47</dc:creator>
      <dc:date>2019-09-27T16:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Value Ordering</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-Value-Ordering/m-p/227524#M45135</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/15828"&gt;@shah47&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try the following:&lt;/P&gt;
&lt;PRE class=" language-jsl"&gt;&lt;CODE class="  language-jsl"&gt;dt &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;current data table&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="token punctuation"&gt;:&lt;/SPAN&gt;Results&lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="token messages"&gt;set property&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"value ordering"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"Buffer"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; "b1"&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; "b2"&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; "b3"&lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;once this is correct, the sorting should work as well,&lt;/P&gt;
&lt;P&gt;ron&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 16:21:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-Value-Ordering/m-p/227524#M45135</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2019-09-27T16:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Value Ordering</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-Value-Ordering/m-p/227526#M45136</link>
      <description>&lt;P&gt;I am not sure but try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:Results &amp;lt;&amp;lt; Set Property( "Value Ordering", Eval List( {"Buffer", b1, b2, b3} ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Sep 2019 16:23:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-Value-Ordering/m-p/227526#M45136</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2019-09-27T16:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Value Ordering</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-Value-Ordering/m-p/227540#M45139</link>
      <description>&lt;P&gt;Thanks all for the prompt reply, unfortunately it still reverts the column order by alphabetical&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 16:39:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-Value-Ordering/m-p/227540#M45139</guid>
      <dc:creator>shah47</dc:creator>
      <dc:date>2019-09-27T16:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Value Ordering</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-Value-Ordering/m-p/227541#M45140</link>
      <description>&lt;P&gt;Hן &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/15828"&gt;@shah47&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can you upload a table with just that column?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 17:33:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-Value-Ordering/m-p/227541#M45140</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2019-09-27T17:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Value Ordering</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-Value-Ordering/m-p/227543#M45142</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/958"&gt;@ron_horne&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the column, just to recap, the user inputs are captured as b1, b2, etc. In this instance I did a test and inputed "B" for b1 and "A" for b2 but as you can see the order in the table comes out as alphabetical.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 18:09:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-Value-Ordering/m-p/227543#M45142</guid>
      <dc:creator>shah47</dc:creator>
      <dc:date>2019-09-27T18:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Value Ordering</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-Value-Ordering/m-p/227548#M45146</link>
      <description>&lt;P&gt;Hi Based on the table you shared,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a short script that should do what you want: just change the order of the values in the Set property call&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here (1);

dt = Current Data Table ();

:Results &amp;lt;&amp;lt; set property("value ordering", {"Blank Sample Well", "Running Buffe", "Buffer", "A", "B"});

dt &amp;lt;&amp;lt; Sort( replace table, By( :Results ), Order( Ascending ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Sep 2019 18:38:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-Value-Ordering/m-p/227548#M45146</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2019-09-27T18:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Value Ordering</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-Value-Ordering/m-p/227549#M45147</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11634"&gt;@Thierry_S&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks but that solution will not work for what I'm trying to do. "A" and "B" are user inputs captured by b1, b2, etc with a Text Edit Box. So after the user inputs the values for b1, b2, the column order defaults to alphabetical.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 18:50:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-Value-Ordering/m-p/227549#M45147</guid>
      <dc:creator>shah47</dc:creator>
      <dc:date>2019-09-27T18:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Value Ordering</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-Value-Ordering/m-p/227566#M45152</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/15828"&gt;@shah47&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt; got it right.&lt;/P&gt;
&lt;P&gt;Pleas open the attached file and see if the scripts do the job.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here (1);

a = "Running Buffe"
b1 = "B";
b2 = "A";
b3 = "Blank Sample in well";
b4 = "Buffer";
:Results &amp;lt;&amp;lt; Set Property( "Value Ordering", Eval List( {a, b1, b2, b3, b4} ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Sep 2019 22:03:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-Value-Ordering/m-p/227566#M45152</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2019-09-27T22:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Value Ordering</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-Value-Ordering/m-p/227567#M45153</link>
      <description>Hi Shah,&lt;BR /&gt;Sorry that my short script did not do the job. I'm trying to figure out what you mean by "user inputs captured by b1, b2"? Are these numerical values or other labels for the specific assay condition?&lt;BR /&gt;Best,&lt;BR /&gt;TS</description>
      <pubDate>Fri, 27 Sep 2019 22:24:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-Value-Ordering/m-p/227567#M45153</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2019-09-27T22:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Value Ordering</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-Value-Ordering/m-p/227568#M45154</link>
      <description>Never mind, I got it now&lt;BR /&gt;Best,&lt;BR /&gt;TS</description>
      <pubDate>Fri, 27 Sep 2019 22:27:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-Value-Ordering/m-p/227568#M45154</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2019-09-27T22:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Value Ordering</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-Value-Ordering/m-p/227571#M45157</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11634"&gt;@Thierry_S&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/958"&gt;@ron_horne&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for some of the confusion, this is the more extended version of my script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = current data table();
InputWindow = New Window( "Enter Input",
	&amp;lt;&amp;lt;modal(),
	Table Box(
		String Col Box( "Results",
			{"Results 01", "Results 02", "Results 03" }
		),
		Col Box(
			"Final Results",
			teb1 = Text Edit Box( "Blank Sample in wells" ),
			teb2 = Text Edit Box( "Blank Sample in wells" ),
			teb3 = Text Edit Box( "Blank Sample in wells" )			
		)
	),
	Button Box( "OK",
		b1 = teb1 &amp;lt;&amp;lt; Get Text;
		b2 = teb2 &amp;lt;&amp;lt; Get Text;
		b3 = teb3 &amp;lt;&amp;lt; Get Text;		
	)
);
Show(s1,s2,s3,);
dt=current data table();
Try( :Results[dt &amp;lt;&amp;lt; get rows where( :Raw values== "01a" )] = b1 );
Try( :Results[dt &amp;lt;&amp;lt; get rows where( :Raw values== "01b" )] = b1 );
Try( :Results[dt &amp;lt;&amp;lt; get rows where( :Raw values== "02a" )] = b2 );
Try( :Results[dt &amp;lt;&amp;lt; get rows where( :Raw values== "02b" )] = b2 );
Try( :Results[dt &amp;lt;&amp;lt; get rows where( :Raw values== "03a" )] = b3 );
Try( :Results[dt &amp;lt;&amp;lt; get rows where( :Raw values== "03b" )] = b3 );

Wait(0);
dt = current data table();
:Results&amp;lt;&amp;lt;set property("value ordering", {"Buffer", b1, b2, b3});

dt = current data table();
dt &amp;lt;&amp;lt; Sort(By(:Results),Order(Ascending),Replace Table);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 28 Sep 2019 00:29:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-Value-Ordering/m-p/227571#M45157</guid>
      <dc:creator>shah47</dc:creator>
      <dc:date>2019-09-28T00:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Value Ordering</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-Value-Ordering/m-p/227639#M45167</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm still not clear what you are trying to do but the following slightly modified script does not return any error in the Log (see the Eval List call at the bottom)&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here (1);

dt = current data table();
InputWindow = New Window( "Enter Input",
	&amp;lt;&amp;lt;modal(),
	Table Box(
		String Col Box( "Results",
			{"Results 01", "Results 02", "Results 03" }
		),
		Col Box(
			"Final Results",
			teb1 = Text Edit Box( "Blank Sample in wells" ),
			teb2 = Text Edit Box( "Blank Sample in wells" ),
			teb3 = Text Edit Box( "Blank Sample in wells" )			
		)
	),
	Button Box( "OK",
		b1 = teb1 &amp;lt;&amp;lt; Get Text;
		b2 = teb2 &amp;lt;&amp;lt; Get Text;
		b3 = teb3 &amp;lt;&amp;lt; Get Text;		
	)
);
Show(b1,b2,b3,);
dt=current data table();
Try( :Results[dt &amp;lt;&amp;lt; get rows where( :Raw values== "01a" )] = b1 );
Try( :Results[dt &amp;lt;&amp;lt; get rows where( :Raw values== "01b" )] = b1 );
Try( :Results[dt &amp;lt;&amp;lt; get rows where( :Raw values== "02a" )] = b2 );
Try( :Results[dt &amp;lt;&amp;lt; get rows where( :Raw values== "02b" )] = b2 );
Try( :Results[dt &amp;lt;&amp;lt; get rows where( :Raw values== "03a" )] = b3 );
Try( :Results[dt &amp;lt;&amp;lt; get rows where( :Raw values== "03b" )] = b3 );

Wait(0);
dt = current data table();
:Results&amp;lt;&amp;lt;set property("value ordering", Eval List({"Buffer", b1, b2, b3}));

dt = current data table();
dt &amp;lt;&amp;lt; Sort(By(:Results),Order(Ascending),Replace Table);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Sep 2019 00:55:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-Value-Ordering/m-p/227639#M45167</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2019-09-30T00:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Value Ordering</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-Value-Ordering/m-p/227650#M45169</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11634"&gt;@Thierry_S&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lets say the user input the following for sample names in the text edit box:&lt;/P&gt;&lt;P&gt;C for b1&lt;/P&gt;&lt;P&gt;B for b2&lt;/P&gt;&lt;P&gt;A for b3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then the&amp;nbsp; column order becomes "Buffer", b3, b2, b1 when I run the script, it follows an alphabetical order. I want the script to run so that the column order remains&amp;nbsp; "Buffer", b1, b2, b3 no matter what is input as sample names.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 01:42:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-Value-Ordering/m-p/227650#M45169</guid>
      <dc:creator>shah47</dc:creator>
      <dc:date>2019-09-30T01:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Value Ordering</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-Value-Ordering/m-p/227725#M45180</link>
      <description>Hi Shah,&lt;BR /&gt;I believe that the latest script I uploaded in my previous message performs the way you want. Have you tried it?&lt;BR /&gt;Best,&lt;BR /&gt;TS</description>
      <pubDate>Mon, 30 Sep 2019 14:20:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-Value-Ordering/m-p/227725#M45180</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2019-09-30T14:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Value Ordering</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-Value-Ordering/m-p/227730#M45183</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11634"&gt;@Thierry_S&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried your script but still the column order is alphabetical&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 14:50:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-Value-Ordering/m-p/227730#M45183</guid>
      <dc:creator>shah47</dc:creator>
      <dc:date>2019-09-30T14:50:02Z</dc:date>
    </item>
  </channel>
</rss>

