Combine 3 journals into 1 journalHi,
I would like to combine 3 journals file into 1, and save the final journal in PDF format.
Journal_1 = Journal:G_Si_Wafer_Table
Journal_2 = Journal:G_Si_Wafer_Mapping
Journal_3 = Journal:G_Si_Wafer_Reject_Pareto
How to combine 3 Journals into 1, how to save as PDF, and how to close all 3 journals after save a PDF.
Re: Combine 3 journals into 1 journalHere is an annotated script that should help you understand the issue
Names Default To Here( 1 );
// Open sample data
dt = Open( "$SAMPLE_DATA/big class.jmp" );
// Create 2 journal windows, naming them what appears to be "Journal_1"
// and "Journal_2"
// Also assign the JSL variables j1 and j2 to the journals
j1 = New Window( "Journal_1", <<JOURNAL></JOURNAL>
Re: Combine 3 journals into 1 journalI have 3 individual journals and named as Journal_1, Journal_2, & Journal_3 respectively. Each journal has Bar chart, pie char...etc.
Re: Combine 3 journals into 1 journalYou have quotes around "journal_1". In my script, I am assuming that Journal_1 was a JSL variable pointing to the journal. Is this not the case?
Re: Combine 3 journals into 1 journalHi,
I don't know why the all 3 journals still does not append to the final journal. This is the error from log.
Not a display in access or evaluation of 'append' , append( "Journal_1" ) /*###*/
In the following script, error marked by /*###*/
nw = New Window( "final", <nw << append( "Journal_1" ) /*###*/;
nw << append( "Journal_2" );
nw << append( "Journal_3" );
nw << Save PDF( "$TEMP/example.pdf" );
Open( "$TEMP/example.pdf" );
Re: Combine 3 journals into 1 journalTo accomplish what you are looking for, is to simply Append() the journals together. The example below creates a new journal window, appends the 3 journals together, and then saves it as a PDF.
<FONT style="background-color: #ffffff;">nw=new window("final",<<JOURNAL></JOURNAL><BR /></FONT>nw<<APPEND></APPEND>
Documentation on working with journals is covered in the Scripting Guide
Help==>Books==>Scripting Guide