<?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 add button dynamically in the same row in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/add-button-dynamically-in-the-same-row/m-p/375811#M62568</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;basically I have a data table that I create a report with it and then I'm trying to add buttons to it&amp;nbsp;dynamically in the same row, but the buttons go under the table&lt;/P&gt;&lt;P&gt;this is what i get&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="itzikd_0-1618148451124.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31980i71BFA5F76145B797/image-size/medium?v=v2&amp;amp;px=400" role="button" title="itzikd_0-1618148451124.png" alt="itzikd_0-1618148451124.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what i would like is "button #1" to be after "number 2" in the end of the table&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;myPlatform = New Window( "name",
	H List Box(
		V List Box( bb = Col Box( "buttons" ), );
		V List Box( myDispObj = dtSum &amp;lt;&amp;lt; getAsReport );
	)
);

rowList = myDispObj[Number Col Box( 1 )] &amp;lt;&amp;lt; Get As Matrix;
rowList = As List( rowList );

bblist = {};
For( i = 1, i &amp;lt;= N Items( rowList ), i++,
	bb_expr = Eval Insert( "\[bblist[i] = buttonbox("Button #" || char(i), doSomething(^i^))]\" );
	Eval( Parse( bb_expr ) );
	myPlatform &amp;lt;&amp;lt; append( bblist[i] );
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 10 Jun 2023 23:28:33 GMT</pubDate>
    <dc:creator>itzikd</dc:creator>
    <dc:date>2023-06-10T23:28:33Z</dc:date>
    <item>
      <title>add button dynamically in the same row</title>
      <link>https://community.jmp.com/t5/Discussions/add-button-dynamically-in-the-same-row/m-p/375811#M62568</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;basically I have a data table that I create a report with it and then I'm trying to add buttons to it&amp;nbsp;dynamically in the same row, but the buttons go under the table&lt;/P&gt;&lt;P&gt;this is what i get&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="itzikd_0-1618148451124.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31980i71BFA5F76145B797/image-size/medium?v=v2&amp;amp;px=400" role="button" title="itzikd_0-1618148451124.png" alt="itzikd_0-1618148451124.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what i would like is "button #1" to be after "number 2" in the end of the table&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;myPlatform = New Window( "name",
	H List Box(
		V List Box( bb = Col Box( "buttons" ), );
		V List Box( myDispObj = dtSum &amp;lt;&amp;lt; getAsReport );
	)
);

rowList = myDispObj[Number Col Box( 1 )] &amp;lt;&amp;lt; Get As Matrix;
rowList = As List( rowList );

bblist = {};
For( i = 1, i &amp;lt;= N Items( rowList ), i++,
	bb_expr = Eval Insert( "\[bblist[i] = buttonbox("Button #" || char(i), doSomething(^i^))]\" );
	Eval( Parse( bb_expr ) );
	myPlatform &amp;lt;&amp;lt; append( bblist[i] );
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:28:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/add-button-dynamically-in-the-same-row/m-p/375811#M62568</guid>
      <dc:creator>itzikd</dc:creator>
      <dc:date>2023-06-10T23:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: add button dynamically in the same row</title>
      <link>https://community.jmp.com/t5/Discussions/add-button-dynamically-in-the-same-row/m-p/375843#M62575</link>
      <description>&lt;P&gt;You need to append the buttons to the H List Box,&lt;/P&gt;&lt;P&gt;and btw the elements of the H List Box need to be separated by colons ",".&lt;/P&gt;&lt;P&gt;BR&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="Georg_0-1618177152078.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31981iF86682187BCCF0DD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Georg_0-1618177152078.png" alt="Georg_0-1618177152078.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Apr 2021 21:40:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/add-button-dynamically-in-the-same-row/m-p/375843#M62575</guid>
      <dc:creator>Georg</dc:creator>
      <dc:date>2021-04-11T21:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: add button dynamically in the same row</title>
      <link>https://community.jmp.com/t5/Discussions/add-button-dynamically-in-the-same-row/m-p/375922#M62582</link>
      <description>&lt;P&gt;This example shows another approach that gives you more control.&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="button in row.PNG" style="width: 178px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31985i76943259F32009B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="button in row.PNG" alt="button in row.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Adapted from example given in the Scripting Index entry for Display Boxes &amp;gt; Col Box:&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 );

New Window( "Button in Row",
	exx = 1;
	exy = 4;
	exz = 8;
	Table Box(
		String Col Box( "strings", {"x", "y", "z"} ),
		Number Col Box( "values", {exx, exy, exz} ),
		Col Box(
			"buttons",
			Button Box( "Button 1" ),
			Button Box( "Button 2" ),
			Button Box( "Button 3" )
		)
	);
);&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 13:00:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/add-button-dynamically-in-the-same-row/m-p/375922#M62582</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2021-04-12T13:00:40Z</dc:date>
    </item>
  </channel>
</rss>

