<?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: Missing Local Filter in &amp;quot;Save Interactive HTML()&amp;quot; Script in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Missing-Local-Data-Filter-in-quot-Save-Interactive-HTML-quot/m-p/58168#M32293</link>
    <description>&lt;P&gt;You need to Save the Graph Builder Top Report to capture the local filter.&lt;/P&gt;
&lt;P&gt;Try this example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);

dt = Open( "$Sample_Data/Big Class.jmp");
dt &amp;lt;&amp;lt; New Column("Seq", numeric, &amp;lt;&amp;lt;set each value( row()) );
gb = dt &amp;lt;&amp;lt; Graph Builder(
 Size( 528, 454 ),
 Show Control Panel( 0 ),
 Variables( X( :Seq ), Y( :height ) ),
 Elements(
 Points( X, Y, Legend( 3 ) ),
 Smoother( X, Y, Legend( 4 ) ),
 Line( X, Y, Legend( 5 ) )
 ),
 SendToReport(
 Dispatch(
 {},
 "400",
 ScaleBox,
 {Legend Model(
 4,
 Properties( 0, {Line Color( -13977687 )}, Item ID( "Smooth", 1 ) )
 ), Legend Model(
 5,
 Properties( 0, {Line Color( -3780931 )}, Item ID( "height", 1 ) )
 )}
 )
 )
);

//--- Add a Local Data Filter with Default Options ----
gb &amp;lt;&amp;lt; Local Data Filter(
 Mode( Show( 1 ), Include(1) ), 
 Add Filter( columns( :height ), Where( :height &amp;gt;= 53 &amp;amp; :height &amp;lt;= 70 ) )
 );

gb &amp;lt;&amp;lt; Bring Window to Front;
Wait(0);
/* This next block of code demonstrates how to reference a JMP platform with 
 an associated Data Filter.
*/ 

//--- Get the container of the platform. ---
tr = gb &amp;lt;&amp;lt; Top Report; 

tr &amp;lt;&amp;lt; Save Interactive HTML("c:\temp\BCexample.html");  &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Aug 2018 15:30:41 GMT</pubDate>
    <dc:creator>gzmorgan0</dc:creator>
    <dc:date>2018-08-13T15:30:41Z</dc:date>
    <item>
      <title>Missing Local Data Filter in "Save Interactive HTML()" Script</title>
      <link>https://community.jmp.com/t5/Discussions/Missing-Local-Data-Filter-in-quot-Save-Interactive-HTML-quot/m-p/58163#M32288</link>
      <description>&lt;P&gt;In the case of graph builder which has Local Data&amp;nbsp;Filter, there is no local data filter with below script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;obj &amp;lt;&amp;lt; Save Interactive HTML( "Test.html" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With "File &amp;gt; Publish", the html file has local data filter correctly but Save Interactive HTML() script did not. Is there any other script which generate html file with local data filter?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2018 15:21:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Missing-Local-Data-Filter-in-quot-Save-Interactive-HTML-quot/m-p/58163#M32288</guid>
      <dc:creator>Kwangki</dc:creator>
      <dc:date>2018-08-13T15:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Local Filter in "Save Interactive HTML()" Script</title>
      <link>https://community.jmp.com/t5/Discussions/Missing-Local-Data-Filter-in-quot-Save-Interactive-HTML-quot/m-p/58164#M32289</link>
      <description>&lt;P&gt;What version of JMP are you using?&amp;nbsp; Local Data filter with Interactive HTML was not available until JMP 14&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 03:22:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Missing-Local-Data-Filter-in-quot-Save-Interactive-HTML-quot/m-p/58164#M32289</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-05-25T03:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Local Filter in "Save Interactive HTML()" Script</title>
      <link>https://community.jmp.com/t5/Discussions/Missing-Local-Data-Filter-in-quot-Save-Interactive-HTML-quot/m-p/58166#M32291</link>
      <description>&lt;P&gt;I have used JMP 14. JMP 14 also did not generate Local Data Filter.&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 03:50:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Missing-Local-Data-Filter-in-quot-Save-Interactive-HTML-quot/m-p/58166#M32291</guid>
      <dc:creator>Kwangki</dc:creator>
      <dc:date>2018-05-25T03:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Local Filter in "Save Interactive HTML()" Script</title>
      <link>https://community.jmp.com/t5/Discussions/Missing-Local-Data-Filter-in-quot-Save-Interactive-HTML-quot/m-p/58168#M32293</link>
      <description>&lt;P&gt;You need to Save the Graph Builder Top Report to capture the local filter.&lt;/P&gt;
&lt;P&gt;Try this example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);

