<?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 do I complete the insert column with JSL? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-I-complete-the-insert-column-with-JSL/m-p/79758#M36814</link>
    <description>Exactly the kind below is needed.&lt;BR /&gt;Thank Jim!</description>
    <pubDate>Sat, 20 Oct 2018 13:56:10 GMT</pubDate>
    <dc:creator>lwx228</dc:creator>
    <dc:date>2018-10-20T13:56:10Z</dc:date>
    <item>
      <title>How do I complete the insert column with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-complete-the-insert-column-with-JSL/m-p/79752#M36810</link>
      <description>&lt;P class="_tgt transPara"&gt;&lt;SPAN class="transSent"&gt;The script index could not be found.&lt;/SPAN&gt;&lt;SPAN class="transSent"&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="_tgt transPara"&gt;&lt;SPAN class="transSent"&gt;For example: insert a two-column numeric format column to the left of column 2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="_tgt transPara"&gt;&lt;SPAN class="transSent"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="2018-10-20_18-53-54.png" style="width: 710px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12938i42482B94981E7E89/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-10-20_18-53-54.png" alt="2018-10-20_18-53-54.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="_tgt transPara"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Oct 2018 10:56:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-complete-the-insert-column-with-JSL/m-p/79752#M36810</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2018-10-20T10:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I complete the insert column with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-complete-the-insert-column-with-JSL/m-p/79754#M36811</link>
      <description>&lt;P&gt;The "Insert Columns" functionality is handled by&amp;nbsp; "Add Multiple Columns" .&amp;nbsp; It is located under "Data Table &amp;gt; Data Table Cols" in the Scripting Index&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="addcols.PNG" style="width: 804px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12939iBF595DEA057ECE78/image-size/large?v=v2&amp;amp;px=999" role="button" title="addcols.PNG" alt="addcols.PNG" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Oct 2018 12:50:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-complete-the-insert-column-with-JSL/m-p/79754#M36811</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-10-20T12:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I complete the insert column with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-complete-the-insert-column-with-JSL/m-p/79756#M36812</link>
      <description>Okay,Thank Jim! but my point is to insert directly to the left of column 2.&lt;BR /&gt;Can I create a new column at the end and move it around with code?</description>
      <pubDate>Sat, 20 Oct 2018 13:24:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-complete-the-insert-column-with-JSL/m-p/79756#M36812</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2018-10-20T13:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do I complete the insert column with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-complete-the-insert-column-with-JSL/m-p/79757#M36813</link>
      <description>&lt;P&gt;You can use "Move Selected Columns()" to move a column that you have added to the end of your data table.&amp;nbsp; However, just as with the "Add Multiple Columns" the choices are focused on adding after a column.&amp;nbsp; So you would have to subtract 1 from your position, and then use that value as the insert position&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt &amp;lt;&amp;lt; New Column("The New Column", set selected)
Wait( 2 );
dt &amp;lt;&amp;lt; Move Selected Columns( after(as column(1)) );

// or

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt &amp;lt;&amp;lt; Add Multiple Columns( "Added ", 2, after(as column(1)), numeric );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 20 Oct 2018 13:46:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-complete-the-insert-column-with-JSL/m-p/79757#M36813</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-10-20T13:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I complete the insert column with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-complete-the-insert-column-with-JSL/m-p/79758#M36814</link>
      <description>Exactly the kind below is needed.&lt;BR /&gt;Thank Jim!</description>
      <pubDate>Sat, 20 Oct 2018 13:56:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-complete-the-insert-column-with-JSL/m-p/79758#M36814</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2018-10-20T13:56:10Z</dc:date>
    </item>
  </channel>
</rss>

