<?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: Update table and keep grouped columns in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Update-table-and-keep-grouped-columns/m-p/732263#M91420</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/53668"&gt;@rhakim23&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Is it possible to share the mock data table to explain on what you are trying to do?&lt;/P&gt;&lt;P&gt;The JSL script can follow the similar logic afterwards.&lt;/P&gt;&lt;P&gt;Can Tabulate helps to re-group after update?&lt;/P&gt;&lt;P&gt;Or should you update second table from the 1st table?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WebDesignesCrow_0-1710153281901.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62049i0C45A8D27DF2F38B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="WebDesignesCrow_0-1710153281901.png" alt="WebDesignesCrow_0-1710153281901.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Mar 2024 10:36:47 GMT</pubDate>
    <dc:creator>WebDesignesCrow</dc:creator>
    <dc:date>2024-03-11T10:36:47Z</dc:date>
    <item>
      <title>Update table and keep grouped columns</title>
      <link>https://community.jmp.com/t5/Discussions/Update-table-and-keep-grouped-columns/m-p/729796#M91243</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a JSL script where I'm updating a JMP table with data from a second table that has columns that are grouped. As it stands the update ungroups all the columns from the second table. I can't find anything in the interactive window to specify keeping it grouped, is this possible? Using JMP 17.2. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 22:31:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Update-table-and-keep-grouped-columns/m-p/729796#M91243</guid>
      <dc:creator>rhakim23</dc:creator>
      <dc:date>2024-03-04T22:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Update table and keep grouped columns</title>
      <link>https://community.jmp.com/t5/Discussions/Update-table-and-keep-grouped-columns/m-p/732263#M91420</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/53668"&gt;@rhakim23&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Is it possible to share the mock data table to explain on what you are trying to do?&lt;/P&gt;&lt;P&gt;The JSL script can follow the similar logic afterwards.&lt;/P&gt;&lt;P&gt;Can Tabulate helps to re-group after update?&lt;/P&gt;&lt;P&gt;Or should you update second table from the 1st table?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WebDesignesCrow_0-1710153281901.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62049i0C45A8D27DF2F38B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="WebDesignesCrow_0-1710153281901.png" alt="WebDesignesCrow_0-1710153281901.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 10:36:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Update-table-and-keep-grouped-columns/m-p/732263#M91420</guid>
      <dc:creator>WebDesignesCrow</dc:creator>
      <dc:date>2024-03-11T10:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Update table and keep grouped columns</title>
      <link>https://community.jmp.com/t5/Discussions/Update-table-and-keep-grouped-columns/m-p/733539#M91494</link>
      <description>&lt;P&gt;I think you might have to do this through scripting. Below is one example&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");

dt2 = Open("$SAMPLE_DATA/Big Class Families.jmp");
// create a column groups
dt2 &amp;lt;&amp;lt; Group Columns("Stats1", {:age, :sex});
dt2 &amp;lt;&amp;lt; Group Columns("Stats2", {:height, :weight});
dt2 &amp;lt;&amp;lt; Group Columns("Stats3", {:sports, :countries visited});


// Get groups from dt2
colgroups = dt2 &amp;lt;&amp;lt; Get Column Groups Names;
groups = Associative Array();
For Each({groupname}, colgroups,
	groups[groupname] = dt2 &amp;lt;&amp;lt; Get Column Group(groupname);
);

dt &amp;lt;&amp;lt; Update(
	With(dt2),
	Match Columns(:name = :name)
);

Close(dt2, no save);

// add groups back
For Each({{groupname, groupcols}}, groups,
	dt &amp;lt;&amp;lt; Group Columns(groupname, groupcols);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Mar 2024 20:22:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Update-table-and-keep-grouped-columns/m-p/733539#M91494</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-03-12T20:22:17Z</dc:date>
    </item>
  </channel>
</rss>

