<?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: Flag rows in a dataset in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Flag-rows-in-a-dataset/m-p/77979#M36319</link>
    <description>Got it to run, however it does not get the correct number of rows that have count &amp;lt;= 40</description>
    <pubDate>Thu, 04 Oct 2018 22:36:34 GMT</pubDate>
    <dc:creator>rshehadah</dc:creator>
    <dc:date>2018-10-04T22:36:34Z</dc:date>
    <item>
      <title>Flag rows in a dataset</title>
      <link>https://community.jmp.com/t5/Discussions/Flag-rows-in-a-dataset/m-p/77959#M36308</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to figure out a way that JMP flags rows in a dataset or qunatify the number of values that are less than or equal to 40.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will be very cool if it can be a JSL script that can be used for an add in.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 21:06:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Flag-rows-in-a-dataset/m-p/77959#M36308</guid>
      <dc:creator>rshehadah</dc:creator>
      <dc:date>2018-10-04T21:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Flag rows in a dataset</title>
      <link>https://community.jmp.com/t5/Discussions/Flag-rows-in-a-dataset/m-p/77963#M36311</link>
      <description>&lt;P&gt;I don't know what the Variable of question is, however the simple script to do this is:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NumberOfRows = N Rows( Select Rows Where( :Your Target Row &amp;lt;= 40) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Oct 2018 21:44:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Flag-rows-in-a-dataset/m-p/77963#M36311</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-10-04T21:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Flag rows in a dataset</title>
      <link>https://community.jmp.com/t5/Discussions/Flag-rows-in-a-dataset/m-p/77964#M36312</link>
      <description>&lt;P&gt;Thank you for the response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this response variable in my data set which I want to flag if it has a value 40 or less.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The command you shared with me does highlight the rows that have a value of 40 or less, however is there a way that I can add the number of rows highlighted and have some caption box pop up with the number of rows highlighted?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 21:47:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Flag-rows-in-a-dataset/m-p/77964#M36312</guid>
      <dc:creator>rshehadah</dc:creator>
      <dc:date>2018-10-04T21:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Flag rows in a dataset</title>
      <link>https://community.jmp.com/t5/Discussions/Flag-rows-in-a-dataset/m-p/77965#M36313</link>
      <description>&lt;P&gt;Something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NumberOfRows = N Rows( Select Rows Where( :Count &amp;lt;= 40) );&lt;/P&gt;&lt;P&gt;New Window( "Message", modal,&lt;BR /&gt;H List Box(&lt;BR /&gt;Spacer Box( size( 5, 0 ) ),&lt;BR /&gt;Text Box( Char( Length(NumberOfRows) ) ),&lt;BR /&gt;Text Box( " Columns Were Deleted" )&lt;BR /&gt;)&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the pop up screen does not show&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 21:51:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Flag-rows-in-a-dataset/m-p/77965#M36313</guid>
      <dc:creator>rshehadah</dc:creator>
      <dc:date>2018-10-04T21:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Flag rows in a dataset</title>
      <link>https://community.jmp.com/t5/Discussions/Flag-rows-in-a-dataset/m-p/77967#M36315</link>
      <description>Also that code for some reason does not highlight any of the rows</description>
      <pubDate>Thu, 04 Oct 2018 22:06:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Flag-rows-in-a-dataset/m-p/77967#M36315</guid>
      <dc:creator>rshehadah</dc:creator>
      <dc:date>2018-10-04T22:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Flag rows in a dataset</title>
      <link>https://community.jmp.com/t5/Discussions/Flag-rows-in-a-dataset/m-p/77969#M36317</link>
      <description>&lt;P&gt;Oops.....that's what I get for not actually running the code.&amp;nbsp; The Select Rows Where() should have been&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; get rows where( :Count &amp;lt;= 40 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However, given that you also want the rows selected....I think the following script will work better&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);

dt = Current Data Table();
dt &amp;lt;&amp;lt; Select Rows Where( :Count &amp;lt;= 40 );
NumberOfRows = N Rows( dt &amp;lt;&amp;lt; get selected rows );
New Window( "Message",
	modal,
	H List Box(
		Spacer Box( size( 5, 0 ) ),
		Text Box( Char( Length( NumberOfRows ) ) ),
		Text Box( " Columns Were Deleted" )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Oct 2018 22:27:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Flag-rows-in-a-dataset/m-p/77969#M36317</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-10-04T22:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Flag rows in a dataset</title>
      <link>https://community.jmp.com/t5/Discussions/Flag-rows-in-a-dataset/m-p/77970#M36318</link>
      <description>Thank you for your reply.&lt;BR /&gt;&lt;BR /&gt;But for some reason when I try to run your code I get this error:&lt;BR /&gt;&lt;BR /&gt;argument should be character in access or evaluation of 'Length' , Bad Argument( 1 ), Length/*###*/(NumberOfRows)&lt;BR /&gt;&lt;BR /&gt;In the following script, error marked by /*###*/&lt;BR /&gt;Names Default To Here( 1 );&lt;BR /&gt;dt = Current Data Table();&lt;BR /&gt;dt &amp;lt;&amp;lt; Select Rows Where( :Count &amp;lt;= 40 );&lt;BR /&gt;NumberOfRows = N Rows( dt &amp;lt;&amp;lt; get selected rows );&lt;BR /&gt;New Window( "Message",&lt;BR /&gt;modal,&lt;BR /&gt;H List Box(&lt;BR /&gt;Spacer Box( size( 5, 0 ) ),&lt;BR /&gt;Text Box( Char( Length/*###*/(NumberOfRows) ) ),&lt;BR /&gt;Text Box( " Columns Were Deleted" )&lt;BR /&gt;)&lt;BR /&gt;);</description>
      <pubDate>Thu, 04 Oct 2018 22:31:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Flag-rows-in-a-dataset/m-p/77970#M36318</guid>
      <dc:creator>rshehadah</dc:creator>
      <dc:date>2018-10-04T22:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Flag rows in a dataset</title>
      <link>https://community.jmp.com/t5/Discussions/Flag-rows-in-a-dataset/m-p/77979#M36319</link>
      <description>Got it to run, however it does not get the correct number of rows that have count &amp;lt;= 40</description>
      <pubDate>Thu, 04 Oct 2018 22:36:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Flag-rows-in-a-dataset/m-p/77979#M36319</guid>
      <dc:creator>rshehadah</dc:creator>
      <dc:date>2018-10-04T22:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Flag rows in a dataset</title>
      <link>https://community.jmp.com/t5/Discussions/Flag-rows-in-a-dataset/m-p/77980#M36320</link>
      <description>&lt;P&gt;got it. in the code remove Rows from the Select Rows Where&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 22:42:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Flag-rows-in-a-dataset/m-p/77980#M36320</guid>
      <dc:creator>rshehadah</dc:creator>
      <dc:date>2018-10-04T22:42:50Z</dc:date>
    </item>
  </channel>
</rss>