dt = Open( "$Sample_Data/Big Class.jmp");
dt &amp;lt;&amp;lt; New Column("Seq", numeric, &amp;lt;&amp;lt;set each value( row()) );
gb = dt &amp;lt;&amp;lt; Graph Builder(
 Size( 528, 454 ),
 Show Control Panel( 0 ),
 Variables( X( :Seq ), Y( :height ) ),
 Elements(
 Points( X, Y, Legend( 3 ) ),
 Smoother( X, Y, Legend( 4 ) ),
 Line( X, Y, Legend( 5 ) )
 ),
 SendToReport(
 Dispatch(
 {},
 "400",
 ScaleBox,
 {Legend Model(
 4,
 Properties( 0, {Line Color( -13977687 )}, Item ID( "Smooth", 1 ) )
 ), Legend Model(
 5,
 Properties( 0, {Line Color( -3780931 )}, Item ID( "height", 1 ) )
 )}
 )
 )
);

//--- Add a Local Data Filter with Default Options ----
gb &amp;lt;&amp;lt; Local Data Filter(
 Mode( Show( 1 ), Include(1) ), 
 Add Filter( columns( :height ), Where( :height &amp;gt;= 53 &amp;amp; :height &amp;lt;= 70 ) )
 );

gb &amp;lt;&amp;lt; Bring Window to Front;
Wait(0);
/* This next block of code demonstrates how to reference a JMP platform with 
 an associated Data Filter.
*/ 

//--- Get the container of the platform. ---
tr = gb &amp;lt;&amp;lt; Top Report; 

