<?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 Bring Window To Front not working properly? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Bring-Window-To-Front-not-working-properly/m-p/680643#M86640</link>
    <description>&lt;P&gt;[JMP 17.0.0]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This may be kind of obscure, but let's say I create a new project that contains two data tables: Table 1 and Table 2.&amp;nbsp; In Table 1, I have a script to duplicate Table 2 in a new Table 3 (if Table 3 doesn't already exist), then bring the focus back to Table 2:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Data Table( "Table 2");

If( Try( Data Table("Table 3") &amp;lt;&amp;lt; Get Name, "") == "",

	dt &amp;lt;&amp;lt; Subset(
		Output Table( "Table 3" ),
		All rows,
		Selected columns only( 0 )
	);
	
);
	
Window( "Table 2") &amp;lt;&amp;lt; Bring Window To Front;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;After the script runs, this should change the window focus to Table 2, but instead the focus is on Table 3.&amp;nbsp; Subsequently running the script brings the focus to Table 2 as intended.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure what I'm missing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Joel&lt;/P&gt;</description>
    <pubDate>Fri, 22 Sep 2023 17:35:47 GMT</pubDate>
    <dc:creator>jc510_2</dc:creator>
    <dc:date>2023-09-22T17:35:47Z</dc:date>
    <item>
      <title>Bring Window To Front not working properly?</title>
      <link>https://community.jmp.com/t5/Discussions/Bring-Window-To-Front-not-working-properly/m-p/680643#M86640</link>
      <description>&lt;P&gt;[JMP 17.0.0]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This may be kind of obscure, but let's say I create a new project that contains two data tables: Table 1 and Table 2.&amp;nbsp; In Table 1, I have a script to duplicate Table 2 in a new Table 3 (if Table 3 doesn't already exist), then bring the focus back to Table 2:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Data Table( "Table 2");

If( Try( Data Table("Table 3") &amp;lt;&amp;lt; Get Name, "") == "",

	dt &amp;lt;&amp;lt; Subset(
		Output Table( "Table 3" ),
		All rows,
		Selected columns only( 0 )
	);
	
);
	
Window( "Table 2") &amp;lt;&amp;lt; Bring Window To Front;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;After the script runs, this should change the window focus to Table 2, but instead the focus is on Table 3.&amp;nbsp; Subsequently running the script brings the focus to Table 2 as intended.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure what I'm missing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Joel&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 17:35:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Bring-Window-To-Front-not-working-properly/m-p/680643#M86640</guid>
      <dc:creator>jc510_2</dc:creator>
      <dc:date>2023-09-22T17:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Bring Window To Front not working properly?</title>
      <link>https://community.jmp.com/t5/Discussions/Bring-Window-To-Front-not-working-properly/m-p/680684#M86641</link>
      <description>&lt;P&gt;This is one of those scenarios which call for the Wait() function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Data Table( "Table 2");

If( Try( Data Table("Table 3") &amp;lt;&amp;lt; Get Name, "") == "",

	dt &amp;lt;&amp;lt; Subset(
		Output Table( "Table 3" ),
		All rows,
		Selected columns only( 0 )
	);
	Wait(0)
);
	
Window( "Table 2") &amp;lt;&amp;lt; Bring Window To Front;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Sep 2023 18:40:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Bring-Window-To-Front-not-working-properly/m-p/680684#M86641</guid>
      <dc:creator>mmarchandTSI</dc:creator>
      <dc:date>2023-09-22T18:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Bring Window To Front not working properly?</title>
      <link>https://community.jmp.com/t5/Discussions/Bring-Window-To-Front-not-working-properly/m-p/680717#M86644</link>
      <description>&lt;P&gt;Yes - that is exactly it.&amp;nbsp; This is the first time I've run across a need for the Wait function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 21:23:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Bring-Window-To-Front-not-working-properly/m-p/680717#M86644</guid>
      <dc:creator>jc510_2</dc:creator>
      <dc:date>2023-09-22T21:23:33Z</dc:date>
    </item>
  </channel>
</rss>

