BookmarkSubscribe
Choose Language Hide Translation Bar
Leo_Huang
Community Trekker

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");

 

0 Kudos
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
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".