<?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: Need help. Got some error during create interactive HTML file in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Need-help-Got-some-error-during-create-interactive-HTML-file/m-p/562348#M77536</link>
    <description>&lt;P&gt;Thank you so much &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&lt;/P&gt;&lt;P&gt;It work fine after I did as you suggested.&lt;/P&gt;&lt;P&gt;;)&lt;/img&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 31 Oct 2022 02:20:08 GMT</pubDate>
    <dc:creator>cpbatman</dc:creator>
    <dc:date>2022-10-31T02:20:08Z</dc:date>
    <item>
      <title>Need help. Got some error during create interactive HTML file</title>
      <link>https://community.jmp.com/t5/Discussions/Need-help-Got-some-error-during-create-interactive-HTML-file/m-p/561547#M77463</link>
      <description>&lt;P&gt;I'm writing script to make file HTML (interactive) by adding data&amp;nbsp;filter feature into graphs but I got some error on the these following code during the calling function&amp;nbsp;save Interactive HTML()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for helping on this.&lt;/P&gt;&lt;P&gt;The error message is below attached picture.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-10-28 11_24_49-Scripting Index - JMP.jpg" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/46670i5CFC87E7F8F0F1F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2022-10-28 11_24_49-Scripting Index - JMP.jpg" alt="2022-10-28 11_24_49-Scripting Index - JMP.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-10-28 11_24_12-Shared Local Filter Batman - JMP.jpg" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/46671i9B16A86ADC201346/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2022-10-28 11_24_12-Shared Local Filter Batman - JMP.jpg" alt="2022-10-28 11_24_12-Shared Local Filter Batman - JMP.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "C:\myJSL\BigClass.csv");
app=New Window( "Shared Local Filter Batman",
	Data Filter Context Box(
		H List Box(
			Current Data Table() &amp;lt;&amp;lt;
			Data Filter( Local ),
			Platform(
				Current Data Table(),
					Bivariate( Y( :height ), X( :weight ) )
			),
			Platform(
				Current Data Table(),
				Distribution(
					Continuous Distribution(
					Column( :height ),
					Horizontal Layout( 1 ),
					Vertical( 0 )
			)
			)
			)
		)
	)
);

box = app &amp;lt;&amp;lt; Run;
Show Properties( box );
Show( box );
/*create HTML */
(box &amp;lt;&amp;lt; get windows)[app] &amp;lt;&amp;lt; save Interactive HTML( "C:\myJSL\myiHTML.htm" );

/* Open HTML file in Chrome */
Web( "file:///C:/myJSL/myiHTML.htm", Chrome);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:01:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-help-Got-some-error-during-create-interactive-HTML-file/m-p/561547#M77463</guid>
      <dc:creator>cpbatman</dc:creator>
      <dc:date>2023-06-09T16:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need help. Got some error during create interactive HTML file</title>
      <link>https://community.jmp.com/t5/Discussions/Need-help-Got-some-error-during-create-interactive-HTML-file/m-p/561586#M77464</link>
      <description>&lt;P&gt;I'm using JMP16.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I made slight modifications to your script. box variable isn't needed when New Window is being used like this (not sure when it would be needed, application/dashboard?) and you can just save the app (new window) as interactive html.&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");
app = New Window("Shared Local Filter Batman",
	Data Filter Context Box(
		H List Box(
			Current Data Table() &amp;lt;&amp;lt; Data Filter(Local),
			Platform(Current Data Table(), Bivariate(Y(:height), X(:weight))),
			Platform(
				Current Data Table(),
				Distribution(Continuous Distribution(Column(:height), Horizontal Layout(1), Vertical(0)))
			)
		)
	)
);

// box = app &amp;lt;&amp;lt; Run; 
// Show Properties(box);
// Show(box);
/*create HTML */
app &amp;lt;&amp;lt; save Interactive HTML("$DOWNLOADS\myiHTML.html");

