<?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: Updating column list box using list stored in variable not working as expected. Is this how it is meant to be? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Updating-column-list-box-using-list-stored-in-variable-not/m-p/687237#M87285</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/15435"&gt;@Ressel&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11634"&gt;@Thierry_S&lt;/a&gt;, weirdly and unfortunately, this does not work.&amp;nbsp;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code is almost correct, but you have to use&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;clb = Col List Box(Data Table(dt), all, &amp;lt;&amp;lt; Set Data Type ("numeric"))&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;you can also use&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;clb = Col List Box(all, &amp;lt;&amp;lt; Set Data Type ("numeric"), Data Table(dt))&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but you should not forget the "indicator" *) Data Table().&lt;/P&gt;&lt;P&gt;As indicated in my previous post (below), according to scripting guide, it has to be&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1697282114050.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57622iF1A6DDB1656BD190/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1697282114050.png" alt="hogi_0-1697282114050.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like with the column names, it doesn't matter if you use the name or the reference.&lt;/P&gt;&lt;P&gt;But it has to be Data Table (name or table&amp;nbsp; reference) and not just the argument without an indicator..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a bit misleading, because often Data Table(name) can be replaced with a data table reference :)&lt;/img&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But here, the Data Table is an optional argument - and therefore, there has to be an indicator&amp;nbsp; *) such that Jmp knows what it is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*) What is the official name for "indicator"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 14 Oct 2023 11:22:41 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2023-10-14T11:22:41Z</dc:date>
    <item>
      <title>Updating column list box using list stored in variable not working as expected. Is this how it is meant to be?</title>
      <link>https://community.jmp.com/t5/Discussions/Updating-column-list-box-using-list-stored-in-variable-not/m-p/687126#M87270</link>
      <description>&lt;P&gt;I am trying to correct previous "sins" in a script I wrote by updating it with unambiguous references, so that the script refers to the one table I (want to) tell it to, even though another table may be the current (or an "interfering") table. I've tried to reconstruct the problem below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

// this is the table i want to work with
dt = New Table( "Target table", invisible,
	Add Rows( 3 ),
	New Column( "Name_1",
		Character( 1 ),
		"Nominal",
		Set Values( {"A", "B", "C"} ),
		Set Display Width( 45 )
	),
	New Column( "Name_2",
		Character( 1 ),
		"Nominal",
		Set Values( {"X", "Y", "Z"} ),
		Set Display Width( 45 )
	),
	New Column( "NumericRight",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [1, 2, 3] ),
		Set Display Width( 78 )
	),
	New Column( "NumericAlso",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [7, 8, 9] )
	)
);

dt2 = New Table( "Interfering table", invisible,
	Add Rows( 3 ),
	New Column( "Name_1",
		Character( 1 ),
		"Nominal",
		Set Values( {"D", "E", "F"} ),
		Set Display Width( 45 )
	),
	New Column( "Name_2",
		Character( 1 ),
		"Nominal",
		Set Values( {"U", "V", "W"} ),
		Set Display Width( 45 )
	),
	New Column( "NumericInterference",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [4, 5, 6] )
	),
	New Column( "MoreNumeric",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [7, 8, 9] )
	)
);



// get lists
lstName_1 = Associative Array( dt:Name_1 ) &amp;lt;&amp;lt; Get Keys; 
lstName_2 = Associative Array( dt:Name_2 ) &amp;lt;&amp;lt; Get Keys; 
colList = dt &amp;lt;&amp;lt; Get Column Names( "Numeric" );
	
