BookmarkSubscribeRSS Feed
Choose Language Hide Translation Bar
Josee

Not applicable

Joined:

Oct 10, 2018

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
Highlighted
txnelson

Super User

Joined:

Jun 22, 2012

Solution

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
8 REPLIES 8
txnelson

Super User

Joined:

Jun 22, 2012

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

Not applicable

Joined:

Oct 10, 2018

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

Joined:

Jun 22, 2012

Re: Saving Summary Table as HTML and Picture

What is the error message in your Log?

Jim
Josee

Not applicable

Joined:

Oct 10, 2018

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

Joined:

Jun 22, 2012

Re: Saving Summary Table as HTML and Picture

Are you running JMP 14?

Jim
Josee

Not applicable

Joined:

Oct 10, 2018

Re: Saving Summary Table as HTML and Picture

No I am running on JMP Pro 12.

Highlighted
txnelson

Super User

Joined:

Jun 22, 2012

Solution

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

Not applicable

Joined:

Oct 10, 2018

Re: Saving Summary Table as HTML and Picture

It works perfect. Thank you.