<?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 Data table reports windows in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Data-table-reports-windows/m-p/478675#M72292</link>
    <description>&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;Could anyone show me the way with JSL to get all the reports that are open against a data table? What I'm trying to do is be able to click a script button and minimize all the reports that are open for a selected data table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any ideas!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 16:56:43 GMT</pubDate>
    <dc:creator>shampton82</dc:creator>
    <dc:date>2023-06-09T16:56:43Z</dc:date>
    <item>
      <title>Data table reports windows</title>
      <link>https://community.jmp.com/t5/Discussions/Data-table-reports-windows/m-p/478675#M72292</link>
      <description>&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;Could anyone show me the way with JSL to get all the reports that are open against a data table? What I'm trying to do is be able to click a script button and minimize all the reports that are open for a selected data table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any ideas!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:56:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Data-table-reports-windows/m-p/478675#M72292</guid>
      <dc:creator>shampton82</dc:creator>
      <dc:date>2023-06-09T16:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Data table reports windows</title>
      <link>https://community.jmp.com/t5/Discussions/Data-table-reports-windows/m-p/478736#M72299</link>
      <description>&lt;P&gt;I am not aware of a direct way to do this, but the below script seems to work&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();

windowNumbersToMinList = {};
theName = Current Data Table() &amp;lt;&amp;lt; get name;

// Loop across all windows and find report windos attached to data table name
// Definition of a report window, is one that starts with the data table name and
// is followed by a "-"
i = 1;
While( Window( i ) &amp;lt;&amp;lt; get window title != {},
	theWName = Window( i ) &amp;lt;&amp;lt; get window title;
	If( Contains( theWName, theName ) == 1 &amp;amp; Substr( theWName, Length( theName ) + 2, 1 ) == "-",
		Insert Into( windowNumbersToMinList, i )
	);
	i++;
);

// Loop across found windows and minimize them
If( N Items( windowNumbersToMinList ) &amp;gt; 0,
	For( i = N Items( windowNumbersToMinList ), i &amp;gt;= 1, i--,
		Window( windowNumbersToMinList[i] ) &amp;lt;&amp;lt; minimize window
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Apr 2022 00:57:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Data-table-reports-windows/m-p/478736#M72299</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-04-13T00:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Data table reports windows</title>
      <link>https://community.jmp.com/t5/Discussions/Data-table-reports-windows/m-p/478765#M72301</link>
      <description>&lt;P&gt;Works perfect, thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 03:01:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Data-table-reports-windows/m-p/478765#M72301</guid>
      <dc:creator>shampton82</dc:creator>
      <dc:date>2022-04-13T03:01:41Z</dc:date>
    </item>
  </channel>
</rss>

