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
- :
- Discussions
- :
- [JSL] How to know the number of open graph/analysis

Topic Options

- 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
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

[JSL] How to know the number of open graph/analysis

Aug 19, 2011 5:46 AM
(1599 views)

Hi everybody,

Is it possible to know with a JSL command the number of analyses, graph open with JMP ? (like Ntable() function for data tables).

The aim is to create a script to get analysis, graphs and put them automatically in a journal to create a report and generate a pdf file.

Thanks

Regards,

Guillaume

6 REPLIES 6

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

[JSL] How to know the number of open graph/analysis

I am not aware of a command that exclusively return report windows.

The script below gives the number of non-data-table windows. The -1 acounts for the current script window. However, it gives only a rough (maximum) estimate of the number of reports, as the log, JMP starter, dialogs, journals or other scripts that are opened will also be included in the count.

It may be possible to identify and count any non-report windows by looping through all open windows with some smart syntax (that so far has escaped me).

nitems**(**window**())**-ntable**()**-**1**;

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

[JSL] How to know the number of open graph/analysis

Thanks for this answer, I will try this.

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

Re: [JSL] How to know the number of open graph/analysis

Is there any way to find out how many number of journals currently open. as I would like to do 'For loop' over to append them one by one into a single journal.

Thanks.

Thanks.

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

Re: [JSL] How to know the number of open graph/analysis

Here is how I check for windows that are open....and note, you can determine that it is a journal by the Icon specified

```
i = 1;
While( Window( i ) << get window title != {},
Show( Window( i ) << get window title );
Show( Window( i ) << get window icon );
i++;
);
```

Jim

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

Re: [JSL] How to know the number of open graph/analysis

Extending Jim's example, you could use:

`If( Contains( Window( i ) << Get Window Title, "Journal", counter++ );`

to count the number of open journals.

Learn it once, use it forever!

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

Re: [JSL] How to know the number of open graph/analysis

What Mark states is true........with the following exception. If the Window Title is changed within JSL, it will strip out the title prefis of "Journal".

Jim