<?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 Combining Number Edit Boxes in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Combining-Number-Edit-Boxes/m-p/30884#M19592</link>
    <description>&lt;P&gt;I am using Number Edit Boxes to get user input in a JMP 13 script, like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Window( "A", Modal, neb1 = Number Edit Box( 1 ) );
A = neb1 &amp;lt;&amp;lt; get;

New Window( "B", Modal, neb2 = Number Edit Box( 2 ) );
B = neb2 &amp;lt;&amp;lt; get;

New Window( "C", modal, neb3 = Number Edit Box( 3 ));
C = neb3 &amp;lt;&amp;lt; get;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I would like to combine them into a single box with one "OK" button. The manuals don't seem to cover this, or I don't understand. Can anyone help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Nov 2016 17:48:12 GMT</pubDate>
    <dc:creator>mwechtal</dc:creator>
    <dc:date>2016-11-30T17:48:12Z</dc:date>
    <item>
      <title>Combining Number Edit Boxes</title>
      <link>https://community.jmp.com/t5/Discussions/Combining-Number-Edit-Boxes/m-p/30884#M19592</link>
      <description>&lt;P&gt;I am using Number Edit Boxes to get user input in a JMP 13 script, like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Window( "A", Modal, neb1 = Number Edit Box( 1 ) );
A = neb1 &amp;lt;&amp;lt; get;

New Window( "B", Modal, neb2 = Number Edit Box( 2 ) );
B = neb2 &amp;lt;&amp;lt; get;

New Window( "C", modal, neb3 = Number Edit Box( 3 ));
C = neb3 &amp;lt;&amp;lt; get;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I would like to combine them into a single box with one "OK" button. The manuals don't seem to cover this, or I don't understand. Can anyone help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 17:48:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Combining-Number-Edit-Boxes/m-p/30884#M19592</guid>
      <dc:creator>mwechtal</dc:creator>
      <dc:date>2016-11-30T17:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Combining Number Edit Boxes</title>
      <link>https://community.jmp.com/t5/Discussions/Combining-Number-Edit-Boxes/m-p/30885#M19593</link>
      <description>&lt;P&gt;Combine them into one New Window call:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Window( "Get Numbers", &amp;lt;&amp;lt; modal(),
	hlistbox(
		textbox("Enter value for A: "),
		neb1 = Number Edit Box( 1 ),
	),
	hlistbox(
		textbox("Enter value for B: "),
		neb2 = Number Edit Box( 2 ),
	),
	hlistbox(
		textbox("Enter value for C: "),
		neb3 = Number Edit Box( 3 ),
	),
	ok_btn = button box("OK",
		A = neb1 &amp;lt;&amp;lt; get;
		B = neb2 &amp;lt;&amp;lt; get;
		C = neb3 &amp;lt;&amp;lt; get;
	),
);
print(a, b, c);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Nov 2016 16:05:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Combining-Number-Edit-Boxes/m-p/30885#M19593</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2016-11-30T16:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Combining Number Edit Boxes</title>
      <link>https://community.jmp.com/t5/Discussions/Combining-Number-Edit-Boxes/m-p/30886#M19594</link>
      <description>&lt;P&gt;NumberEditBox is an example of a display box. &amp;nbsp;You can put multiple display boxes in a window by separating them with a comma. &amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Window("ABC", &amp;lt;&amp;lt;Modal,
	neb1 = Number Edit Box( 1 ),
	neb2 = Number Edit Box( 1 ),
	neb3 = Number Edit Box( 1 ),
);
A = neb1 &amp;lt;&amp;lt; get;
B = neb2 &amp;lt;&amp;lt; get;
C = neb3 &amp;lt;&amp;lt; get;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For further composition you can use display boxes that control layout: V List Box, H List Box, Lineup Box:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nw = New Window("ABC", &amp;lt;&amp;lt;Modal,
	Lineup Box(NCol(2),
		Text Box("A: "), neb1 = Number Edit Box( 1 ),
		Text Box("B: "), neb2 = Number Edit Box( 1 ),
		Text Box("C: "), neb3 = Number Edit Box( 1 ),
	)
);
If (nw["Button"]==-1,
	Throw() // user cancelled
);
A = neb1 &amp;lt;&amp;lt; get;
B = neb2 &amp;lt;&amp;lt; get;
C = neb3 &amp;lt;&amp;lt; get;
show(A,B,C);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 16:07:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Combining-Number-Edit-Boxes/m-p/30886#M19594</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2016-11-30T16:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Combining Number Edit Boxes</title>
      <link>https://community.jmp.com/t5/Discussions/Combining-Number-Edit-Boxes/m-p/30887#M19595</link>
      <description>&lt;P&gt;And I quickly get 2 usable answers! I love the JMP community!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other than the included &lt;EM&gt;&lt;STRONG&gt;Scripting Guide&lt;/STRONG&gt;&lt;/EM&gt;, or &lt;EM&gt;&lt;STRONG&gt;Jump into JMP Scripting&lt;/STRONG&gt;&lt;/EM&gt; is there a manual that covers scripts? Hopefully with lots of examples?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 16:18:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Combining-Number-Edit-Boxes/m-p/30887#M19595</guid>
      <dc:creator>mwechtal</dc:creator>
      <dc:date>2016-11-30T16:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Combining Number Edit Boxes</title>
      <link>https://community.jmp.com/t5/Discussions/Combining-Number-Edit-Boxes/m-p/30898#M19604</link>
      <description>&lt;P&gt;Another book to recommend is &lt;A href="http://www.jmp.com/en_us/redirects/books/intermediate-advanced-users/jsl-companion--applications-of-the-jmp-scripting-language.html" target="_blank"&gt;JSL Companion: Common Applications of the JMP Scripting Language&lt;/A&gt;. It is, just as you asked, full of examples of real world tasks.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 17:46:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Combining-Number-Edit-Boxes/m-p/30898#M19604</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2016-11-30T17:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Combining Number Edit Boxes</title>
      <link>https://community.jmp.com/t5/Discussions/Combining-Number-Edit-Boxes/m-p/30899#M19605</link>
      <description>&lt;P&gt;Here is a detailed example scenario that you can work through:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.pega-analytics.co.uk/blog/take-this-jsl-challenge/" target="_blank"&gt;take-this-jsl-challenge&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;(links to an external website: a blog I maintain for JMP/JSL discussions)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 17:50:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Combining-Number-Edit-Boxes/m-p/30899#M19605</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2016-11-30T17:50:53Z</dc:date>
    </item>
  </channel>
</rss>