Web("$DOWNLOADS\myiHTML.html"); // open with default browser&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 06:29:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-help-Got-some-error-during-create-interactive-HTML-file/m-p/561586#M77464</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-10-28T06:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Need help. Got some error during create interactive HTML file</title>
      <link>https://community.jmp.com/t5/Discussions/Need-help-Got-some-error-during-create-interactive-HTML-file/m-p/561819#M77492</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/45108"&gt;@cpbatman&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I couldn't help noticing that the local data filter in your script doesn't define a column to filter.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also noticed that you have the include mode enabled in the local data filter.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The local data filter will not work in Interactive HTML unless a filter column is added before saving and the include mode is disabled.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is some local data filter script code that will disable the include mode and filter on the age column:&lt;/P&gt;
&lt;PRE&gt;Data Filter(Local, &lt;BR /&gt;    Mode( Include( 0 ) ),&lt;BR /&gt;    Add Filter( columns( :age ), Display( :age, N Items( 6 ) ) )
)&lt;/PRE&gt;
&lt;P&gt;If you combine this with Jarmo's solution, your filter should work in JMP and in Interactive HTML.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please note that the behavior with Include mode disabled will be different than when it is enabled, since the filter will only be showing/hiding rows. All rows will always be included. While the points in the bivariate plot and the outliers in the boxplot will respond to the Show mode of the local data filter, the histogram and box plot will not.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that when publishing to JMP Live or JMP Public, which also use Interactive HTML, the include mode does not need to be disabled.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope you find this useful.&lt;/P&gt;
&lt;P&gt;~John&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 14:46:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-help-Got-some-error-during-create-interactive-HTML-file/m-p/561819#M77492</guid>
      <dc:creator>John_Powell_JMP</dc:creator>
      <dc:date>2022-10-28T14:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need help. Got some error during create interactive HTML file</title>
      <link>https://community.jmp.com/t5/Discussions/Need-help-Got-some-error-during-create-interactive-HTML-file/m-p/562348#M77536</link>
      <description>&lt;P&gt;Thank you so much &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&lt;/P&gt;&lt;P&gt;It work fine after I did as you suggested.&lt;/P&gt;&lt;P&gt;;)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 02:20:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-help-Got-some-error-during-create-interactive-HTML-file/m-p/562348#M77536</guid>
      <dc:creator>cpbatman</dc:creator>
      <dc:date>2022-10-31T02:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need help. Got some error during create interactive HTML file</title>
      <link>https://community.jmp.com/t5/Discussions/Need-help-Got-some-error-during-create-interactive-HTML-file/m-p/562357#M77538</link>
      <description>&lt;P&gt;Hi John,&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2557"&gt;@John_Powell_JMP&lt;/a&gt;&amp;nbsp; &amp;nbsp; thank you so much that you forecast my next issue that I'm going to see it.&lt;/P&gt;&lt;P&gt;Now I got the problem that you told me hahha ^^"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, I try to added the code that you suggested (at comment zone &lt;EM&gt;added code to handle data filter&lt;/EM&gt;), but I got some error as the attached picture. Could you please kindly help. Sorry for my interrupted, I quite new for JSL.&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("C:\myJSL\BigClass.csv");
app = New Window("Shared Local Filter Batman",
		
		Data Filter Context Box( 
		
&lt;FONT color="#FF0000"&gt;		/** added code to handle data filter **/
		Local, 
		Mode( Include( 0 ) ),
		Add Filter( columns( :height ), Display( :height, N Items( 6 ) ) );
		/** end of added code **/&lt;/FONT&gt;
		
		H List Box(
			Current Data Table() &amp;lt;&amp;lt; Data Filter(Local),
			Platform(Current Data Table(), Bivariate(Y(:height), X(:weight))),
			Platform(
				Current Data Table(),
				Distribution(Continuous Distribution(Column(:height), Horizontal Layout(1), Vertical(0)))
			)
		),
		
		H List Box(
			Current Data Table() &amp;lt;&amp;lt; Data Filter(Local),
			Platform(Current Data Table(), Bivariate(Y(:height), X(:weight))),
			Platform(
				Current Data Table(),
				Distribution(Continuous Distribution(Column(:height), Horizontal Layout(1), Vertical(0)))
			)
		)
		
	)
	
);

app &amp;lt;&amp;lt; save Interactive HTML("C:\myJSL\myiHTML.htm");

