<?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 add another layer of Edit boxes Button in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/add-another-layer-of-Edit-boxes-Button/m-p/872612#M103679</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to create an add in that compares different Sampling Plans using the OC curves. I would like to allow the user to add many input layers/Lines using an "Add more" button. (See picture below)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Georgios_Tsim_0-1746793978751.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/75634i1BAAC21CBA5F1298/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Georgios_Tsim_0-1746793978751.png" alt="Georgios_Tsim_0-1746793978751.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Therefore&lt;/P&gt;
&lt;P&gt;The part of my script that I am focused on is:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;ob1 = Outline Box( "Type in your own parameter values", 
			 H List Box(
				H List Box( Text Box( "LQ:" , &amp;lt;&amp;lt; set width(20)), neb_LQ = Number Edit Box(LQ, &amp;lt;&amp;lt; set function(_expr) )),
				Spacer box(Size(20,20)),
				H List Box( Text Box( "Batch size (N):" , &amp;lt;&amp;lt; set width(80)), neb_N = Number Edit Box(N_batch , &amp;lt;&amp;lt; set function(_expr))),
				Spacer box(Size(20,20)),
				//H List Box( Text Box( "LQ:" , &amp;lt;&amp;lt; set width(20)), neb_LQ = Number Edit Box(LQ, &amp;lt;&amp;lt; set function(_expr) )),
				//Spacer box(Size(20,20)),
				H List Box( Text Box( "Acceptance limit (Ac):" , &amp;lt;&amp;lt; set width(120)), neb_Ac = Number Edit Box(Ac, &amp;lt;&amp;lt; set function(_expr))),
				Spacer box(Size(20,20)),
				H List Box( Text Box( "Alpha:" , &amp;lt;&amp;lt; set width(120)), neb_alpha = Number Edit Box(alpha, &amp;lt;&amp;lt; set function(_expr)))
			)		
		),
	);
	// collapse the outline boxes
	Button Box( "Press Me",ADD_button() )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Do you have any advice of a smart way to implement the above?&lt;/P&gt;</description>
    <pubDate>Fri, 09 May 2025 12:36:10 GMT</pubDate>
    <dc:creator>Georgios_Tsim</dc:creator>
    <dc:date>2025-05-09T12:36:10Z</dc:date>
    <item>
      <title>add another layer of Edit boxes Button</title>
      <link>https://community.jmp.com/t5/Discussions/add-another-layer-of-Edit-boxes-Button/m-p/872612#M103679</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to create an add in that compares different Sampling Plans using the OC curves. I would like to allow the user to add many input layers/Lines using an "Add more" button. (See picture below)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Georgios_Tsim_0-1746793978751.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/75634i1BAAC21CBA5F1298/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Georgios_Tsim_0-1746793978751.png" alt="Georgios_Tsim_0-1746793978751.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Therefore&lt;/P&gt;
&lt;P&gt;The part of my script that I am focused on is:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;ob1 = Outline Box( "Type in your own parameter values", 
			 H List Box(
				H List Box( Text Box( "LQ:" , &amp;lt;&amp;lt; set width(20)), neb_LQ = Number Edit Box(LQ, &amp;lt;&amp;lt; set function(_expr) )),
				Spacer box(Size(20,20)),
				H List Box( Text Box( "Batch size (N):" , &amp;lt;&amp;lt; set width(80)), neb_N = Number Edit Box(N_batch , &amp;lt;&amp;lt; set function(_expr))),
				Spacer box(Size(20,20)),
				//H List Box( Text Box( "LQ:" , &amp;lt;&amp;lt; set width(20)), neb_LQ = Number Edit Box(LQ, &amp;lt;&amp;lt; set function(_expr) )),
				//Spacer box(Size(20,20)),
				H List Box( Text Box( "Acceptance limit (Ac):" , &amp;lt;&amp;lt; set width(120)), neb_Ac = Number Edit Box(Ac, &amp;lt;&amp;lt; set function(_expr))),
				Spacer box(Size(20,20)),
				H List Box( Text Box( "Alpha:" , &amp;lt;&amp;lt; set width(120)), neb_alpha = Number Edit Box(alpha, &amp;lt;&amp;lt; set function(_expr)))
			)		
		),
	);
	// collapse the outline boxes
	Button Box( "Press Me",ADD_button() )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Do you have any advice of a smart way to implement the above?&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 12:36:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/add-another-layer-of-Edit-boxes-Button/m-p/872612#M103679</guid>
      <dc:creator>Georgios_Tsim</dc:creator>
      <dc:date>2025-05-09T12:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: add another layer of Edit boxes Button</title>
      <link>https://community.jmp.com/t5/Discussions/add-another-layer-of-Edit-boxes-Button/m-p/872623#M103681</link>
      <description>&lt;P&gt;What should happen when the user presses "Add more" button? Some new elements should be created? What should those elements do? Are those functionalities already implemented in such a way, that they work with any number of elements?&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 13:00:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/add-another-layer-of-Edit-boxes-Button/m-p/872623#M103681</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-05-09T13:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: add another layer of Edit boxes Button</title>
      <link>https://community.jmp.com/t5/Discussions/add-another-layer-of-Edit-boxes-Button/m-p/872624#M103682</link>
      <description>&lt;P&gt;Just create another line that the user will be able to import a second LQ, N, Ac, and Alpha value and saves them in a list so that I can then use the values to plot multiple OC curves.&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 13:08:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/add-another-layer-of-Edit-boxes-Button/m-p/872624#M103682</guid>
      <dc:creator>Georgios_Tsim</dc:creator>
      <dc:date>2025-05-09T13:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: add another layer of Edit boxes Button</title>
      <link>https://community.jmp.com/t5/Discussions/add-another-layer-of-Edit-boxes-Button/m-p/872626#M103684</link>
      <description>&lt;P&gt;This is very quickly thrown together&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

lub_expr = Expr(ob1 &amp;lt;&amp;lt; Append(Lineup Box(N Col(8), Spacing(10),
	Text Box("LQ:", &amp;lt;&amp;lt;set width(20)), 
	Number Edit Box(1, &amp;lt;&amp;lt;set function(_expr)),
	Text Box("Batch size (N):", &amp;lt;&amp;lt;set width(80)), 
	Number Edit Box(1, &amp;lt;&amp;lt;set function(_expr)),
	Text Box("Acceptance limit (Ac):", &amp;lt;&amp;lt;set width(120)), 
	Number Edit Box(1, &amp;lt;&amp;lt;set function(_expr)),
	Text Box("Alpha:", &amp;lt;&amp;lt;set width(120)), 
	Number Edit Box(1, &amp;lt;&amp;lt;set function(_expr))
)));
nw = New Window("",
	ob1 = Outline Box("Type in your own parameter values",
		
	),
	Button Box("Press Me", lub_expr)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Using Table Box with Col boxes could result in cleaner UI&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 13:19:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/add-another-layer-of-Edit-boxes-Button/m-p/872626#M103684</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-05-09T13:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: add another layer of Edit boxes Button</title>
      <link>https://community.jmp.com/t5/Discussions/add-another-layer-of-Edit-boxes-Button/m-p/872682#M103688</link>
      <description>&lt;P&gt;An alternative approach would use a Table Box with Number Col Edit Box and String Col Edit Box elements. You can easily add a row to a table box.&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 17:26:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/add-another-layer-of-Edit-boxes-Button/m-p/872682#M103688</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2025-05-09T17:26:49Z</dc:date>
    </item>
  </channel>
</rss>

