JMP17 interactive html working with Save As but can;t re-create in code onlyHello,
I have successfully made an interactive html report when doing the File -> SaveAs method, however, I'm having issues getting the interactive html to show the data filters when saving in jsl code. Can someone take a look and see if I'm missing something obvious here?
Here is the code I'm using:
JMP17
v2 = dtconcat << Graph Builder(
Size( 951, 734 ),
Show Control Panel( 0 ),
Variables(
X( :TIME ),
Y( :Something ),
Overlay( :label )
),
Elements( Points( X, Y, Legend( 11 ) ), Smoother( X, Y, Legend( 12 ) ) ),
Local Data Filter(
Show Modes( 1 ),
Count Excluded Rows( 0 ),
Mode( Include( 0 ) ),
Add Filter(
columns( :label, :"otherlabel"n ),
Display( :label, N Items( 15 ), Find( Set Text( "" ) ) ),
Display( :"otherlabel"n, N Items( 5 ) )
)
)
);
v2 << save interactive html("path\path1\path2\test.html");
WindowsRe: JMP17 interactive html working with Save As but can;t re-create in code onlyYou might have to wrap it to new window first or take higher level reference to capture also filter
Names Default To Here(1);
dt = open("$SAMPLE_DATA/Big Class.jmp");
nw = New Window("Graph Builder",
gb = dt << Graph Builder(
Size(525, 454),
Show Control Panel(0),
Variables(X(:weight), Y(:height), Overlay(:sex)),
Elements(Points(X, Y, Legend(9)), Line Of Fit(X, Y, Legend(11))),
Local Data Filter(
Show Modes(1),
Mode(Include(0)),
Add Filter(columns(:age), Display(:age, N Items(6)))
)
)
);
nw << Save Interactive HTML("$TEMP/test.html");
nw << Close Window;
Web("$TEMP/test.html");

With higher (or rather highest in this case) level reference
Names Default To Here(1);
dt = open("$SAMPLE_DATA/Big Class.jmp");
gb = dt << Graph Builder(
Size(525, 454),
Show Control Panel(0),
Variables(X(:weight), Y(:height), Overlay(:sex)),
Elements(Points(X, Y, Legend(9)), Line Of Fit(X, Y, Legend(11))),
Local Data Filter(
Show Modes(1),
Mode(Include(0)),
Add Filter(columns(:age), Display(:age, N Items(6)))
)
);
topref = (gb << top parent);
topref << Save Interactive HTML("$TEMP/test.html");
Web("$TEMP/test.html");Re: JMP17 interactive html working with Save As but can;t re-create in code onlyThanks Jarmo! I also found this previous post which captures your idea. It works now!
Solved: Missing Local Data Filter in "Save Interactive HTML()" Script - JMP User Community