Choose Language Hide Translation Bar
Highlighted
hans_deroos
Level II

Switching between journals

//This question was asked earier but don't see an answer

 

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dist = dt << Distribution( Y( :height ), CDF Plot( 1 ));

J1=new window("Journal1",<<Journal);
Rep1=Report( dist )["CDF Plot"];
Rep1<<Journal();


J2=new window("Journal2",<<Journal);
Rep2=Report( dist);
Rep2<<Journal();

J1<<append(text box(" To Journal 1 "));
Rep1=Report( dist )["CDF Plot"];
Rep1<<Journal();   // I want this report added to journal1
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Switching between journals

Rep1 << Journal() sends its object to the current journal, so can be hard to control.

 

You can append to a specific journal, though. Instead of your last line:

Rep1<<Journal();   // I want this report added to journal1

try this instead:

J1 << Append(Rep1)

If you append to a specific journal, then you can control which one you're adding reports to.

 

HTH,

Melanie

 

View solution in original post

2 REPLIES 2
Highlighted

Re: Switching between journals

Rep1 << Journal() sends its object to the current journal, so can be hard to control.

 

You can append to a specific journal, though. Instead of your last line:

Rep1<<Journal();   // I want this report added to journal1

try this instead:

J1 << Append(Rep1)

If you append to a specific journal, then you can control which one you're adding reports to.

 

HTH,

Melanie

 

View solution in original post

Highlighted
hans_deroos
Level II

Re: Switching between journals

Hi Melanie

Makes absolute sense.

 

Thanks for the fast response

Article Labels

    There are no labels assigned to this post.