cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
New to using JMP? Hit the ground running with the Early User Edition of Discovery Summit. Register now, free of charge.
Register for our Discovery Summit 2024 conference, Oct. 21-24, where you’ll learn, connect, and be inspired.
Choose Language Hide Translation Bar
ComplexNerd
Level III

Access script of each journal outline box

Is there a way to access each individual report inside a journal as a script. i am writing a script where i want to access each report inside a jounral and modify some of their properties using jsl script? so is there a way to access individual script of reports in journal and modify them in jsl to reflect on the journal ? kindly guide

1 REPLY 1
txnelson
Super User

Re: Access script of each journal outline box

If you create a journal

Names Default to here(1);
jr = new window("test", <<journal);

and then you create a structure within the journal by either using the tool bar within the journal, or selecting and dragging outline boxes into the journal

 

txnelson_1-1726068778894.png

You can access the script for the outline box as

theScript = jr("height")<<get script;
V List Box(
	V List Box( V List Box() ),
	OutlineBox,
	Outline Box(
		V List Box(
			V List Box(
				Picture Box(
					Border Box(
						ScaleBox(
							ScaleBox(
								ScaleBox(
									ScaleBox(
										Border Box(
											H List Box(
												Border Box( AxisBox ),
												V List Box(
													Picture Box(
														Border Box( FrameBox )
													)
												),
												Picture Box( ScaleBox( FrameBox ) )
											)
										)
									)
								)
							)
						)
					)
				),
				V List Box()
			),
			V List Box(
				Outline Box(
					Table Box(
						String Col Box( "100.0%",
							"99.5%",
							"97.5%",
							"90.0%",
							"75.0%",
							"50.0%",
							"25.0%",
							"10.0%",
							"2.5%",
							"0.5%",
							"0.0%"
						),
						String Col Box( "maximum",
							"",
							"",
							"",
							"quartile",
							"median",
							"quartile",
							"",
							"",
							"",
							"minimum"
						),
						Number Col Box( Set Format( "Best", 12 ),
							Array(
								70, 70, 69.975, 68, 65, 63, 60.25, 56.2, 51.025, 51,
								51
							)
						)
					)
				),
				V List Box(
					Outline Box(
						V List Box(
							Table Box(
								String Col Box( "Mean",
									"Std Dev",
									"Std Err Mean",
									"Upper 95% Mean",
									"Lower 95% Mean",
									"N",
									"N Missing"
								),
								Number Col Box( Set Format( "Best", 9 ),
									Array(
										62.55, 4.24233849397192, 0.670772612317988,
										63.9067656723449, 61.1932343276551, 40, 0
									)
								)
							)
						)
					)
				)
			)
		)
	)
)

Observing where you appear to be going with your use of JSL, I suggest that you take the time to read the Scripting Guide available under the Help Pull Down Menu.  All of these concepts are covered in the guide.  It will make your life easier and your learning of JSL faster.

 

Jim