<?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: How could I build display boxes in modal window basing on radiobox selection in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-could-I-build-display-boxes-in-modal-window-basing-on/m-p/688658#M87444</link>
    <description>&lt;P&gt;When I click option "With Current Limit"，a new list box would show up at the right of panel "Select Columns", if I click option “Without Current Limit”, the list box would be deleted,&amp;nbsp; if I click option 1 --&amp;gt; option 2 --&amp;gt; option 1 --&amp;gt; option 2, it works well. But if I click option1 multipe times, multiple list boxes would show up, this would make my user confused, below is the image shows that 4 list boxes are generated after I click 'option 1' 4 times.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Atong_0-1697719296671.png" style="width: 909px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57808i745276230F41794F/image-dimensions/909x275?v=v2" width="909" height="275" role="button" title="Atong_0-1697719296671.png" alt="Atong_0-1697719296671.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Oct 2023 12:45:21 GMT</pubDate>
    <dc:creator>Atong</dc:creator>
    <dc:date>2023-10-19T12:45:21Z</dc:date>
    <item>
      <title>How could I build display boxes in modal window basing on radiobox selection</title>
      <link>https://community.jmp.com/t5/Discussions/How-could-I-build-display-boxes-in-modal-window-basing-on/m-p/688592#M87433</link>
      <description>&lt;P&gt;My code is like below, it works well if I click option 1 and 2 one by one, but multiple list box would be generated after I continuously click the option 1 which would make my users confused. How could I optimize the code? Many thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another two question are:&lt;/P&gt;&lt;P&gt;1. If I delete a panel box, would the boxed(like text box) be deleted too or just not displayed?&lt;/P&gt;&lt;P&gt;2. How could I get the hierarchy of a modal window?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;
dt = Current Data Table();

If( Is Empty( dt ),
	Stop(),
	nc = N Col( dt )
);



openDTs = {};
For( i = 1, i &amp;lt;= N Table(), i++,
	Insert Into( openDTs, Data Table( i ) &amp;lt;&amp;lt; getname )
);

tableSelBox = Expr(
	//Panel Box( "Select Limit Table", 
	
	lbtableSel = List Box( openDTs, width( 150 ), nlines( 6 ), maxselected( 1 ), ), 
		
		
	//),

);

