<?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 Populate a table using  table variables in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Populate-a-table-using-table-variables/m-p/80962#M36927</link>
    <description>&lt;P&gt;I am trying to populate a table using the table variables. ( sample table attached)&lt;/P&gt;&lt;P&gt;The first 3 columns of the table are created from the table variable name and the 4th column is&amp;nbsp;the table variable&amp;nbsp;value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;row 1&amp;nbsp;&amp;nbsp; : target[0].target__reflectance_pc = 3&amp;nbsp; :Ambient_level W/m2 = 0&amp;nbsp;&amp;nbsp;&amp;nbsp; :zone_id_r =1&amp;nbsp; :Result = 400&lt;/P&gt;&lt;P&gt;row&amp;nbsp;2&amp;nbsp;&amp;nbsp; : target[0].target__reflectance_pc = 3&amp;nbsp; :Ambient_level W/m2 = 0&amp;nbsp;&amp;nbsp;&amp;nbsp; :zone_id_r =2&amp;nbsp; :Result = 400&amp;nbsp;&lt;/P&gt;&lt;P&gt;row&amp;nbsp;3&amp;nbsp;&amp;nbsp; : target[0].target__reflectance_pc = 3&amp;nbsp; :Ambient_level W/m2 =&amp;nbsp;10&amp;nbsp; :zone_id_r =1&amp;nbsp; :Result = 100&lt;/P&gt;&lt;P&gt;row&amp;nbsp;4&amp;nbsp;&amp;nbsp; : target[0].target__reflectance_pc = 3&amp;nbsp; :Ambient_level W/m2 =&amp;nbsp;10&amp;nbsp; :zone_id_r =2&amp;nbsp; :Result = 100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And so on for all the table variables in the table&lt;/P&gt;&lt;P&gt;Any help with this would be much appreciated.&amp;nbsp;&amp;nbsp;&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;&lt;P&gt;&amp;nbsp;&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>Thu, 25 Oct 2018 14:38:44 GMT</pubDate>
    <dc:creator>David_Morrow</dc:creator>
    <dc:date>2018-10-25T14:38:44Z</dc:date>
    <item>
      <title>Populate a table using  table variables</title>
      <link>https://community.jmp.com/t5/Discussions/Populate-a-table-using-table-variables/m-p/80962#M36927</link>
      <description>&lt;P&gt;I am trying to populate a table using the table variables. ( sample table attached)&lt;/P&gt;&lt;P&gt;The first 3 columns of the table are created from the table variable name and the 4th column is&amp;nbsp;the table variable&amp;nbsp;value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;row 1&amp;nbsp;&amp;nbsp; : target[0].target__reflectance_pc = 3&amp;nbsp; :Ambient_level W/m2 = 0&amp;nbsp;&amp;nbsp;&amp;nbsp; :zone_id_r =1&amp;nbsp; :Result = 400&lt;/P&gt;&lt;P&gt;row&amp;nbsp;2&amp;nbsp;&amp;nbsp; : target[0].target__reflectance_pc = 3&amp;nbsp; :Ambient_level W/m2 = 0&amp;nbsp;&amp;nbsp;&amp;nbsp; :zone_id_r =2&amp;nbsp; :Result = 400&amp;nbsp;&lt;/P&gt;&lt;P&gt;row&amp;nbsp;3&amp;nbsp;&amp;nbsp; : target[0].target__reflectance_pc = 3&amp;nbsp; :Ambient_level W/m2 =&amp;nbsp;10&amp;nbsp; :zone_id_r =1&amp;nbsp; :Result = 100&lt;/P&gt;&lt;P&gt;row&amp;nbsp;4&amp;nbsp;&amp;nbsp; : target[0].target__reflectance_pc = 3&amp;nbsp; :Ambient_level W/m2 =&amp;nbsp;10&amp;nbsp; :zone_id_r =2&amp;nbsp; :Result = 100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And so on for all the table variables in the table&lt;/P&gt;&lt;P&gt;Any help with this would be much appreciated.&amp;nbsp;&amp;nbsp;&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;&lt;P&gt;&amp;nbsp;&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>Thu, 25 Oct 2018 14:38:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Populate-a-table-using-table-variables/m-p/80962#M36927</guid>
      <dc:creator>David_Morrow</dc:creator>
      <dc:date>2018-10-25T14:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Populate a table using  table variables</title>
      <link>https://community.jmp.com/t5/Discussions/Populate-a-table-using-table-variables/m-p/81454#M36950</link>
      <description>&lt;P&gt;The below script will populate your data table with values from the Table Variables.&amp;nbsp; I have also attached a new version of your Test data table.&amp;nbsp; The one you had attached had a formula in one of the columns, which did not permit the table to populate.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();

tableVarNamesList = dt &amp;lt;&amp;lt; get table variable names;

For( i = 1, i &amp;lt;= N Items( tableVarNamesList ), i++,
	dt &amp;lt;&amp;lt; add rows( 1 );
	Column( dt, "target[0].target__reflectance_pc" )[i] =
	Num( Word( 2, tableVarNamesList[i], "," ) );
	Column( dt, "Ambient_level W/m2" )[i] =
	Num( Word( 3, tableVarNamesList[i], "," ) );
	Column( dt, "zone_id_r" )[i] = Num(
		Word( 4, tableVarNamesList[i], ",)" )
	);
	Column( dt, "result" )[i] = Num(
		dt &amp;lt;&amp;lt; get table variable( tableVarNamesList[i] )
	);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Oct 2018 02:05:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Populate-a-table-using-table-variables/m-p/81454#M36950</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-10-26T02:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Populate a table using  table variables</title>
      <link>https://community.jmp.com/t5/Discussions/Populate-a-table-using-table-variables/m-p/81760#M36996</link>
      <description>&lt;P&gt;Thank you that is exactly what I was trying to do.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2018 14:38:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Populate-a-table-using-table-variables/m-p/81760#M36996</guid>
      <dc:creator>David_Morrow</dc:creator>
      <dc:date>2018-10-29T14:38:19Z</dc:date>
    </item>
  </channel>
</rss>

