cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
%3CLINGO-SUB%20id%3D%22lingo-sub-797891%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E6%AF%8F%E5%80%8B%E6%9C%9F%E5%88%8A%E5%A4%A7%E7%B6%B1%E6%A1%86%E7%9A%84%E5%AD%98%E5%8F%96%E8%85%B3%E6%9C%AC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-797891%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%9C%89%E6%B2%92%E6%9C%89%E8%BE%A6%E6%B3%95%E4%BB%A5%E8%85%B3%E6%9C%AC%E7%9A%84%E5%BD%A2%E5%BC%8F%E8%A8%AA%E5%95%8F%E6%97%A5%E8%A8%98%E4%B8%AD%E7%9A%84%E6%AF%8F%E5%80%8B%E5%96%AE%E7%8D%A8%E5%A0%B1%E5%91%8A%E3%80%82%E6%88%91%E6%AD%A3%E5%9C%A8%E7%B7%A8%E5%AF%AB%E4%B8%80%E5%80%8B%E8%85%B3%E6%9C%AC%EF%BC%8C%E6%88%91%E6%83%B3%E5%9C%A8%E5%85%B6%E4%B8%AD%E8%A8%AA%E5%95%8F%E6%9C%9F%E5%88%8A%E4%B8%AD%E7%9A%84%E6%AF%8F%E5%80%8B%E5%A0%B1%E5%91%8A%E4%B8%A6%E4%BD%BF%E7%94%A8%20jsl%20%E8%85%B3%E6%9C%AC%E4%BF%AE%E6%94%B9%E5%AE%83%E5%80%91%E7%9A%84%E4%B8%80%E4%BA%9B%E5%B1%AC%E6%80%A7%EF%BC%9F%E9%82%A3%E9%BA%BC%E6%9C%89%E6%B2%92%E6%9C%89%E8%BE%A6%E6%B3%95%E5%AD%98%E5%8F%96%E6%97%A5%E8%AA%8C%E4%B8%AD%E5%A0%B1%E5%91%8A%E7%9A%84%E5%96%AE%E4%B8%80%E8%85%B3%E6%9C%AC%E4%B8%A6%E5%9C%A8%20jsl%20%E4%B8%AD%E4%BF%AE%E6%94%B9%E5%AE%83%E5%80%91%E4%BB%A5%E5%8F%8D%E6%98%A0%E5%9C%A8%E6%97%A5%E8%AA%8C%E4%B8%AD%EF%BC%9F%E8%AB%8B%E6%8C%87%E5%B0%8E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-797891%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3E%E8%87%AA%E5%8B%95%E5%8C%96%E5%92%8C%E8%85%B3%E6%9C%AC%E7%B7%A8%E5%AF%AB%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-797913%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E8%A6%86%EF%BC%9A%E6%AF%8F%E5%80%8B%E6%9C%9F%E5%88%8A%E5%A4%A7%E7%B6%B1%E6%A1%86%E7%9A%84%E5%AD%98%E5%8F%96%E8%85%B3%E6%9C%AC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-797913%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%A6%82%E6%9E%9C%E4%BD%A0%E5%89%B5%E5%BB%BA%E4%B8%80%E6%9C%AC%E6%97%A5%E8%A8%98%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20to%20here(1)%3B%0Ajr%20%3D%20new%20window(%22test%22%2C%20%26lt%3B%3CJOURNAL%3E%3C%2FJOURNAL%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%0A%3CP%3E%E7%84%B6%E5%BE%8C%E6%82%A8%E5%8F%AF%E4%BB%A5%E4%BD%BF%E7%94%A8%E6%97%A5%E8%AA%8C%E4%B8%AD%E7%9A%84%E5%B7%A5%E5%85%B7%E5%88%97%E6%88%96%E9%81%B8%E6%93%87%E8%BC%AA%E5%BB%93%E6%A1%86%E4%B8%A6%E5%B0%87%E5%85%B6%E6%8B%96%E6%9B%B3%E5%88%B0%E6%97%A5%E8%AA%8C%E4%B8%AD%E4%BE%86%E5%9C%A8%E6%97%A5%E8%AA%8C%E4%B8%AD%E5%BB%BA%E7%AB%8B%E7%B5%90%E6%A7%8B%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditor_cdca8f5115adctxnelson_0%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%20%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22txnelson_1-1726068778894.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22txnelson_1-1726068778894.png%22%20style%3D%22width%3A%20314px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F68139i419E354E398215F1%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22txnelson_1-1726068778894.png%22%20alt%3D%22txnelson_1-1726068778894.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%E6%82%A8%E5%8F%AF%E4%BB%A5%E5%AD%98%E5%8F%96%E5%A4%A7%E7%B6%B1%E6%A1%86%E7%9A%84%E8%85%B3%E6%9C%AC%EF%BC%9A%3C%2FP%3E%0A%3C%2FCODE%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%3CCODE%20class%3D%22%20language-jsl%22%3EtheScript%20%3D%20jr(%22height%22)%26lt%3B%3CGET%20script%3D%22%22%3E%3C%2FGET%3E%3C%2FCODE%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%0A%3C%2FCODE%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%3CCODE%20class%3D%22%20language-jsl%22%3EV%20List%20Box(%0A%09V%20List%20Box(%20V%20List%20Box()%20)%2C%0A%09OutlineBox%2C%0A%09Outline%20Box(%0A%09%09V%20List%20Box(%0A%09%09%09V%20List%20Box(%0A%09%09%09%09Picture%20Box(%0A%09%09%09%09%09Border%20Box(%0A%09%09%09%09%09%09ScaleBox(%0A%09%09%09%09%09%09%09ScaleBox(%0A%09%09%09%09%09%09%09%09ScaleBox(%0A%09%09%09%09%09%09%09%09%09ScaleBox(%0A%09%09%09%09%09%09%09%09%09%09Border%20Box(%0A%09%09%09%09%09%09%09%09%09%09%09H%20List%20Box(%0A%09%09%09%09%09%09%09%09%09%09%09%09Border%20Box(%20AxisBox%20)%2C%0A%09%09%09%09%09%09%09%09%09%09%09%09V%20List%20Box(%0A%09%09%09%09%09%09%09%09%09%09%09%09%09Picture%20Box(%0A%09%09%09%09%09%09%09%09%09%09%09%09%09%09Border%20Box(%20FrameBox%20)%0A%09%09%09%09%09%09%09%09%09%09%09%09%09)%0A%09%09%09%09%09%09%09%09%09%09%09%09)%2C%0A%09%09%09%09%09%09%09%09%09%09%09%09Picture%20Box(%20ScaleBox(%20FrameBox%20)%20)%0A%09%09%09%09%09%09%09%09%09%09%09)%0A%09%09%09%09%09%09%09%09%09%09)%0A%09%09%09%09%09%09%09%09%09)%0A%09%09%09%09%09%09%09%09)%0A%09%09%09%09%09%09%09)%0A%09%09%09%09%09%09)%0A%09%09%09%09%09)%0A%09%09%09%09)%2C%0A%09%09%09%09V%20List%20Box()%0A%09%09%09)%2C%0A%09%09%09V%20List%20Box(%0A%09%09%09%09Outline%20Box(%0A%09%09%09%09%09Table%20Box(%0A%09%09%09%09%09%09String%20Col%20Box(%20%22100.0%25%22%2C%0A%09%09%09%09%09%09%09%2299.5%25%22%2C%0A%09%09%09%09%09%09%09%2297.5%25%22%2C%0A%09%09%09%09%09%09%09%2290.0%25%22%2C%0A%09%09%09%09%09%09%09%2275.0%25%22%2C%0A%09%09%09%09%09%09%09%2250.0%25%22%2C%0A%09%09%09%09%09%09%09%2225.0%25%22%2C%0A%09%09%09%09%09%09%09%2210.0%25%22%2C%0A%09%09%09%09%09%09%09%222.5%25%22%2C%0A%09%09%09%09%09%09%09%220.5%25%22%2C%0A%09%09%09%09%09%09%09%220.0%25%22%0A%09%09%09%09%09%09)%2C%0A%09%09%09%09%09%09String%20Col%20Box(%20%22maximum%22%2C%0A%09%09%09%09%09%09%09%22%22%2C%0A%09%09%09%09%09%09%09%22%22%2C%0A%09%09%09%09%09%09%09%22%22%2C%0A%09%09%09%09%09%09%09%22quartile%22%2C%0A%09%09%09%09%09%09%09%22median%22%2C%0A%09%09%09%09%09%09%09%22quartile%22%2C%0A%09%09%09%09%09%09%09%22%22%2C%0A%09%09%09%09%09%09%09%22%22%2C%0A%09%09%09%09%09%09%09%22%22%2C%0A%09%09%09%09%09%09%09%22minimum%22%0A%09%09%09%09%09%09)%2C%0A%09%09%09%09%09%09Number%20Col%20Box(%20Set%20Format(%20%22Best%22%2C%2012%20)%2C%0A%09%09%09%09%09%09%09Array(%0A%09%09%09%09%09%09%09%0970%2C%2070%2C%2069.975%2C%2068%2C%2065%2C%2063%2C%2060.25%2C%2056.2%2C%2051.025%2C%2051%2C%0A%09%09%09%09%09%09%09%0951%0A%09%09%09%09%09%09%09)%0A%09%09%09%09%09%09)%0A%09%09%09%09%09)%0A%09%09%09%09)%2C%0A%09%09%09%09V%20List%20Box(%0A%09%09%09%09%09Outline%20Box(%0A%09%09%09%09%09%09V%20List%20Box(%0A%09%09%09%09%09%09%09Table%20Box(%0A%09%09%09%09%09%09%09%09String%20Col%20Box(%20%22Mean%22%2C%0A%09%09%09%09%09%09%09%09%09%22Std%20Dev%22%2C%0A%09%09%09%09%09%09%09%09%09%22Std%20Err%20Mean%22%2C%0A%09%09%09%09%09%09%09%09%09%22Upper%2095%25%20Mean%22%2C%0A%09%09%09%09%09%09%09%09%09%22Lower%2095%25%20Mean%22%2C%0A%09%09%09%09%09%09%09%09%09%22N%22%2C%0A%09%09%09%09%09%09%09%09%09%22N%20Missing%22%0A%09%09%09%09%09%09%09%09)%2C%0A%09%09%09%09%09%09%09%09Number%20Col%20Box(%20Set%20Format(%20%22Best%22%2C%209%20)%2C%0A%09%09%09%09%09%09%09%09%09Array(%0A%09%09%09%09%09%09%09%09%09%0962.55%2C%204.24233849397192%2C%200.670772612317988%2C%0A%09%09%09%09%09%09%09%09%09%0963.9067656723449%2C%2061.1932343276551%2C%2040%2C%200%0A%09%09%09%09%09%09%09%09%09)%0A%09%09%09%09%09%09%09%09)%0A%09%09%09%09%09%09%09)%0A%09%09%09%09%09%09)%0A%09%09%09%09%09)%0A%09%09%09%09)%0A%09%09%09)%0A%09%09)%0A%09)%0A)%3C%2FCODE%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%E8%A7%80%E5%AF%9F%E6%82%A8%E4%BD%BF%E7%94%A8%20JSL%20%E7%9A%84%E6%83%85%E6%B3%81%EF%BC%8C%E6%88%91%E5%BB%BA%E8%AD%B0%E6%82%A8%E8%8A%B1%E6%99%82%E9%96%93%E9%96%B1%E8%AE%80%E3%80%8C%E5%B9%AB%E5%8A%A9%E3%80%8D%E4%B8%8B%E6%8B%89%E5%BC%8F%E9%81%B8%E5%96%AE%E4%B8%8B%E6%8F%90%E4%BE%9B%E7%9A%84%E3%80%8C%E8%85%B3%E6%9C%AC%E6%8C%87%E5%8D%97%E3%80%8D%E3%80%82%E6%9C%AC%E6%8C%87%E5%8D%97%E6%B6%B5%E8%93%8B%E4%BA%86%E6%89%80%E6%9C%89%E9%80%99%E4%BA%9B%E6%A6%82%E5%BF%B5%E3%80%82%E5%AE%83%E5%B0%87%E4%BD%BF%E6%82%A8%E7%9A%84%E7%94%9F%E6%B4%BB%E6%9B%B4%E8%BC%95%E9%AC%86%EF%BC%8C%E4%B8%A6%E4%B8%94%E6%82%A8%E6%9B%B4%E5%BF%AB%E5%9C%B0%E5%AD%B8%E7%BF%92%20JSL%E3%80%82%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E
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