nw = New Window( "Auto Plot",
	modal,
	hb = H List Box(
		V List Box(
			Panel Box( "Mode Selection",
				Spacer Box( size( 100, 0 ) ),
				rbMethod = Radio Box(
					{"With Current Limit", "Without Current Limit"},
					rbSel = rbMethod &amp;lt;&amp;lt; get selected;
					dbAfterpb = colSelLstBox &amp;lt;&amp;lt; Next();				

					If( rbSel == "With Current Limit",
						pb &amp;lt;&amp;lt; Sib Append( tableSelBox ),

					);
					
					If( rbSel == "Without Current Limit", 

						dbAfterpb &amp;lt;&amp;lt; Delete;
						lbtableSel &amp;lt;&amp;lt; Delete
					),

				),

			), 


			Panel Box( "Action",
				Spacer Box( size( 100, 0 ) ),
				okBb = Button Box( "OK", Stop() ), 
			
				cancelBb = Button Box( "Cancel", Stop() ),

			), 

		), 
		
		pb = Panel Box( "Select Columns",
			colSelLstBox = Filter Col Selector( dt, nlines( Min( nc, 13 ) ) ), 

		), 
		
		pb &amp;lt;&amp;lt; Sib Append( tableSelBox ), 
		

	), 
		
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Atong_0-1697702802743.png" style="width: 836px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57803iCADB6C37E05AFC0D/image-dimensions/836x253?v=v2" width="836" height="253" role="button" title="Atong_0-1697702802743.png" alt="Atong_0-1697702802743.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 19 Oct 2023 08:07:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-could-I-build-display-boxes-in-modal-window-basing-on/m-p/688592#M87433</guid>
      <dc:creator>Atong</dc:creator>
      <dc:date>2023-10-19T08:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: How could I build display boxes in modal window basing on radiobox selection</title>
      <link>https://community.jmp.com/t5/Discussions/How-could-I-build-display-boxes-in-modal-window-basing-on/m-p/688601#M87434</link>
      <description>&lt;P&gt;What would you like the user to be able to do?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. If you delete the Panel Box() objects inside should also be deleted (use &amp;lt;&amp;lt; Delete Box on your panel box and try what returns you get from the old references inside it, they are something like DisplayBox[] instead of&amp;nbsp;DisplayBox[FilterColSelector] for example).&lt;/P&gt;
&lt;P&gt;2. Which hierarchy? If you wish to see the Tree Structure or Properties, removing modal temporarily is easiest option&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 08:22:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-could-I-build-display-boxes-in-modal-window-basing-on/m-p/688601#M87434</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-10-19T08:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: How could I build display boxes in modal window basing on radiobox selection</title>
      <link>https://community.jmp.com/t5/Discussions/How-could-I-build-display-boxes-in-modal-window-basing-on/m-p/688613#M87436</link>
      <description>&lt;P&gt;Maybe this is just me, but it would be a lot easier to understand your problem if you could share a table belonging to your script.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 09:45:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-could-I-build-display-boxes-in-modal-window-basing-on/m-p/688613#M87436</guid>
      <dc:creator>Ressel</dc:creator>
      <dc:date>2023-10-19T09:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: How could I build display boxes in modal window basing on radiobox selection</title>
      <link>https://community.jmp.com/t5/Discussions/How-could-I-build-display-boxes-in-modal-window-basing-on/m-p/688658#M87444</link>
      <description>&lt;P&gt;When I click option "With Current Limit"，a new list box would show up at the right of panel "Select Columns", if I click option “Without Current Limit”, the list box would be deleted,&amp;nbsp; if I click option 1 --&amp;gt; option 2 --&amp;gt; option 1 --&amp;gt; option 2, it works well. But if I click option1 multipe times, multiple list boxes would show up, this would make my user confused, below is the image shows that 4 list boxes are generated after I click 'option 1' 4 times.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Atong_0-1697719296671.png" style="width: 909px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57808i745276230F41794F/image-dimensions/909x275?v=v2" width="909" height="275" role="button" title="Atong_0-1697719296671.png" alt="Atong_0-1697719296671.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 12:45:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-could-I-build-display-boxes-in-modal-window-basing-on/m-p/688658#M87444</guid>
      <dc:creator>Atong</dc:creator>
      <dc:date>2023-10-19T12:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: How could I build display boxes in modal window basing on radiobox selection</title>
      <link>https://community.jmp.com/t5/Discussions/How-could-I-build-display-boxes-in-modal-window-basing-on/m-p/688663#M87446</link>
      <description>&lt;P&gt;Sorry for making you confused. The problem I met is not related to certain table but a UI development question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I mean that how to use radio box to generate display boxes, like when click option 1 is to generate a list box A, option 2 is to generate a list box B, option 3 do nothing. What's more, if I click option 1 and then click option 2, the list box A would be deleted and a new list box B would show up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my code, all things work well&amp;nbsp; &lt;SPAN&gt;if I click&amp;nbsp;&amp;nbsp;option 1 --&amp;gt; option 2 --&amp;gt; option 1 --&amp;gt; option 2.... but if I click option1 multipe times, multiple list boxes would show up, this would make my user confused, below is the image shows that 4 list boxes are generated after I click 'option 1' 4 times.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Atong_1-1697719786763.png" style="width: 906px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57809i0A4309ED17F96ABD/image-dimensions/906x274?v=v2" width="906" height="274" role="button" title="Atong_1-1697719786763.png" alt="Atong_1-1697719786763.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 12:51:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-could-I-build-display-boxes-in-modal-window-basing-on/m-p/688663#M87446</guid>
      <dc:creator>Atong</dc:creator>
      <dc:date>2023-10-19T12:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: How could I build display boxes in modal window basing on radiobox selection</title>
      <link>https://community.jmp.com/t5/Discussions/How-could-I-build-display-boxes-in-modal-window-basing-on/m-p/688664#M87447</link>
      <description>&lt;P&gt;You can maybe add additional check when With Current Limit is the option to check if lbtableSel is empty&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If(rbSel == "With Current Limit" &amp;amp; is empty(lbtableSel),
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Oct 2023 12:56:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-could-I-build-display-boxes-in-modal-window-basing-on/m-p/688664#M87447</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-10-19T12:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: How could I build display boxes in modal window basing on radiobox selection</title>
      <link>https://community.jmp.com/t5/Discussions/How-could-I-build-display-boxes-in-modal-window-basing-on/m-p/688806#M87476</link>
      <description>&lt;P&gt;Thanks, your code works well in non-modal mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In modal mode, if I click option 1 --&amp;gt; option 2 -- &amp;gt; option 1, the list box will not show up, but when I tried additional option 2 --&amp;gt; option 1, it shows up! Basing on my investigation, I found seems there is a non visible List Box behind panel&amp;nbsp;colSelLstBox, I can't call it and detele it, but after option 2 is operated 2 times, it will be finally deleted, so option 1 can work. So interesting....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My final solution in modal mode is to add a size(0,0) spacer box then I can get the handler of it, judge if it exist, delete or generate.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 23:40:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-could-I-build-display-boxes-in-modal-window-basing-on/m-p/688806#M87476</guid>
      <dc:creator>Atong</dc:creator>
      <dc:date>2023-10-19T23:40:16Z</dc:date>
    </item>
  </channel>
</rss>

