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
hogi
Level XIII

Journal: JSL block

How can I add a Block with JSL code (like in a JMP notebook) to a Journal ?

hogi_0-1768058257139.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Journal: JSL block

This should do it for you

names default to here(1);

jr=new window("the journal",<<journal);
Names Default To Here( 1 );

nb = Notebook();
block = nb <<
Add New Block(
	"JSL"
);

theWindows = ( Get Window List() << Get Window Title() );

jr << append(window(thewindows[nitems(thewindows)]));

window(thewindows[nitems(thewindows)])<<close window;
Jim

View solution in original post

3 REPLIES 3
txnelson
Super User

Re: Journal: JSL block

This should do it for you

names default to here(1);

jr=new window("the journal",<<journal);
Names Default To Here( 1 );

nb = Notebook();
block = nb <<
Add New Block(
	"JSL"
);

theWindows = ( Get Window List() << Get Window Title() );

jr << append(window(thewindows[nitems(thewindows)]));

window(thewindows[nitems(thewindows)])<<close window;
Jim
hogi
Level XIII

Re: Journal: JSL block

Ah, thanks!
One has to paste the hole "Window", not just the JSL "Code Block" ?!

 

The Buttons are missing in the Journal.
This is ok, one can still run the code via right click.

hogi_0-1768067043221.png

hogi
Level XIII

Re: Journal: JSL block

Hm, at the moment, I just need it for JSL code. ->  I will use a standard Script Box ...

(view in My Videos)

Recommended Articles