cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar

Inserting page breaks in journals

Hi Guys,

I am trying to save a journal report with > 1000 parameters into a rtf file. However, when I see the plots in the word file, the plots for the parameters are getting cut. I would like to add page breaks before every parameter so that all the plots for each parameter are on one page. I know if I right click on the blue triangle, I can insert a Break but I don't want to do this for > 1000 parameters. Is there an easier way to do this?

Thanks.
9 REPLIES 9

Re: Inserting page breaks in journals

Anybody has any ideas on this?

Appreciate any help with this.

Thanks.
gda
gda
Level I

Re: Inserting page breaks in journals

Take a look at the "Manipulating Displays" section of the scripting guide.

There is a "Page Break" message you can send that will do what you're requesting. Without knowing the tree structure of your report it's hard to get too specific.

Below is an example of making a page break in a specific section.

tova
Level III

Re: Inserting page breaks in journals

I don't see the example.

txnelson
Super User

Re: Inserting page breaks in journals

Here is the example taken from the Scripting Index

     Help==>Scripting Index

Names Default To Here( 1 );
//This message applies to all display box objects
New Window( "Example",
	ob = Outline Box( "Outline Box",
		V List Box(
			ob2 = Outline Box( "Outline Box 2",
				H List Box(
					Text Edit Box( "Top Left" ),
					Text Edit Box( "Top Right" )
				)
			),
			ob3 = Outline Box( "Outline Box",
				H List Box(
					Text Edit Box( "Bottom Left" ),
					Text Edit Box( "Bottom Right" )
				)
			)
		)
	)
);
ob3 << Page Break;
Jim
tova
Level III

Re: Inserting page breaks in journals

thanks

Re: Inserting page breaks in journals

How can I undo the page break in journal?

txnelson
Super User

Re: Inserting page breaks in journals

I don't see any clear way to do this.  Hopefully some other Community Member may have a solution.

Jim
jthi
Super User

Re: Inserting page breaks in journals

If we are talking about PageBreakBoxes then...use XPath to get references to all of them and then send << Delete box() message to those references

Names Default To Here(1);
//This message applies to all display box objects
nw = New Window("Example",
	ob = Outline Box("Outline Box",
		V List Box(
			ob2 = Outline Box("Outline Box 2",
				H List Box(Text Edit Box("Top Left"), Text Edit Box("Top Right"))
			),
			ob3 = Outline Box("Outline Box",
				H List Box(Text Edit Box("Bottom Left"), Text Edit Box("Bottom Right"))
			)
		)
	)
);
ob3 << Page Break;

nw << Journal;

(Current Journal() << XPath("//PageBreakBox")) << Delete Box;

It also might be enough to just send << Visibility("Collapse") instead of deleting them

-Jarmo
txnelson
Super User

Re: Inserting page breaks in journals

Nice solution!

Jim