// window with radio buttons &amp;amp; col list box
New Window( "Select values",
	Show Menu( 0 ),
	Show Toolbars( 0 ), 
	Border Box( Top( 0 ), Bottom( 20 ), Left( 20 ), Right( 10 ),
		H List Box(
			
			Panel Box( "Name_1",
				Radio Box(
					Eval List( lstName_1 )
				) 
			),
			
			Panel Box( "Name_2",
				Radio Box(
					Eval List( lstName_2 )
				)
			),
			
			Panel Box( "Numeric Columns",
				clb = Col List Box(	)
			),
			clb &amp;lt;&amp;lt; Append( colList ); // making me cry ...
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I want to see&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ressel_1-1697225236072.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57608i7A638141B5DACE87/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ressel_1-1697225236072.png" alt="Ressel_1-1697225236072.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I invariably see if my "target table" is not the current table&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ressel_0-1697225153301.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57607iCED1A77F3D67D286/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ressel_0-1697225153301.png" alt="Ressel_0-1697225153301.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What completely confuses me is that when I change the name of&amp;nbsp;&lt;FONT face="courier new,courier"&gt;dt2:NumericInterference&lt;/FONT&gt; to &lt;FONT face="courier new,courier"&gt;dt2:NumericRight&lt;/FONT&gt;, I get this result&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ressel_2-1697225490978.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57609i5612ADA19ADE9F7B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ressel_2-1697225490978.png" alt="Ressel_2-1697225490978.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why is dt2 not letting my script do the work I want it to do? Why is the name change of a column in dt2 affecting what gets into the column list box? I've tried a few variations of moving the &lt;FONT face="courier new,courier"&gt;colList&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;variable and also tried wrapping it into &lt;FONT face="courier new,courier"&gt;Eval List()&lt;/FONT&gt;, without "luck".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Searching again in the community I found this&amp;nbsp;&lt;LI-MESSAGE title="Need help with populating Col List Box." uid="479062" url="https://community.jmp.com/t5/Discussions/Need-help-with-populating-Col-List-Box/m-p/479062#U479062" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt; If there's another solution, thanks for letting me know. Alternatively, is this how it is meant to be, and if so, what is the meaning of this?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 19:52:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Updating-column-list-box-using-list-stored-in-variable-not/m-p/687126#M87270</guid>
      <dc:creator>Ressel</dc:creator>
      <dc:date>2023-10-13T19:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Updating column list box using list stored in variable not working as expected. Is this how it is meant to be?</title>
      <link>https://community.jmp.com/t5/Discussions/Updating-column-list-box-using-list-stored-in-variable-not/m-p/687156#M87273</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;At first glance, you only need to use the syntax below to get the list of numerical columns from table dt:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;clb = Col List Box(dt, all, &amp;lt;&amp;lt; Set Data Type ("numeric"))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also, it is not clear how the line: "clb &amp;lt;&amp;lt; append (collist)" could work since the Get Column Names returns a list of Names and not Columns.&lt;/P&gt;
&lt;P&gt;Finally, I don't think you can use the Col List Box across multiple tables (Correct me if I am wrong here).&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;TS&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 20:35:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Updating-column-list-box-using-list-stored-in-variable-not/m-p/687156#M87273</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2023-10-13T20:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Updating column list box using list stored in variable not working as expected. Is this how it is meant to be?</title>
      <link>https://community.jmp.com/t5/Discussions/Updating-column-list-box-using-list-stored-in-variable-not/m-p/687168#M87275</link>
      <description>&lt;P&gt;previous post:&lt;BR /&gt;Seems that the col list box just accepts columns from the data table which was "current" when the col list box was created.&lt;/P&gt;&lt;P&gt;If dt2 doesn't contain the respective column, it cannot be added.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;current data table(dt);
	
// window with radio buttons &amp;amp; col list box
New Window( "Select values",&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;is no option for you?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If not, then use&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;clb = Col List Box( Data Table(dt)	)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;to specify which data table should be used for the col list box:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1697230466333.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57611i9CD5384C5EC48F88/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1697230466333.png" alt="hogi_0-1697230466333.png" /&gt;&lt;/span&gt;&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>Sat, 14 Oct 2023 11:23:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Updating-column-list-box-using-list-stored-in-variable-not/m-p/687168#M87275</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-10-14T11:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Updating column list box using list stored in variable not working as expected. Is this how it is meant to be?</title>
      <link>https://community.jmp.com/t5/Discussions/Updating-column-list-box-using-list-stored-in-variable-not/m-p/687171#M87276</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11634"&gt;@Thierry_S&lt;/a&gt;&amp;nbsp;, I will try this tomorrow. However, if dt2 is commented out of the script, the Col List Box updates as expected, so it definitely works (see also first screenshot in my original posting).&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 21:22:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Updating-column-list-box-using-list-stored-in-variable-not/m-p/687171#M87276</guid>
      <dc:creator>Ressel</dc:creator>
      <dc:date>2023-10-13T21:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Updating column list box using list stored in variable not working as expected. Is this how it is meant to be?</title>
      <link>https://community.jmp.com/t5/Discussions/Updating-column-list-box-using-list-stored-in-variable-not/m-p/687172#M87277</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;&amp;nbsp;, thanks, I will also try this tomorrow and let you know the result.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 21:22:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Updating-column-list-box-using-list-stored-in-variable-not/m-p/687172#M87277</guid>
      <dc:creator>Ressel</dc:creator>
      <dc:date>2023-10-13T21:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Updating column list box using list stored in variable not working as expected. Is this how it is meant to be?</title>
      <link>https://community.jmp.com/t5/Discussions/Updating-column-list-box-using-list-stored-in-variable-not/m-p/687232#M87283</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11634"&gt;@Thierry_S&lt;/a&gt;, weirdly and unfortunately, this does not work. In the script I've initially posted I made the following changes per your proposal:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// this part was revised ...
Panel Box( "Numeric Columns",
	clb = Col List Box(	)
),
clb &amp;lt;&amp;lt; Append( colList );   // making me cry ...


// ... to look like this. 
Panel Box( "Numeric Columns",
clb = Col List Box( dt, all, &amp;lt;&amp;lt; Set Data Type ( "numeric" ) ) // this adds the numeric columns from dt2. Why???
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This gave the below result, meaning, the numeric columns from dt2 where added to the column list box, whereas what I want are the numeric columns from dt.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ressel_0-1697280271649.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57621i3BB3045671E9871C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ressel_0-1697280271649.png" alt="Ressel_0-1697280271649.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still, very useful learning for me. Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 14 Oct 2023 10:58:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Updating-column-list-box-using-list-stored-in-variable-not/m-p/687232#M87283</guid>
      <dc:creator>Ressel</dc:creator>
      <dc:date>2023-10-14T10:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Updating column list box using list stored in variable not working as expected. Is this how it is meant to be?</title>
      <link>https://community.jmp.com/t5/Discussions/Updating-column-list-box-using-list-stored-in-variable-not/m-p/687237#M87285</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/15435"&gt;@Ressel&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11634"&gt;@Thierry_S&lt;/a&gt;, weirdly and unfortunately, this does not work.&amp;nbsp;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code is almost correct, but you have to use&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;clb = Col List Box(Data Table(dt), all, &amp;lt;&amp;lt; Set Data Type ("numeric"))&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;you can also use&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;clb = Col List Box(all, &amp;lt;&amp;lt; Set Data Type ("numeric"), Data Table(dt))&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but you should not forget the "indicator" *) Data Table().&lt;/P&gt;&lt;P&gt;As indicated in my previous post (below), according to scripting guide, it has to be&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1697282114050.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57622iF1A6DDB1656BD190/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1697282114050.png" alt="hogi_0-1697282114050.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like with the column names, it doesn't matter if you use the name or the reference.&lt;/P&gt;&lt;P&gt;But it has to be Data Table (name or table&amp;nbsp; reference) and not just the argument without an indicator..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a bit misleading, because often Data Table(name) can be replaced with a data table reference :)&lt;/img&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But here, the Data Table is an optional argument - and therefore, there has to be an indicator&amp;nbsp; *) such that Jmp knows what it is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*) What is the official name for "indicator"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Oct 2023 11:22:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Updating-column-list-box-using-list-stored-in-variable-not/m-p/687237#M87285</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-10-14T11:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Updating column list box using list stored in variable not working as expected. Is this how it is meant to be?</title>
      <link>https://community.jmp.com/t5/Discussions/Updating-column-list-box-using-list-stored-in-variable-not/m-p/687240#M87286</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;, I am amazed! Thank you for your help.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Making the desired table the current table works, of course. Somehow, I still wanted to avoid this.&lt;/LI&gt;&lt;LI&gt;But also the below code works&lt;/LI&gt;&lt;/OL&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Panel Box( "Numeric Columns",
	clb = Col List Box(Data Table( dt ))
),
clb &amp;lt;&amp;lt; Append( colList );&amp;nbsp;//&amp;nbsp;this&amp;nbsp;is&amp;nbsp;still&amp;nbsp;required,&amp;nbsp;which&amp;nbsp;I&amp;nbsp;find&amp;nbsp;interesting,&amp;nbsp;since&amp;nbsp;I&amp;nbsp;thought&amp;nbsp;the&amp;nbsp;clb&amp;nbsp;was&amp;nbsp;already&amp;nbsp;added&amp;nbsp;above&amp;nbsp;via&amp;nbsp;Col&amp;nbsp;List&amp;nbsp;Box(...)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In contrast, the below does not work. Rather, it adds the numeric columns from dt2, which makes no sense to me.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Panel Box( "Numeric Columns",
	clb = Col List Box(dt, all, &amp;lt;&amp;lt; Set Data Type ( "numeric" )) // adds numeric columns from dt2 :(...
),
/*clb &amp;lt;&amp;lt; Append( colList );*/ // doesn't matter whether this is commented out or not&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 14 Oct 2023 11:25:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Updating-column-list-box-using-list-stored-in-variable-not/m-p/687240#M87286</guid>
      <dc:creator>Ressel</dc:creator>
      <dc:date>2023-10-14T11:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Updating column list box using list stored in variable not working as expected. Is this how it is meant to be?</title>
      <link>https://community.jmp.com/t5/Discussions/Updating-column-list-box-using-list-stored-in-variable-not/m-p/687241#M87287</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/15435"&gt;@Ressel&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;I have to admit, it also puzzled me a bit :)&lt;/img&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They should have used&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col List Box(&amp;lt;From Data Table(name|table reference)&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;as the optional argument ... or anything else - but&amp;nbsp; different from&amp;nbsp;&lt;FONT face="courier new,courier"&gt;Data Table("table name")&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;- kind of misleading, right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After years as Jmp user one is too tempted to replace the whole expression with &lt;STRONG&gt;dt&amp;nbsp;&lt;/STRONG&gt; - and thereby forget the "indicator".&lt;BR /&gt;On the other hand, it's nice that one can use the table reference instead of the table name as argument of Data Table :)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Oct 2023 11:35:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Updating-column-list-box-using-list-stored-in-variable-not/m-p/687241#M87287</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-10-14T11:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Updating column list box using list stored in variable not working as expected. Is this how it is meant to be?</title>
      <link>https://community.jmp.com/t5/Discussions/Updating-column-list-box-using-list-stored-in-variable-not/m-p/687244#M87288</link>
      <description>&lt;P&gt;The presence and help of users like you is what lifts a lot of people, including me, up when it comes to scripting and other JMP-related skills. This is kindness and this is greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Oct 2023 11:49:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Updating-column-list-box-using-list-stored-in-variable-not/m-p/687244#M87288</guid>
      <dc:creator>Ressel</dc:creator>
      <dc:date>2023-10-14T11:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Updating column list box using list stored in variable not working as expected. Is this how it is meant to be?</title>
      <link>https://community.jmp.com/t5/Discussions/Updating-column-list-box-using-list-stored-in-variable-not/m-p/687303#M87300</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11634"&gt;@Thierry_S&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;&amp;nbsp;fyi -&amp;nbsp;&lt;A href="https://www.pega-analytics.co.uk/blog/handling-lists-of-columns/" target="_self"&gt;https://www.pega-analytics.co.uk/blog/handling-lists-of-columns/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Oct 2023 19:10:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Updating-column-list-box-using-list-stored-in-variable-not/m-p/687303#M87300</guid>
      <dc:creator>Ressel</dc:creator>
      <dc:date>2023-10-14T19:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Updating column list box using list stored in variable not working as expected. Is this how it is meant to be?</title>
      <link>https://community.jmp.com/t5/Discussions/Updating-column-list-box-using-list-stored-in-variable-not/m-p/687314#M87301</link>
      <description>&lt;P&gt;Thank you for the link,&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4536"&gt;@David_Burnham&lt;/a&gt;&amp;nbsp;blog&amp;nbsp;contains a nice collection of gems !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just read the part about Column references in the Distribution platform.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interesting - according to the scripting index it is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1697353652002.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57634i65C69BC8B46DCCAE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1697353652002.png" alt="hogi_0-1697353652002.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As there are no "&lt;FONT face="courier new,courier"&gt;&amp;lt; &amp;gt;"&lt;/FONT&gt;&amp;nbsp; around the Column() argument, one could think&amp;nbsp;&amp;nbsp;that &lt;FONT face="courier new,courier"&gt;Column()&lt;/FONT&gt; is the one, non-optional argument&lt;/P&gt;&lt;P&gt;- does it use the &lt;FONT face="courier new,courier"&gt;Column()&lt;/FONT&gt; function to generate a column reference?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But actually it is the same as &lt;FONT face="courier new,courier"&gt;Data Table()&lt;/FONT&gt; in the previous discussion:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Column()&lt;FONT face="arial,helvetica,sans-serif"&gt;is an &lt;EM&gt;indicator&lt;/EM&gt; for an &lt;STRONG&gt;optional&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;argument:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;it can be placed everywhere &amp;amp; can be omitted&lt;/LI&gt;&lt;LI&gt;it accepts a column or a list of &amp;gt;=1 columns (as reference or name) - clear sign that this is NOT the column() function&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found another entry in the Scripting Index where the dots before and after the Columns() argument indicate that the argument is optional.&lt;BR /&gt;Here, it is Columns [plural]&amp;nbsp; - like in the GUI. &lt;FONT face="courier new,courier"&gt;Y&lt;/FONT&gt; is another alias. Both help to be not distracted by the function &lt;FONT face="courier new,courier"&gt;Column()&lt;/FONT&gt;.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1697353727842.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57635iF302CBF8F792B1C7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1697353727842.png" alt="hogi_1-1697353727842.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Distribution(Column("height"));

Distribution(:height); // doesn't work&lt;BR /&gt;&lt;BR /&gt;Distribution(Columns("name", :sex)); // accepts &amp;gt;=1 arguments; column references and names&lt;BR /&gt;Distribution(Columns({"name", :sex})); // accepts lists 
&lt;BR /&gt;Distribution(Continuous Distribution(Column( :height ))); // Distribution can be used without a Column() argument&lt;BR /&gt;
Distribution("dummy 1st entry",	Columns("height")); // Column at non-first position -&amp;gt; works&lt;BR /&gt;&lt;BR /&gt;Distribution("hello"); // not necessary to provide a meaningful (first) argument&lt;BR /&gt;&lt;BR /&gt;Distribution(Columns("name")); // alias&lt;BR /&gt;Distribution(Y("name"));&lt;/CODE&gt;&amp;nbsp;&amp;nbsp;// alias&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Oct 2023 07:57:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Updating-column-list-box-using-list-stored-in-variable-not/m-p/687314#M87301</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-10-15T07:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Updating column list box using list stored in variable not working as expected. Is this how it is meant to be?</title>
      <link>https://community.jmp.com/t5/Discussions/Updating-column-list-box-using-list-stored-in-variable-not/m-p/687321#M87302</link>
      <description>&lt;P&gt;Scripting Guide does provide some explanation on the terminology &lt;A href="https://www.jmp.com/support/help/en/17.2/#page/jmp/jsl-terminology.shtml#" target="_blank" rel="noopener"&gt; Scripting Guide &amp;gt; Introduction to Writing JSL Scripts &amp;gt; JSL Terminology&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Oct 2023 13:41:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Updating-column-list-box-using-list-stored-in-variable-not/m-p/687321#M87302</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-10-15T13:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Updating column list box using list stored in variable not working as expected. Is this how it is meant to be?</title>
      <link>https://community.jmp.com/t5/Discussions/Updating-column-list-box-using-list-stored-in-variable-not/m-p/687328#M87304</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1697379600868.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57638iE9AF0AA3AE951854/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1697379600868.png" alt="hogi_0-1697379600868.png" /&gt;&lt;/span&gt;&lt;BR /&gt;So the terminology is&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;named&lt;/EM&gt; arguments&lt;/STRONG&gt;&lt;BR /&gt;- and named arguments are always&amp;nbsp;optional - with and without &amp;lt; &amp;gt; in the Scripting Index :)&lt;/img&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, not explicitly noted :&lt;BR /&gt;then the official name of the&amp;nbsp;"indicator" of a named argument is "&lt;EM&gt;&lt;STRONG&gt;name&lt;/STRONG&gt;&lt;/EM&gt;" ?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Oct 2023 14:21:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Updating-column-list-box-using-list-stored-in-variable-not/m-p/687328#M87304</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-10-15T14:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Updating column list box using list stored in variable not working as expected. Is this how it is meant to be?</title>
      <link>https://community.jmp.com/t5/Discussions/Updating-column-list-box-using-list-stored-in-variable-not/m-p/687558#M87318</link>
      <description>&lt;P&gt;Official name? Indicator?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/17.2/#page/jmp/jsl-rules-for-names.shtml" target="_blank" rel="noopener"&gt;Scripting Guide &amp;gt; JSL Building Blocks &amp;gt; JSL Syntax Rules &amp;gt; JSL Rules for Names&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P class="body"&gt;In JSL, a name is simply something to call an item. When you assign the numeric value 3 to a variable in the expression&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="code"&gt;a = 3&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="code"&gt;a&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is a name.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 11:20:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Updating-column-list-box-using-list-stored-in-variable-not/m-p/687558#M87318</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-10-16T11:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Updating column list box using list stored in variable not working as expected. Is this how it is meant to be?</title>
      <link>https://community.jmp.com/t5/Discussions/Updating-column-list-box-using-list-stored-in-variable-not/m-p/687562#M87320</link>
      <description>&lt;P&gt;This is what puzzles me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We learned that the&amp;nbsp;&lt;FONT face="courier new,courier"&gt;Columns("height" )&lt;/FONT&gt;in&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Distribution(Columns("height"));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;is an (optional)&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;named argument.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;So, what is &lt;FONT face="courier new,courier"&gt;Columns&lt;/FONT&gt; in&lt;CODE class=" language-jsl"&gt;&amp;nbsp;Distribution(Columns("height"));&amp;nbsp;&lt;/CODE&gt;?&lt;/P&gt;&lt;P&gt;From grammatical point of view it could be the "name" - which was given to the named argument.&lt;/P&gt;&lt;P&gt;But this will collide with the standard definition of &lt;FONT face="courier new,courier"&gt;name&lt;/FONT&gt; in JSL. (compare: &lt;FONT face="courier new,courier"&gt;as name(x))&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I guess I am not the first one who asks this question - and I guess there is an official name for the name of a named parameter.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;But I was not lucky enough to find it in the documentation.&lt;BR /&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt;&amp;nbsp;?&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 11:28:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Updating-column-list-box-using-list-stored-in-variable-not/m-p/687562#M87320</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-10-16T11:28:58Z</dc:date>
    </item>
  </channel>
</rss>

