cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
Josee
Level III

Saving Summary Table as HTML and Picture

I am trying to save the summary table as an HTML and a picture but both scripts do not work. How can I get it to work?

jrnl<<save HTML and jrnl<<save picture do not save as I need it to. Any help will be much appreciated.

 

 

Example:

 

dt = Open( "$SAMPLE_DATA/big class.jmp" );
dt1=dt<< Summary(
Group(:sex),
Mean( :height )
);
dt1<< sort( by( :Name("Mean(height)")),Order(Descending), Replace Table );

jrnl=dt1<<journal;

jrnl<<Save HTML ("path/Summary.html");

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Saving Summary Table as HTML and Picture

With JMP 12, the simple assigning of a variable to the journal does not work, you will have to use a 

     xxx = Current Journal;

to get the correct pointer to the journal.

See below

//:*/
dt = Open( "$SAMPLE_DATA/big class.jmp" );
dt1=dt<< Summary(
Group(:sex),
Mean( :height )
);
dt1<< sort( by( :Name("Mean(height)")),Order(Descending), Replace Table );
jrnl=dt1<<journal;
zippy=current journal();
zippy<<Save HTML ("C:\Users\joseebon\desktop\Summary.html");
Jim

View solution in original post

8 REPLIES 8
txnelson
Super User

Re: Saving Summary Table as HTML and Picture

I suspect that 

     "path/Summary.html"

does not point to an actual location.  That is, do you have a folder named "path" as a folder at the top of your OS system.

I suspect that is if you change "path" to an actual writable folder on your hard drive you will not have an issue.

I made that change and the Save HTML worked just find. 

Jim
Josee
Level III

Re: Saving Summary Table as HTML and Picture

yes I do direct it to a writable path. for example this is what I am trying to do and it is stilll not wanting to save on my desktop.

 

dt = Open( "$SAMPLE_DATA/big class.jmp" );
dt1=dt<< Summary(
Group(:sex),
Mean( :height )
);
dt1<< sort( by( :Name("Mean(height)")),Order(Descending), Replace Table );

jrnl=dt1<<journal;

jrnl<<Save HTML ("C:\Users\joseebon\Desktop\Summary.html");

txnelson
Super User

Re: Saving Summary Table as HTML and Picture

What is the error message in your Log?

Jim
Josee
Level III

Re: Saving Summary Table as HTML and Picture

There are no errors on the log. This is what is showing up.

 

/*:
//:*/
dt = Open( "$SAMPLE_DATA/big class.jmp" );
dt1=dt<< Summary(
Group(:sex),
Mean( :height )
);
dt1<< sort( by( :Name("Mean(height)")),Order(Descending), Replace Table );

jrnl=dt1<<journal;

jrnl<<Save HTML ("C:\Users\joseebon\Desktop\Summary.html");
/*:

Scriptable[]

txnelson
Super User

Re: Saving Summary Table as HTML and Picture

Are you running JMP 14?

Jim
Josee
Level III

Re: Saving Summary Table as HTML and Picture

No I am running on JMP Pro 12.

txnelson
Super User

Re: Saving Summary Table as HTML and Picture

With JMP 12, the simple assigning of a variable to the journal does not work, you will have to use a 

     xxx = Current Journal;

to get the correct pointer to the journal.

See below

//:*/
dt = Open( "$SAMPLE_DATA/big class.jmp" );
dt1=dt<< Summary(
Group(:sex),
Mean( :height )
);
dt1<< sort( by( :Name("Mean(height)")),Order(Descending), Replace Table );
jrnl=dt1<<journal;
zippy=current journal();
zippy<<Save HTML ("C:\Users\joseebon\desktop\Summary.html");
Jim
Josee
Level III

Re: Saving Summary Table as HTML and Picture

It works perfect. Thank you.