Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- JMP User Community
- :
- Discussions
- :
- how to write JSL script to report out 20 plots/graphs in one combined report and...

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Oct 23, 2015 2:15 PM
(9020 views)

I wrote a script which after running would open 20 windows for each plot in the script besides the data tables. How to write in the JSL script to report out 20 plots/graphs in one combined report and showing all the original 20 individual plots? Tried the following script but did not return with anything.

rptPIC = plotPIC << **report**;

w1 = New Window**(** "Trend Charts",

Text Box**(** " run date/time: " || ::Date || " MST" **)**,

IWSWS = Outline Box**(** "Trending",

Text Box**(** " " **)**,

H List Box**(** rptPIC **)**,

Text Box**(** " " **)**,

Text Box**(** " " **),**

H List Box**(** rptLIC **)**,

Text Box**(** " " **)**,

Text Box**(** " " **)**

** **** **

**)**;

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

It's going to be best if you put all your reports directly into one window from the beginning. Creating a report and then moving it is difficult. Use the 'nw = New Window("container"); nw << Append(report);' format. For example:

//Get Example Data

dt = open("$Sample_Data\Big Class.jmp");

//Create Distribution report

dist = dt << Distribution( Continuous Distribution( Column( :height ) ) );

//deson't work b/c the display box is in another window

nw = new window("Example", dist);

nw2 = new window("Example2");

//Create the window directly in the container we want it to be in

nw2 << Append(dist = dt << Distribution( Continuous Distribution( Column( :height ) ) ););

5 REPLIES 5

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

It's going to be best if you put all your reports directly into one window from the beginning. Creating a report and then moving it is difficult. Use the 'nw = New Window("container"); nw << Append(report);' format. For example:

//Get Example Data

dt = open("$Sample_Data\Big Class.jmp");

//Create Distribution report

dist = dt << Distribution( Continuous Distribution( Column( :height ) ) );

//deson't work b/c the display box is in another window

nw = new window("Example", dist);

nw2 = new window("Example2");

//Create the window directly in the container we want it to be in

nw2 << Append(dist = dt << Distribution( Continuous Distribution( Column( :height ) ) ););

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Adding on msharps reply. If you do want to create a variable to put it into the window, you can always just wrap your platform in Expr()

dt = open("$Sample_Data\Big Class.jmp");

//Create Distribution Expr

dist = Expr(dt << Distribution( Continuous Distribution( Column( :height ) ) ));

//works now

nw = new window("Example", dist);

Vince Faller - Predictum

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: how to write JSL script to report out 20 plots/graphs in one combined report and close all the 2

What is the reason that without add"Expr",

the dist object does not appear in the new window with script below :

nw = new window("Example", dist);

the dist object does not appear in the new window with script below :

nw = new window("Example", dist);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: how to write JSL script to report out 20 plots/graphs in one combined report and close all the 2

Just like previous reply, because it's already in another window.

Vince Faller - Predictum

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: how to write JSL script to report out 20 plots/graphs in one combined report and close all the 2

Thanks.