<?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 Re: Selecting active Tab from Tab Box when a numbereditbox is present (JMP 13) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Selecting-active-Tab-from-Tab-Box-when-a-numbereditbox-is/m-p/56219#M31557</link>
    <description>&lt;P&gt;Thanks a lot gzmorgan0 for sharing this workaround!&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works indeed!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;</description>
    <pubDate>Wed, 02 May 2018 08:51:31 GMT</pubDate>
    <dc:creator>Eduardo</dc:creator>
    <dc:date>2018-05-02T08:51:31Z</dc:date>
    <item>
      <title>Selecting active Tab from Tab Box when a numbereditbox is present (JMP 13)</title>
      <link>https://community.jmp.com/t5/Discussions/Selecting-active-Tab-from-Tab-Box-when-a-numbereditbox-is/m-p/55825#M31428</link>
      <description>&lt;P&gt;Hello All !!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having a somewhat weird issue. In the code below I create a window with two tabs. When the numberditbox is present the command&amp;nbsp;&lt;STRONG&gt;tab &amp;lt;&amp;lt; Set Selected(1)&lt;/STRONG&gt; has no effect and the Tab 2 is always selected. When I comment the numbereditbox the command&amp;nbsp;tab &amp;lt;&amp;lt; Set Selected(1) works fine and I can select the first of second tab. But I need the numbereditbox of course. I'm using JMP 13. Any help appreciated! Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nx0=New Window( "Input",&amp;lt;&amp;lt;modal,
	tab=Tab Box(
		"Files", 
		lineupbox(ncol(2),
		textbox("Open file"),
		),		
			
		"Values",
		lineupbox(ncol(1),
			textbox("Setting one"),numone0=numbereditbox(2),
		),
		
	),
	
	tab &amp;lt;&amp;lt; Set Selected(1),
	
	hlistbox(
	btok=button box("OK",numone=numone0&amp;lt;&amp;lt;get),
	btcanc=button box("Cancel",Close All(Journals,Reports,NoSave);clear globals();clear symbols();cancel_flag=1),
	),
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 09:19:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Selecting-active-Tab-from-Tab-Box-when-a-numbereditbox-is/m-p/55825#M31428</guid>
      <dc:creator>Eduardo</dc:creator>
      <dc:date>2018-04-27T09:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting active Tab from Tab Box when a numbereditbox is present (JMP 13)</title>
      <link>https://community.jmp.com/t5/Discussions/Selecting-active-Tab-from-Tab-Box-when-a-numbereditbox-is/m-p/55827#M31430</link>
      <description>&lt;P&gt;Eduardo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your script works in JMP 12 (as you probably know).&amp;nbsp; Remove &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&amp;lt;&amp;lt; Modal,&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp; and your script will work. I thought I documented this, but maybe not: I cannot find a tracking number and the bug persists in JMP 14.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This issue is that the number edit box acts like a number is typed with no return, meaning it is active/selected.&lt;/P&gt;&lt;P&gt;Even if the DisplayBox is created first then referenced to in the window, it is still active. Note if it is disabled, the first tab is selected.&amp;nbsp; So the problem is with NumberEditBox and Modal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Either your Dialog needs to be non-modal or use TextEditBox and convert it to a Number or maybe JMP Support has a work around.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;lub = lineupbox(ncol(1),
	TextBox("Setting one"),
    numone0=NumberEditBox(2);
);
//numone0 &amp;lt;&amp;lt; enable(0);

nx0=New Window( "Input", &amp;lt;&amp;lt;Modal,
	tab=Tab Box(
		"Files", 
		lineupbox(ncol(2),
		textbox("Open file"),
		),		
			
		"Values",
	     lub

		
	),
	tab &amp;lt;&amp;lt; Set Selected(1),
	
	
	hlistbox(
	btok=button box("OK",numone=numone0&amp;lt;&amp;lt;get),
	btcanc=button box("Cancel",Close All(Journals,Reports,NoSave);clear globals();clear symbols();cancel_flag=1),
	),
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Apr 2018 11:36:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Selecting-active-Tab-from-Tab-Box-when-a-numbereditbox-is/m-p/55827#M31430</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-04-27T11:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting active Tab from Tab Box when a numbereditbox is present (JMP 13)</title>
      <link>https://community.jmp.com/t5/Discussions/Selecting-active-Tab-from-Tab-Box-when-a-numbereditbox-is/m-p/56073#M31469</link>
      <description>&lt;P&gt;Just an update. Here is the tracking number and JMP Support reply. I looked for a defocus or a click or a status property, other than Enable(0|1), but found none.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JMP 13 and 14 Number Edit Box&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;With a modal New Window, JMP knows that the user must do something or cancel out of the dialog. &amp;nbsp;So when one or more edit boxes are included in the window, JMP sets focus on the first one it encounters. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The last time I checked, there was no scriptable way to override it - other than to change the window, as you noted on the Discussion thread. &amp;nbsp;I am double-checking on it to see if anything has changed with v14. &amp;nbsp;Will let you know what I learn.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Mon, 30 Apr 2018 19:08:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Selecting-active-Tab-from-Tab-Box-when-a-numbereditbox-is/m-p/56073#M31469</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-04-30T19:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting active Tab from Tab Box when a numbereditbox is present (JMP 13)</title>
      <link>https://community.jmp.com/t5/Discussions/Selecting-active-Tab-from-Tab-Box-when-a-numbereditbox-is/m-p/56074#M31470</link>
      <description>&lt;P&gt;Use the NumberColEditBox it does not have this problem&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nx0=New Window( "Input", &amp;lt;&amp;lt;Modal,
	tab=Tab Box(
		"Files", 
		lineupbox(ncol(2),
		textbox("Open file"),
		),		
			
		"Values",
	     lineupbox(ncol(1), 
	       TextBox("Setting one"),
            numone0=NumberColEditBox("",{2})
        )
	), //end TabBox
	
	tab &amp;lt;&amp;lt; Set Selected(1),
	
	
	hlistbox(
	btok=button box("OK",numone=numone0&amp;lt;&amp;lt;get),
	btcanc=button box("Cancel",Close All(Journals,Reports,NoSave);clear globals();clear symbols();cancel_flag=1),
	),
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 28 Apr 2018 22:38:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Selecting-active-Tab-from-Tab-Box-when-a-numbereditbox-is/m-p/56074#M31470</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-04-28T22:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting active Tab from Tab Box when a numbereditbox is present (JMP 13)</title>
      <link>https://community.jmp.com/t5/Discussions/Selecting-active-Tab-from-Tab-Box-when-a-numbereditbox-is/m-p/56219#M31557</link>
      <description>&lt;P&gt;Thanks a lot gzmorgan0 for sharing this workaround!&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works indeed!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 08:51:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Selecting-active-Tab-from-Tab-Box-when-a-numbereditbox-is/m-p/56219#M31557</guid>
      <dc:creator>Eduardo</dc:creator>
      <dc:date>2018-05-02T08:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting active Tab from Tab Box when a numbereditbox is present (JMP 13)</title>
      <link>https://community.jmp.com/t5/Discussions/Selecting-active-Tab-from-Tab-Box-when-a-numbereditbox-is/m-p/378702#M62853</link>
      <description>&lt;P&gt;Greetings - thank you for reporting this issue. For anyone finding this thread, i can confirm that it has been addressed in JMP 15.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 14:39:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Selecting-active-Tab-from-Tab-Box-when-a-numbereditbox-is/m-p/378702#M62853</guid>
      <dc:creator>Audrey_Shull</dc:creator>
      <dc:date>2021-04-21T14:39:39Z</dc:date>
    </item>
  </channel>
</rss>

