<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How can I identify a report in jsl if that report is not associated with a variable? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-can-I-identify-a-report-in-jsl-if-that-report-is-not/m-p/39585#M23143</link>
    <description>&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;FONT face="arial,helvetica,sans-serif"&gt;&amp;nbsp;&amp;nbsp; Tables can be referred to in JSL by a variable name or by the title of the table.&amp;nbsp; For example:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;If I created a table through a query:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;dtMap = &lt;/SPAN&gt;&lt;SPAN&gt;Open Database&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;(DSN, sqlStr, &lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: Consolas; font-size: 10pt;"&gt;"Map"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;I can then refer to that table as dtMap or DataTable(“Map”).&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;If I create a report:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Biv = Bivariate(Y(yy), X(xx));&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;I can refer to it as Biv.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;But can I call it by a title or name?&amp;nbsp; (e.g. Report(“Bivariate Fit of yy By xx”))&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;Normally I prefer to use the variable name,&amp;nbsp; But I have an application where I don’t have that and need to refer to the report by other means.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 May 2017 17:11:05 GMT</pubDate>
    <dc:creator>pcarroll1</dc:creator>
    <dc:date>2017-05-24T17:11:05Z</dc:date>
    <item>
      <title>How can I identify a report in jsl if that report is not associated with a variable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-identify-a-report-in-jsl-if-that-report-is-not/m-p/39585#M23143</link>
      <description>&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;FONT face="arial,helvetica,sans-serif"&gt;&amp;nbsp;&amp;nbsp; Tables can be referred to in JSL by a variable name or by the title of the table.&amp;nbsp; For example:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;If I created a table through a query:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;dtMap = &lt;/SPAN&gt;&lt;SPAN&gt;Open Database&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;(DSN, sqlStr, &lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: Consolas; font-size: 10pt;"&gt;"Map"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;I can then refer to that table as dtMap or DataTable(“Map”).&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;If I create a report:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Biv = Bivariate(Y(yy), X(xx));&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;I can refer to it as Biv.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;But can I call it by a title or name?&amp;nbsp; (e.g. Report(“Bivariate Fit of yy By xx”))&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;Normally I prefer to use the variable name,&amp;nbsp; But I have an application where I don’t have that and need to refer to the report by other means.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 17:11:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-identify-a-report-in-jsl-if-that-report-is-not/m-p/39585#M23143</guid>
      <dc:creator>pcarroll1</dc:creator>
      <dc:date>2017-05-24T17:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can I identify a report in jsl if that report is not associated with a variable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-identify-a-report-in-jsl-if-that-report-is-not/m-p/39587#M23145</link>
      <description>&lt;P&gt;You can refer to open Bivariate platforms by index using the index syntax, such as Bivariate[1]. The index is the order in which they were launched.&lt;/P&gt;
&lt;P&gt;You can use the Window() function to get a list of open windows and then iterate over its items&amp;nbsp;to find and examine all the platforms of a particular type.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 17:44:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-identify-a-report-in-jsl-if-that-report-is-not/m-p/39587#M23145</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2017-05-24T17:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I identify a report in jsl if that report is not associated with a variable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-identify-a-report-in-jsl-if-that-report-is-not/m-p/39590#M23146</link>
      <description>&lt;P&gt;Thanks very much for a quick reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output I'm getting from&amp;nbsp;Windows() looks vey generic.&amp;nbsp;&amp;nbsp; I'm not understanding something.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{DisplayBox[HeadBox], DisplayBox[HeadBox], DisplayBox[HeadBox], DisplayBox[HeadBox],&lt;/P&gt;&lt;P&gt;DisplayBox[HeadBox], DisplayBox[HeadBox], DisplayBox[HeadBox], DisplayBox[HeadBox],&lt;/P&gt;&lt;P&gt;DisplayBox[HeadBox], DisplayBox[HeadBox], DisplayBox[HeadBox], DisplayBox[HeadBox]}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 20:20:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-identify-a-report-in-jsl-if-that-report-is-not/m-p/39590#M23146</guid>
      <dc:creator>pcarroll1</dc:creator>
      <dc:date>2017-05-24T20:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can I identify a report in jsl if that report is not associated with a variable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-identify-a-report-in-jsl-if-that-report-is-not/m-p/39591#M23147</link>
      <description>&lt;P&gt;You must be looking at the results returned by the &lt;STRONG&gt;Window()&lt;/STRONG&gt; function in the Log. This display simply verifies that there are a bunch of open windows and identifies the root of each display tree with a generic name.&lt;/P&gt;
&lt;P&gt;You can save this list in a variable and then iterate through the list while examining each item. For example, you could obtain the title of the window and check it to see if it is the one that you want. If it is, then you can save it and break out of the loop. Now use the reference obtained this way as if you had saved it in the first place.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 20:40:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-identify-a-report-in-jsl-if-that-report-is-not/m-p/39591#M23147</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2017-05-24T20:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can I identify a report in jsl if that report is not associated with a variable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-identify-a-report-in-jsl-if-that-report-is-not/m-p/39592#M23148</link>
      <description>&lt;P&gt;You can get a list of the window titles as strings directly:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Window() &amp;lt;&amp;lt; Get Window Title&lt;/PRE&gt;
&lt;P&gt;It returns something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{"Script", "Big Class", "Big Class - Distribution"}&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 May 2017 21:24:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-identify-a-report-in-jsl-if-that-report-is-not/m-p/39592#M23148</guid>
      <dc:creator>Melanie_J_Drake</dc:creator>
      <dc:date>2017-05-24T21:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can I identify a report in jsl if that report is not associated with a variable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-identify-a-report-in-jsl-if-that-report-is-not/m-p/39602#M23155</link>
      <description>&lt;P&gt;To build on what Mark and Melanie&amp;nbsp;have said already:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);
 // Make a report, but don't keep any reference to it
 dt = Open("$SAMPLE_DATA/Big Class.jmp");
 dt &amp;lt;&amp;lt; Bivariate(X(:height), Y(:weight));

// See which windows are open in the current session and find the window of interest
openW = Window();
myWin = {};
for(w=1, w&amp;lt;=NItems(openW), w++,
	winTitle = openW[w] &amp;lt;&amp;lt; getWindowTitle;
	Print(winTitle);
	if(Contains(winTitle, "Bivariate"), InsertInto(myWin, openW[w]))
);

// Do a linear fit in each Bivariate report that we found
Wait(2);
for(w=1, w&amp;lt;=NItems(myWin), w++,
	// Get the scriptable object for the Bivariate 'analysis layer'
	thisSO = myWin[w]["Bivariate ?"] &amp;lt;&amp;lt; getScriptableObject;
	// Fit the line
	thisSO &amp;lt;&amp;lt; fitLine;
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 07:09:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-identify-a-report-in-jsl-if-that-report-is-not/m-p/39602#M23155</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2017-05-25T07:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can I identify a report in jsl if that report is not associated with a variable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-identify-a-report-in-jsl-if-that-report-is-not/m-p/39610#M23163</link>
      <description>&lt;P&gt;Thanks everyone.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even a variable set&amp;nbsp;as the line below,&amp;nbsp;gives a cryptic output to the user, even if JMP knows what it means.&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;xxx = &lt;/FONT&gt;&lt;FONT color="#0000dd" face="Consolas" size="2"&gt;Window&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;show(xxx);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;xxx = {DisplayBox[HeadBox], DisplayBox[HeadBox], DisplayBox[HeadBox], DisplayBox[HeadBox], DisplayBox[HeadBox], DisplayBox[HeadBox]};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Either:&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;xxx &amp;lt;&amp;lt; &lt;/FONT&gt;&lt;FONT color="#000080" face="Consolas" size="2"&gt;Get Window Title&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Or the one line:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000dd" face="Consolas" size="2"&gt;xxx = Window&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;() &amp;lt;&amp;lt; &lt;/FONT&gt;&lt;FONT color="#000080" face="Consolas" size="2"&gt;Get Window Title&lt;/FONT&gt;;&lt;/P&gt;&lt;P&gt;Works.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 11:56:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-identify-a-report-in-jsl-if-that-report-is-not/m-p/39610#M23163</guid>
      <dc:creator>pcarroll1</dc:creator>
      <dc:date>2017-05-25T11:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can I identify a report in jsl if that report is not associated with a variable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-identify-a-report-in-jsl-if-that-report-is-not/m-p/39612#M23165</link>
      <description>&lt;P&gt;Let me add one compliant for JMP.&amp;nbsp; Sorry!!&lt;/P&gt;&lt;P&gt;But why does a search in the scripting guide for:&lt;/P&gt;&lt;P&gt;Get Window Title&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;GetWindowTitle&lt;/P&gt;&lt;P&gt;produce no matches?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And a search for Window() matches only&lt;/P&gt;&lt;P&gt;Show Window(), Print Window(), New Window() and DataTable Window()?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suggest that these be added somewhere in the early chapters, since they seem to be&amp;nbsp;rather basic functions&amp;nbsp;for managing windows in JMP.&lt;/P&gt;&lt;P&gt;Do you agree?&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 12:13:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-identify-a-report-in-jsl-if-that-report-is-not/m-p/39612#M23165</guid>
      <dc:creator>pcarroll1</dc:creator>
      <dc:date>2017-05-25T12:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: How can I identify a report in jsl if that report is not associated with a variable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-identify-a-report-in-jsl-if-that-report-is-not/m-p/39613#M23166</link>
      <description>&lt;P&gt;The Window() function is for a script and used by a scripter. The result is not usually visible to the user. The scripter may see the result in the Log as an aid in development and debugging.&lt;/P&gt;
&lt;P&gt;The result is useful&amp;nbsp;because it firstly confirms that a result of a list of reference to all the open windows was obtained and it secondly may be used to work with these windows as illustrated by Wendy and Ian. The form "Window() &amp;lt;&amp;lt; Get Window Title" uses the result of the function&amp;nbsp;(a list) and distributes the message (Get Window Title) to each item in the list. The result of the message is a new list with title of each open window as a character string. So you don't need to understand the result of Window() ("cryptic output") to use it.&lt;/P&gt;
&lt;P&gt;It just depends on what you want to do. If I get the window reference, I can do anything with the window with functions and messages. If I get the window title, which might mean something to the user, that information&amp;nbsp;has somewhat limited usefulness in a script.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 12:23:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-identify-a-report-in-jsl-if-that-report-is-not/m-p/39613#M23166</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2017-05-25T12:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can I identify a report in jsl if that report is not associated with a variable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-identify-a-report-in-jsl-if-that-report-is-not/m-p/39614#M23167</link>
      <description>&lt;P&gt;There is no need to apologize here. (And if there was, then don't post it in the first place! J)&lt;/P&gt;
&lt;P&gt;Thank you for submitting that omission in documentation. We will investigate it further.&lt;/P&gt;
&lt;P&gt;The message&amp;nbsp;does appear in &lt;STRONG&gt;Help&lt;/STRONG&gt; &amp;gt; &lt;STRONG&gt;Scripting Index&lt;/STRONG&gt;. The search finds this message and displays information about it. Clicking&amp;nbsp;the &lt;STRONG&gt;Help&lt;/STRONG&gt; button opens the documentation for you. In this case, the only information is in the &lt;EM&gt;JSL Syntax Guide&lt;/EM&gt;. There is apparently nothing in the &lt;EM&gt;JMP Scripting Guide&lt;/EM&gt; as you pointed out.&lt;/P&gt;
&lt;P&gt;The &lt;EM&gt;Scripting Index&lt;/EM&gt; and the &lt;EM&gt;JSL Syntax Guide&lt;/EM&gt; are not redundant&amp;nbsp;but very useful aids in their own right.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 12:32:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-identify-a-report-in-jsl-if-that-report-is-not/m-p/39614#M23167</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2017-05-25T12:32:06Z</dc:date>
    </item>
  </channel>
</rss>

