<?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: Assign a value in a list to column values in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Assign-a-value-in-a-list-to-column-values/m-p/5958#M5957</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also use this to create a table with the elements from a list.&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13765067284787281" jivemacro_uid="_13765067284787281"&gt;&lt;BR /&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;a&lt;/SPAN&gt;=&lt;SPAN class="s1"&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;SPAN class="s2"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;SPAN class="s2"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;SPAN class="s2"&gt;&lt;STRONG&gt;4&lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;SPAN class="s2"&gt;&lt;STRONG&gt;5&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;BR /&gt;&lt;P class="p2"&gt;tmp&lt;SPAN class="s3"&gt;=&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;new table&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN class="s5"&gt;"test"&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;,&lt;/SPAN&gt;add rows &lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN class="s4"&gt;nitems&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;a&lt;STRONG&gt;))&lt;/STRONG&gt;&lt;SPAN class="s3"&gt;,&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;new column&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN class="s5"&gt;"list A"&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;,&lt;/SPAN&gt;numeric&lt;SPAN class="s3"&gt;,&lt;/SPAN&gt;set each value&lt;STRONG&gt;(&lt;/STRONG&gt;a&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;SPAN class="s4"&gt;row&lt;/SPAN&gt;&lt;STRONG&gt;()])))&lt;/STRONG&gt;&lt;SPAN class="s3"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Aug 2013 18:57:23 GMT</pubDate>
    <dc:creator>jorgeramosdealm</dc:creator>
    <dc:date>2013-08-14T18:57:23Z</dc:date>
    <item>
      <title>Assign a value in a list to column values</title>
      <link>https://community.jmp.com/t5/Discussions/Assign-a-value-in-a-list-to-column-values/m-p/5955#M5954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By using a modal window, the user assigns a value (for example "ABC10") to a variable (my value) and I would like to fill a column with that value. My code looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my value = { "ABC10" };&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; New Column( "My Column");&lt;/P&gt;&lt;P&gt;For Each Row( :My Column[] = my value);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having trouble because my value is a list and the expression does not fit available column types. Can anyone help me out?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2012 16:34:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Assign-a-value-in-a-list-to-column-values/m-p/5955#M5954</guid>
      <dc:creator>hacketkm</dc:creator>
      <dc:date>2012-11-16T16:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Assign a value in a list to column values</title>
      <link>https://community.jmp.com/t5/Discussions/Assign-a-value-in-a-list-to-column-values/m-p/5956#M5955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Each Row( :My Column[] = my value&lt;STRONG&gt;[1]&lt;/STRONG&gt;);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2012 16:55:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Assign-a-value-in-a-list-to-column-values/m-p/5956#M5955</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2012-11-16T16:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Assign a value in a list to column values</title>
      <link>https://community.jmp.com/t5/Discussions/Assign-a-value-in-a-list-to-column-values/m-p/5957#M5956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's easy to do this as you create the column with the Set Values() message, which takes a list as it's argument.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also use the Repeat() function to ensure that the list is repeated for all the rows in your data table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: Courier;"&gt;dt &lt;SPAN style="color: #011993;"&gt;=&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: Courier;"&gt;&lt;SPAN style="color: #032ce4;"&gt;New Table&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #942193;"&gt;"my table"&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; add rows&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;10&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: Courier;"&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: Courier;"&gt;my value &lt;SPAN style="color: #011993;"&gt;=&lt;/SPAN&gt; &lt;STRONG&gt;{&lt;/STRONG&gt;&lt;SPAN style="color: #942193;"&gt;"ABC10"&lt;/SPAN&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: Courier;"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: Courier;"&gt;mycol &lt;SPAN style="color: #011993;"&gt;=&lt;/SPAN&gt; dt &lt;SPAN style="color: #011993;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: Courier; color: #942193;"&gt;&lt;SPAN style="color: #032ce4;"&gt;New Column&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;/SPAN&gt;"My Column"&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: Courier;"&gt;&amp;nbsp; character&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: Courier;"&gt;&amp;nbsp; set values&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: Courier;"&gt;&amp;nbsp; &lt;SPAN style="color: #032ce4;"&gt;Repeat&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; my value&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #032ce4;"&gt;N Row&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; dt &lt;STRONG&gt;)&lt;/STRONG&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: Courier;"&gt;&amp;nbsp; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: Courier;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2012 18:33:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Assign-a-value-in-a-list-to-column-values/m-p/5957#M5956</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2012-11-16T18:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Assign a value in a list to column values</title>
      <link>https://community.jmp.com/t5/Discussions/Assign-a-value-in-a-list-to-column-values/m-p/5958#M5957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also use this to create a table with the elements from a list.&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13765067284787281" jivemacro_uid="_13765067284787281"&gt;&lt;BR /&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;a&lt;/SPAN&gt;=&lt;SPAN class="s1"&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;SPAN class="s2"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;SPAN class="s2"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;SPAN class="s2"&gt;&lt;STRONG&gt;4&lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;SPAN class="s2"&gt;&lt;STRONG&gt;5&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;BR /&gt;&lt;P class="p2"&gt;tmp&lt;SPAN class="s3"&gt;=&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;new table&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN class="s5"&gt;"test"&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;,&lt;/SPAN&gt;add rows &lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN class="s4"&gt;nitems&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;a&lt;STRONG&gt;))&lt;/STRONG&gt;&lt;SPAN class="s3"&gt;,&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;new column&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN class="s5"&gt;"list A"&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;,&lt;/SPAN&gt;numeric&lt;SPAN class="s3"&gt;,&lt;/SPAN&gt;set each value&lt;STRONG&gt;(&lt;/STRONG&gt;a&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;SPAN class="s4"&gt;row&lt;/SPAN&gt;&lt;STRONG&gt;()])))&lt;/STRONG&gt;&lt;SPAN class="s3"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 18:57:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Assign-a-value-in-a-list-to-column-values/m-p/5958#M5957</guid>
      <dc:creator>jorgeramosdealm</dc:creator>
      <dc:date>2013-08-14T18:57:23Z</dc:date>
    </item>
  </channel>
</rss>

