<?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 to dynamically create a column of buttons in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-dynamically-create-a-column-of-buttons/m-p/43997#M25383</link>
    <description>&lt;P&gt;The colbox solution is&amp;nbsp;just what i was looking for.&lt;/P&gt;&lt;P&gt;Didn't know about the Table Box() selection&amp;nbsp;option &amp;nbsp;and it was perfect to different project.&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;</description>
    <pubDate>Thu, 07 Sep 2017 06:42:30 GMT</pubDate>
    <dc:creator>mhaz</dc:creator>
    <dc:date>2017-09-07T06:42:30Z</dc:date>
    <item>
      <title>How to dynamically create a column of buttons</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-dynamically-create-a-column-of-buttons/m-p/43938#M25349</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;I`m trying to create a dashboard where i will have a DT and in the end of each row/last column i will have a button that refers to that specific row.&amp;nbsp;Tried to create a list of buttons but it's not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;m1 = Button Box("m1", x=3;);&lt;BR /&gt;m2 = Button Box("m2", x=3;);&lt;BR /&gt;list = {m1,m2};&lt;/P&gt;&lt;P&gt;mm =H List Box();&lt;/P&gt;&lt;P&gt;for(i=1, i&amp;lt;3, i++,&lt;BR /&gt;mm &amp;lt;&amp;lt; Append(eval(list[i]));&lt;BR /&gt;);&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;sr=New Window("Summary Results",&lt;BR /&gt;TableBox(&lt;BR /&gt;stringColBox("Layer",layerList),&lt;BR /&gt;stringColBox("Param",rezparamList),&lt;BR /&gt;stringColBox("Test Criteria",crtList),&lt;BR /&gt;stringColBox("Flag",flagList),&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;stringColBox("button",List)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;));&lt;/P&gt;</description>
      <pubDate>Sun, 03 Sep 2017 07:22:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-dynamically-create-a-column-of-buttons/m-p/43938#M25349</guid>
      <dc:creator>mhaz</dc:creator>
      <dc:date>2017-09-03T07:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically create a column of buttons</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-dynamically-create-a-column-of-buttons/m-p/43941#M25352</link>
      <description>&lt;P&gt;&lt;STRIKE&gt;I am not aware of any way to add a Button Box() to a Table Box(), in the same manner in which a Radio Box() can be added. (Maybe some other user is aware of such a method).&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;I can envision that you could use a Radio Button() that when selected would do what you want a Button Box() to do. &amp;nbsp;I can also envision just using the Table Box() selection capability to trigger the same functionality.&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;&lt;/STRIKE&gt;See correct response below in Pete's response&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 15:55:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-dynamically-create-a-column-of-buttons/m-p/43941#M25352</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-09-05T15:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically create a column of buttons</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-dynamically-create-a-column-of-buttons/m-p/43958#M25359</link>
      <description>&lt;P&gt;You can use &lt;STRONG&gt;colbox&lt;/STRONG&gt; to add buttons, or pretty much anything.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;alist = {"a", "b", "c"};
nlist = {1, 2, 3};

nw = new window("Buttons in Tablebox",
	tb = tablebox(
		stringcolbox("ABC", alist),
		numbercolbox("123", nlist),
		bb = colbox("Buttons")
	)
);

bblist = {};
for (i = 1, i &amp;lt;= nitems(alist), i++,
	bb_expr = evalinsert("\[bblist[i] = buttonbox("Button #" || char(i), print(^i^))]\");
	eval(parse(bb_expr));
	bb &amp;lt;&amp;lt; append(bblist[i]);
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I had to create an expression or the action printed out the current value of i, namely 4.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tablebox Buttons.png" style="width: 186px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/7427i5EC559A6AF5CFCEF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Tablebox Buttons.png" alt="Tablebox Buttons.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 15:09:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-dynamically-create-a-column-of-buttons/m-p/43958#M25359</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2017-09-05T15:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically create a column of buttons</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-dynamically-create-a-column-of-buttons/m-p/43997#M25383</link>
      <description>&lt;P&gt;The colbox solution is&amp;nbsp;just what i was looking for.&lt;/P&gt;&lt;P&gt;Didn't know about the Table Box() selection&amp;nbsp;option &amp;nbsp;and it was perfect to different project.&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 06:42:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-dynamically-create-a-column-of-buttons/m-p/43997#M25383</guid>
      <dc:creator>mhaz</dc:creator>
      <dc:date>2017-09-07T06:42:30Z</dc:date>
    </item>
  </channel>
</rss>

