<?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: Connect Column Names with String Col Box in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Connect-Column-Names-with-String-Col-Box/m-p/271502#M52850</link>
    <description>&lt;P&gt;You can &lt;STRONG&gt;subscribe&lt;/STRONG&gt; to a table to detect changes - this avoids using Col List Box but is a complex route.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps you could just place the display box inside a closed outline box ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;OutlineBox("-", &amp;lt;&amp;lt;close(1),
    ColListBox( ... )
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 08 Jun 2020 21:45:37 GMT</pubDate>
    <dc:creator>David_Burnham</dc:creator>
    <dc:date>2020-06-08T21:45:37Z</dc:date>
    <item>
      <title>Connect Column Names with String Col Box</title>
      <link>https://community.jmp.com/t5/Discussions/Connect-Column-Names-with-String-Col-Box/m-p/271238#M52787</link>
      <description>&lt;P&gt;Hi JSL Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to connect column names with a String Col Box with the example below. The Col List Box will update the column status (add/delete/rename) automatically which is the functionality I need for the String Col Box. So, I create a Col List Box and then connect it to the String Col Box.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems works, but I would like to hide the Col List Box or run it at the background. However, when I set&amp;nbsp; Box1&amp;lt;&amp;lt;visibility(Hidden), then it lost the connect from the data table. Any suggestions would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
New window("Connect dt with String Col box",
	Box1=Col list box(dt, all,
		on change(
			Cols=Box1&amp;lt;&amp;lt;get items;
			Box2&amp;lt;&amp;lt;set values(Cols);
		)
	),
	Table box(
		Box2=String col box("Columns",Cols=Box1&amp;lt;&amp;lt;get items)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tzu-Chun Wu&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:28:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Connect-Column-Names-with-String-Col-Box/m-p/271238#M52787</guid>
      <dc:creator>Tzu-Chun</dc:creator>
      <dc:date>2023-06-09T23:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Connect Column Names with String Col Box</title>
      <link>https://community.jmp.com/t5/Discussions/Connect-Column-Names-with-String-Col-Box/m-p/271436#M52834</link>
      <description>&lt;P&gt;Not really sure what you are trying to do here.&amp;nbsp; Do you really want a &lt;STRONG&gt;Col List Box&lt;/STRONG&gt; or are you just using it to get a list of columns.&amp;nbsp; If the later, then you can just write:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;col = dt &amp;lt;&amp;lt; getColumnNames(string)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;where dt is a reference to a data table, for example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = currentDataTable();&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Jun 2020 17:39:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Connect-Column-Names-with-String-Col-Box/m-p/271436#M52834</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2020-06-08T17:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Connect Column Names with String Col Box</title>
      <link>https://community.jmp.com/t5/Discussions/Connect-Column-Names-with-String-Col-Box/m-p/271442#M52837</link>
      <description>&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to create a string col box which reflect the column change of a data table. For example, if I have columns {"Column 1", "Column 2"} and add a new column "Column 3" later, it will be great if the string column box can be updated automatically without any other actions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt=new table("Table",
	New column("Column 1"),
	New column("Column 2")
);

New window("",
	Table box(
		String Col box("Columns", dt&amp;lt;&amp;lt;get column names("String")),
		Col List box(dt, all)
	)
);
wait(1);

dt&amp;lt;&amp;lt;new column("Column 3");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "get column names" is a good idea, but the string col box will not be updated automatically. Here is the comparison between String Col box and Col list box.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;before adding column 3&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tzu-Chun_0-1591638874821.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/24471i65FE66084ED0DBEF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tzu-Chun_0-1591638874821.png" alt="Tzu-Chun_0-1591638874821.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After Adding Column 3&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tzu-Chun_1-1591638924503.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/24472iB1DFED7361E386B8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tzu-Chun_1-1591638924503.png" alt="Tzu-Chun_1-1591638924503.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help the details helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tzu-Chun&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 17:59:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Connect-Column-Names-with-String-Col-Box/m-p/271442#M52837</guid>
      <dc:creator>Tzu-Chun</dc:creator>
      <dc:date>2020-06-08T17:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Connect Column Names with String Col Box</title>
      <link>https://community.jmp.com/t5/Discussions/Connect-Column-Names-with-String-Col-Box/m-p/271502#M52850</link>
      <description>&lt;P&gt;You can &lt;STRONG&gt;subscribe&lt;/STRONG&gt; to a table to detect changes - this avoids using Col List Box but is a complex route.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps you could just place the display box inside a closed outline box ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;OutlineBox("-", &amp;lt;&amp;lt;close(1),
    ColListBox( ... )
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Jun 2020 21:45:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Connect-Column-Names-with-String-Col-Box/m-p/271502#M52850</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2020-06-08T21:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Connect Column Names with String Col Box</title>
      <link>https://community.jmp.com/t5/Discussions/Connect-Column-Names-with-String-Col-Box/m-p/271514#M52856</link>
      <description>&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Outline Box approach does not work, but the Subscribe function is exactly what I need. Thanks again for your suggestion and help. If someone is interested in the Subscribe function, please check the link&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/14/subscribe-to-a-data-table.shtml" target="_blank"&gt;https://www.jmp.com/support/help/14/subscribe-to-a-data-table.shtml&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tzu-Chun&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 23:43:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Connect-Column-Names-with-String-Col-Box/m-p/271514#M52856</guid>
      <dc:creator>Tzu-Chun</dc:creator>
      <dc:date>2020-06-08T23:43:13Z</dc:date>
    </item>
  </channel>
</rss>

