cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
See how to use to use Text Explorer to glean valuable information from text data at April 25 webinar.
Choose Language Hide Translation Bar
View Original Published Thread

How to Journal platforms in a new window?

AD1
AD1
Level III

Hi,

 

I have a simple question that I cannot figure out.

I have created a simple UI with different ui elements and contain

various platforms (distributions, etc.). I know that to make these static,

I need to journal them. All plots are embedded in the new window

within different outline, V Line and H line boxes and use different

filters from the same data table. The new window resides in a 

jsl script file and I make it executable with "//!". So there is no report

or journal in the beginning.

Rough code structure :

nw = New Window(
V Line Box(),
H Line Box();
Outline Box();

// Has an attached function that creates a plot inside the above outline box.
Button Box();
);

 

I want to know how can I journal them without moving them out in a new window?

I would like to keep the plot where it is and make it static but I want the rest of the 

window that contains buttons and combo boxes etc. to stay responsive.

 

Thanks for your inputs and possible solutions! 

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User


Re: How to Journal platforms in a new window?

Here is a simple example of replacing an active plot with a static picture of the plot, without changing anything else in the window

names default to here(1);
dt=open("$SAMPLE_DATA/big class.jmp");

// Create a Display Window with a button box
nw=New window("Example",
	V List Box(
		Button Box("Push Me",
			dt << Bivariate(x(:weight), y(:Height))
		),
		bb=border box(top(10,bottom(10),left(10),right(10),sides(15)))
	)
);

// Add in a Platform Display
bb << append( ow=dt<<Oneway(
	Y( :height ),
	X( :age ),
	Means and Std Dev( 1 ),
	Box Plots( 1 ),
	Mean Error Bars( 1 ),
	Std Dev Lines( 1 )
));

// Add in a new copy of the graph, but as a static picture
report(ow)[OutlineBox(1)]<<
prepend((report(ow)[PictureBox(1)])<<get picture);

// Delete the old active graph
report(ow)[PictureBox(1)]<<delete;
Jim

View solution in original post

2 REPLIES 2
txnelson
Super User


Re: How to Journal platforms in a new window?

Here is a simple example of replacing an active plot with a static picture of the plot, without changing anything else in the window

names default to here(1);
dt=open("$SAMPLE_DATA/big class.jmp");

// Create a Display Window with a button box
nw=New window("Example",
	V List Box(
		Button Box("Push Me",
			dt << Bivariate(x(:weight), y(:Height))
		),
		bb=border box(top(10,bottom(10),left(10),right(10),sides(15)))
	)
);

// Add in a Platform Display
bb << append( ow=dt<<Oneway(
	Y( :height ),
	X( :age ),
	Means and Std Dev( 1 ),
	Box Plots( 1 ),
	Mean Error Bars( 1 ),
	Std Dev Lines( 1 )
));

// Add in a new copy of the graph, but as a static picture
report(ow)[OutlineBox(1)]<<
prepend((report(ow)[PictureBox(1)])<<get picture);

// Delete the old active graph
report(ow)[PictureBox(1)]<<delete;
Jim
AD1
AD1
Level III


Re: How to Journal platforms in a new window?

Great! Thanks for a swift reply. This works!