<?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 JMP Application : access dynamic panel box child elements in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JMP-Application-access-dynamic-panel-box-child-elements/m-p/803092#M97980</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i am writing a app code which will dynamically create a textbox label and text edit box when user specifies how many is needed on button click&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;textEditBoxList = {};  // global variable&lt;BR /&gt;LoadSteps = function ({thisBox}, {Default Local},
	steps_number = NumberEdit1 &amp;lt;&amp;lt; Get;   // get number of items from number edit box
	For(i=1, i&amp;lt;= steps_number,i++,
		textBox = Text Box("Step : " || Char(i));
		textBox &amp;lt;&amp;lt; Set Width(100);
		
		textEBox = Text Edit Box( "Enter text here...");
		textEBox &amp;lt;&amp;lt; Set Width(300);
		
		Insert Into(textEditBoxList,textEBox);
		print(textEditBoxList); // Its always empty
		
		Panel1 &amp;lt;&amp;lt; Append(
			H List Box(
				textBox,
				textEBox
			)
		);
	);
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now on another button click i want to access the contents of textEBox of all child elements of panel box.&lt;/P&gt;&lt;P&gt;i tried creating a global variable and accessing through it but dosent work. any alternative or better way to achieve this would be helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&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>Tue, 01 Oct 2024 21:18:47 GMT</pubDate>
    <dc:creator>ComplexNerd</dc:creator>
    <dc:date>2024-10-01T21:18:47Z</dc:date>
    <item>
      <title>JMP Application : access dynamic panel box child elements</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Application-access-dynamic-panel-box-child-elements/m-p/803092#M97980</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i am writing a app code which will dynamically create a textbox label and text edit box when user specifies how many is needed on button click&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;textEditBoxList = {};  // global variable&lt;BR /&gt;LoadSteps = function ({thisBox}, {Default Local},
	steps_number = NumberEdit1 &amp;lt;&amp;lt; Get;   // get number of items from number edit box
	For(i=1, i&amp;lt;= steps_number,i++,
		textBox = Text Box("Step : " || Char(i));
		textBox &amp;lt;&amp;lt; Set Width(100);
		
		textEBox = Text Edit Box( "Enter text here...");
		textEBox &amp;lt;&amp;lt; Set Width(300);
		
		Insert Into(textEditBoxList,textEBox);
		print(textEditBoxList); // Its always empty
		
		Panel1 &amp;lt;&amp;lt; Append(
			H List Box(
				textBox,
				textEBox
			)
		);
	);
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now on another button click i want to access the contents of textEBox of all child elements of panel box.&lt;/P&gt;&lt;P&gt;i tried creating a global variable and accessing through it but dosent work. any alternative or better way to achieve this would be helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&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>Tue, 01 Oct 2024 21:18:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Application-access-dynamic-panel-box-child-elements/m-p/803092#M97980</guid>
      <dc:creator>ComplexNerd</dc:creator>
      <dc:date>2024-10-01T21:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Application : access dynamic panel box child elements</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Application-access-dynamic-panel-box-child-elements/m-p/803132#M97989</link>
      <description>&lt;P&gt;Either use XPath to get a list of references to a Text Edit Box (or text box) or utilize a list like you are doing&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

nw = New Window("", 
	panel1 = Lineup Box(N Col(2))
);

steps_number = 3;
textEditBoxList = {};

For(i = 1, i &amp;lt;= steps_number, i++,
	textBox = Text Box("Step : " || Char(i));
	textBox &amp;lt;&amp;lt; Set Width(100);
	
	textEBox = Text Edit Box("Enter text here...");
	textEBox &amp;lt;&amp;lt; Set Width(300);
	
	Insert Into(textEditBoxList, textEBox);
	
	Panel1 &amp;lt;&amp;lt; Append(H List Box(textBox, textEBox));
);

tebs = panel1 &amp;lt;&amp;lt; XPath("//TextEditBox");

show(tebs, textEditBoxList);

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Oct 2024 04:14:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Application-access-dynamic-panel-box-child-elements/m-p/803132#M97989</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-10-02T04:14:27Z</dc:date>
    </item>
  </channel>
</rss>