Web("file:///C:/myJSL/myiHTML.htm", Chrome); // open with default browser&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here is my error message.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-10-31 09_22_24-Scripting Index - JMP.jpg" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/46739i16A949843731674F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2022-10-31 09_22_24-Scripting Index - JMP.jpg" alt="2022-10-31 09_22_24-Scripting Index - JMP.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 03:09:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-help-Got-some-error-during-create-interactive-HTML-file/m-p/562357#M77538</guid>
      <dc:creator>cpbatman</dc:creator>
      <dc:date>2022-10-31T03:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need help. Got some error during create interactive HTML file</title>
      <link>https://community.jmp.com/t5/Discussions/Need-help-Got-some-error-during-create-interactive-HTML-file/m-p/562458#M77544</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/45108"&gt;@cpbatman&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You added the Mode and Add Filter lines to the Data Filter Context Box function rather than the Data Filter function. You also added an extra H List Box that duplicates the first.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's how it should look with some minor file name changes to make it work on my computer :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
/* using sample data table */
dt = Open("$SAMPLE_DATA/Big Class.jmp"); // C:\myJSL\BigClass.csv");
app = New Window("Shared Local Filter Batman",
		
	Data Filter Context Box( 
		
		H List Box(
			Current Data Table() &amp;lt;&amp;lt; Data Filter(Local,
				/** added code to handle data filter **/
				Mode( Include( 0 ) ),
				Add Filter( columns( :height ), Display( :height, N Items( 6 ) ) )
				/** end of added code **/
			),
			Platform(Current Data Table(), Bivariate(Y(:height), X(:weight))),
			Platform(
				Current Data Table(),
				Distribution(Continuous Distribution(Column(:height), Horizontal Layout(1), Vertical(0)))
			)
		)
		
		/** removed duplicate H List Box code **
		,
		
		H List Box(
			Current Data Table() &amp;lt;&amp;lt; Data Filter(Local),
			Platform(Current Data Table(), Bivariate(Y(:height), X(:weight))),
			Platform(
				Current Data Table(),
				Distribution(Continuous Distribution(Column(:height), Horizontal Layout(1), Vertical(0)))
			)
		)
		** end of removed code **/
	)
	
);

/* exported file location changed */ 
app &amp;lt;&amp;lt; save Interactive HTML("$DOWNLOADS\myiHTML.htm");
Web("$DOWNLOADS/myiHTML.htm", Chrome); // open with default browser&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Since you are new at JSL scripting, here are a couple of tips that should help:&lt;/P&gt;
&lt;P&gt;1. Right click in the JSL editor and select 'Show line numbers' to help find the lines mentioned in the embedded log(below script).&lt;/P&gt;
&lt;P&gt;2. To find out what parameters you can pass to a function, hover over the function name and a tip should show them. To get more information on the function, right click on the function and select&amp;nbsp; 'Help Scripting Index'.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;~John&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 13:14:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-help-Got-some-error-during-create-interactive-HTML-file/m-p/562458#M77544</guid>
      <dc:creator>John_Powell_JMP</dc:creator>
      <dc:date>2022-10-31T13:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Need help. Got some error during create interactive HTML file</title>
      <link>https://community.jmp.com/t5/Discussions/Need-help-Got-some-error-during-create-interactive-HTML-file/m-p/562700#M77575</link>
      <description>&lt;P&gt;Hi John,&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2557"&gt;@John_Powell_JMP&lt;/a&gt;&amp;nbsp; &amp;nbsp;Thanks a lot for help to figure out what I am wrong in my code. Now it work fine! and so I can tweak the code suitable for my real tasks for the next step.&lt;/P&gt;&lt;P&gt;Anyway, also thanks for advice a couple of tips that I should follow.&lt;/P&gt;&lt;P&gt;:)&lt;/img&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 03:27:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-help-Got-some-error-during-create-interactive-HTML-file/m-p/562700#M77575</guid>
      <dc:creator>cpbatman</dc:creator>
      <dc:date>2022-11-01T03:27:05Z</dc:date>
    </item>
  </channel>
</rss>

