cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
Leo_Huang
Level I

saving html with multiple plot

I try to open two graph builder through scriptting.Just because I want to plot mutiple charts and save it into a html file.The following JSL script only pop up the windows with the chart,but the HTML didn't form.Could anyone help me to debug this script.Thx!! 

dt= Open( "****.xlsx" ); 
New Windows("mt report",
Graph Builder(.....);
Graph Builder(.....);
);

Rep = dt << report ; 
Rep << Save Interactive HTML("C:\Users\123\Desktop\Test.html");

 

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: saving html with multiple plot

You are mistakenly pointing to the data table handle when referencing the report output.  Report output is the result of a JMP Platform.  I suggest you place your output into a Border Box() and then save it to HTML.

 

See 

     Help==>Scripting Index

for what objects can be issued the << Save HTML message

dt= Open( "****.xlsx" ); 

New Window("mt report",
  nwBB = Border box(
	V List Box(
	Graph Builder(.....);
	Graph Builder(.....);
	)
	)
);

nwBB << Save Interactive HTML("C:\Users\123\Desktop\Test.html");

;

 

Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: saving html with multiple plot

You are mistakenly pointing to the data table handle when referencing the report output.  Report output is the result of a JMP Platform.  I suggest you place your output into a Border Box() and then save it to HTML.

 

See 

     Help==>Scripting Index

for what objects can be issued the << Save HTML message

dt= Open( "****.xlsx" ); 

New Window("mt report",
  nwBB = Border box(
	V List Box(
	Graph Builder(.....);
	Graph Builder(.....);
	)
	)
);

nwBB << Save Interactive HTML("C:\Users\123\Desktop\Test.html");

;

 

Jim

Re: saving html with multiple plot

Also, change "New Windows" to "New Window".