<?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 Deleting &amp;quot;Where&amp;quot; text box with JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Deleting-quot-Where-quot-text-box-with-JSL/m-p/247399#M48556</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;While running script with "where" function, a text box is added to report.&lt;/P&gt;&lt;P&gt;What is the way to delete it?&lt;/P&gt;&lt;P&gt;Is there some way to "not create" it instead of delete it? Because if I run Data Filter changes, the text box may come back.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tom.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );&lt;BR /&gt;dt &amp;lt;&amp;lt; Distribution(Continuous Distribution(Column( :height )),Where( :sex == "F" ));&lt;/P&gt;</description>
    <pubDate>Thu, 13 Feb 2020 11:02:46 GMT</pubDate>
    <dc:creator>tom_abramov</dc:creator>
    <dc:date>2020-02-13T11:02:46Z</dc:date>
    <item>
      <title>Deleting "Where" text box with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Deleting-quot-Where-quot-text-box-with-JSL/m-p/247399#M48556</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;While running script with "where" function, a text box is added to report.&lt;/P&gt;&lt;P&gt;What is the way to delete it?&lt;/P&gt;&lt;P&gt;Is there some way to "not create" it instead of delete it? Because if I run Data Filter changes, the text box may come back.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tom.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );&lt;BR /&gt;dt &amp;lt;&amp;lt; Distribution(Continuous Distribution(Column( :height )),Where( :sex == "F" ));&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 11:02:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Deleting-quot-Where-quot-text-box-with-JSL/m-p/247399#M48556</guid>
      <dc:creator>tom_abramov</dc:creator>
      <dc:date>2020-02-13T11:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting "Where" text box with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Deleting-quot-Where-quot-text-box-with-JSL/m-p/247416#M48560</link>
      <description>&lt;P&gt;Yes, if you save a reference to the platform:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dist = dt &amp;lt;&amp;lt; Distribution( Continuous Distribution( Column( :height ) ), Where( :sex == "F" ) );

dist rep = dist &amp;lt;&amp;lt; Report;

dist rep[Text Box( 1 )] &amp;lt;&amp;lt; Delete;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I am not sure about the proper index, but you get the idea.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm curious: since this script is yours, why include the Where() argument to the launch if you con't want it? The Data Filter and Local Data Filter ds not add this text box to the report display tree.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 12:21:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Deleting-quot-Where-quot-text-box-with-JSL/m-p/247416#M48560</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2020-02-13T12:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting "Where" text box with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Deleting-quot-Where-quot-text-box-with-JSL/m-p/247430#M48566</link>
      <description>&lt;P&gt;The direction that&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt; pointed you is correct.&amp;nbsp; However there is one tricky issue that needs to be exposed to get what you want properly handled. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; Where( :Sex == "F" ) &amp;nbsp; &amp;nbsp; &amp;nbsp; text box is not below&amp;nbsp; the Dist Report structure.&amp;nbsp; Therefore,&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dist rep = dist &amp;lt;&amp;lt; Report;
dist rep(TextBox(1) &amp;lt;&amp;lt; delete;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;will not point to &amp;nbsp; &amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Where( :Sex == "F" ) &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One needs to move to the &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;FONT style="background-color: #ffffff;"&gt;DisplayBox[HeadBox] &amp;nbsp; &amp;nbsp; which sits above the Report structure in the Display Tree to be able to access TextBox(1).&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="background-color: #ffffff;"&gt;Below is the syntax of the JSL to accomplish what is needed&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dist = dt &amp;lt;&amp;lt; Distribution( Continuous Distribution( Column( :height ) ), Where( :sex == "F" ) );
dist rep = dist &amp;lt;&amp;lt; Report;

(dist rep&amp;lt;&amp;lt;topparent)[textbox(1)]&amp;lt;&amp;lt;delete;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Another way to access &amp;nbsp; &amp;nbsp; &amp;nbsp; Where( :sex == "F" ) &amp;nbsp; &amp;nbsp; &amp;nbsp; is to access it from the actual window reference&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;window("Big Class Where(sex == -F-) - Distribution")[textbox(1)]&amp;lt;&amp;lt;delete;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Feb 2020 14:43:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Deleting-quot-Where-quot-text-box-with-JSL/m-p/247430#M48566</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-02-13T14:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting "Where" text box with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Deleting-quot-Where-quot-text-box-with-JSL/m-p/247435#M48567</link>
      <description>&lt;P&gt;The script from&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt; works for me in JMP 14 and JMP 15 and the text does not come back on a data filter change.&amp;nbsp; I would suggest one change, however.&amp;nbsp; Whenever possible, avoid deleting things from a JMP-created report and opt to hide them instead:&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");
dist = dt &amp;lt;&amp;lt; Distribution( Continuous Distribution( Column( :height ) ), Where( :sex == "F" ) );
dist rep = dist &amp;lt;&amp;lt; Report;

(dist rep&amp;lt;&amp;lt;topparent)[textbox(1)]&amp;lt;&amp;lt;visibility("collapse");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;JMP platforms might make assumptions about the structure of the report when options are changed and content needs to be added or removed from the report.&amp;nbsp; JMP 15 is more tolerant of content being removed, but in JMP 14 and earlier deleting the content could result in instability.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 14:41:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Deleting-quot-Where-quot-text-box-with-JSL/m-p/247435#M48567</guid>
      <dc:creator>danschikore</dc:creator>
      <dc:date>2020-02-13T14:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting "Where" text box with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Deleting-quot-Where-quot-text-box-with-JSL/m-p/247452#M48571</link>
      <description>Thanks Mark,&lt;BR /&gt;I do want "where" in the Distribution, but I dont want the text box to appear.</description>
      <pubDate>Thu, 13 Feb 2020 18:53:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Deleting-quot-Where-quot-text-box-with-JSL/m-p/247452#M48571</guid>
      <dc:creator>tom_abramov</dc:creator>
      <dc:date>2020-02-13T18:53:38Z</dc:date>
    </item>
  </channel>
</rss>

