cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

Discussions

Solve problems, and share tips and tricks with other JMP users.
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".

Recommended Articles