tr &amp;lt;&amp;lt; Save Interactive HTML("c:\temp\BCexample.html");  &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2018 15:30:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Missing-Local-Data-Filter-in-quot-Save-Interactive-HTML-quot/m-p/58168#M32293</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-08-13T15:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Local Filter in "Save Interactive HTML()" Script</title>
      <link>https://community.jmp.com/t5/Discussions/Missing-Local-Data-Filter-in-quot-Save-Interactive-HTML-quot/m-p/58170#M32295</link>
      <description>&lt;P&gt;Thank you for your good solution.&lt;/P&gt;&lt;P&gt;Though I do&amp;nbsp;not fully understand what you mean now. I could generate the correct graph builder html file and I will try to know JMP Script more and more.&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 05:08:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Missing-Local-Data-Filter-in-quot-Save-Interactive-HTML-quot/m-p/58170#M32295</guid>
      <dc:creator>Kwangki</dc:creator>
      <dc:date>2018-05-25T05:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Local Filter in "Save Interactive HTML()" Script</title>
      <link>https://community.jmp.com/t5/Discussions/Missing-Local-Data-Filter-in-quot-Save-Interactive-HTML-quot/m-p/58175#M32299</link>
      <description>&lt;P&gt;To really customize JMP results, two important skills are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;navigating and referencing JMP reports, and&lt;/LI&gt;&lt;LI&gt;JSL DisplayBox scripting/messages.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Mutiple chapters of our book&lt;STRONG&gt;*&lt;/STRONG&gt; present navigation, interactive reports, dialogs, etc. I cannot reproduce all of that here, but let me give you a critical skill for navigation, Show Tree Structure.&amp;nbsp; Right click on any disclosure icon in a JMP report, then select Edit, then select the last item, Show Tree Structure. This creates a New Window displaying the underlying structure of any report. Highlighting an item in the report highlights the corresponding DisplayBox in the tree structure window; and vice versa, highlighting something in the tree structure window highlights the corresponding display in the report window.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is not the entire story. JMP report structure allows users to add custom display boxes, so there are hidden containers.&amp;nbsp; Each window has a ListBox that contains all display boxes [that is, if the scripter doesn't mess it up ... our book shows an example of what not to do.]&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See the screen shot below that captures the report window of the graph builder and the local data filter with a window of its tree structure window where some disclosure icons are closed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note the red star in the upper left corner.&amp;nbsp; I added that. This red star marks a spot above the disclosure icon of the Data Filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Run the script I previously sent, and place your mouse at that location and press keys Ctrl+Shift+ Right Click [ I do not know the equivalents for a Mac]. A little gray button with Show Tree Stucture will appear; click on it to create the tree structure. Click on the disclosure icons for &lt;STRONG&gt;BorderBox(1)&lt;/STRONG&gt; and &lt;STRONG&gt;OutlineBox(2): Graph Builder&lt;/STRONG&gt;.&amp;nbsp; Now look at the tree structure. As mentioned above all display boxes are contained within &lt;STRONG&gt;ListBox(1)&lt;/STRONG&gt;. The key feature is that when a Local Data Filter is added to a platform like GraphBuilder or Bivariate, etc., the platform is nested within a &lt;STRONG&gt;Data Filter Context Box&lt;/STRONG&gt;. This allows JMP to filter only for this platform and no others, unless a platform is added to that Data Filter Context Box.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That might have be too many details if you are just learning JSL. The big take away is that tr = gb &amp;lt;&amp;lt; Top Report, returns a handle to ListBox(1) of that window.&amp;nbsp; And tr &amp;lt;&amp;lt; Save Interactive HTML will now capture both the local filter and Graph Builder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Read more below picture.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 684px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/10836i3DA9D10C2614F8A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I had not scripted with a Data Filter until writing up examples for our book.&amp;nbsp; So when I try something new, like adding a local data filter, I always find an area outside of my display and use the Ctrl+Shift+Right Click and click on Show Tree Structure to learn the boxes that are used. Then I look up the messages I can send to them (their methods).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can learn more about navigating and customizing a JMP report in the &lt;U&gt;&lt;STRONG&gt;JMP Scripting Guide&lt;/STRONG&gt;&lt;/U&gt; or &lt;STRONG&gt;*&lt;/STRONG&gt;&lt;U&gt;&lt;STRONG&gt;JSL Companion, Applications of the JMP Scrpting Language, 2nd edition&lt;/STRONG&gt;&lt;/U&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 08:23:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Missing-Local-Data-Filter-in-quot-Save-Interactive-HTML-quot/m-p/58175#M32299</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-05-25T08:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Local Filter in "Save Interactive HTML()" Script</title>
      <link>https://community.jmp.com/t5/Discussions/Missing-Local-Data-Filter-in-quot-Save-Interactive-HTML-quot/m-p/67700#M34678</link>
      <description>&lt;P&gt;Received the following message when attempting to use the Local Data Filter List Display within GB script,&amp;nbsp;and when attempting to script default Local Data Filter as a separate statement as described in example code&amp;nbsp;below,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Interactive HTML: Controls are not interactive.&lt;/P&gt;
&lt;P&gt;Interactive HTML: Unsupported display type: ListBoxBox&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are there consideration beyond the script below to interactively&amp;nbsp;filter JMP output via html? Also- is there a point and click process within&amp;nbsp;GB&amp;nbsp;to capture the local filter and output html?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My goal is to create a output of 30+ graphs to link or to paste into a viewable word format. The wrap functionality does not appear feasible&amp;nbsp;due to different Y-Axis mins/max across each of the graphs. Thanks- Josh&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2018 14:40:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Missing-Local-Data-Filter-in-quot-Save-Interactive-HTML-quot/m-p/67700#M34678</guid>
      <dc:creator>josh</dc:creator>
      <dc:date>2018-08-13T14:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Local Filter in "Save Interactive HTML()" Script</title>
      <link>https://community.jmp.com/t5/Discussions/Missing-Local-Data-Filter-in-quot-Save-Interactive-HTML-quot/m-p/470511#M71469</link>
      <description>&lt;P&gt;Very informative. Thank you for sharing&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 01:26:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Missing-Local-Data-Filter-in-quot-Save-Interactive-HTML-quot/m-p/470511#M71469</guid>
      <dc:creator>WebDesignesCrow</dc:creator>
      <dc:date>2022-03-17T01:26:47Z</dc:date>
    </item>
  </channel>
</rss>

