<?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 Adding a Tag to a column (but not removing existing tags) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Adding-a-Tag-to-a-column-but-not-removing-existing-tags/m-p/964088#M110357</link>
    <description>&lt;P&gt;Normally when using Tags I just want to add it to a column. Adding one like this, however ...&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;&lt;SPAN&gt;dtTag&lt;/SPAN&gt;:&lt;SPAN&gt;my_column &lt;/SPAN&gt;&amp;lt;&amp;lt; &lt;SPAN&gt;Set Property&lt;/SPAN&gt;( Tags, {&lt;SPAN&gt;"New Tag"&lt;/SPAN&gt;} );&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt;... will overwrite any existing tags that the column already has. Is there a way to easily add a tag in JSL in a way that does not remove any existing tags? I could first get column tags and then modify the list of tags I assign, but want to know if there is a simpler way.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Aug 2026 20:18:24 GMT</pubDate>
    <dc:creator>jay_holavarri</dc:creator>
    <dc:date>2026-08-12T20:18:24Z</dc:date>
    <item>
      <title>Adding a Tag to a column (but not removing existing tags)</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-a-Tag-to-a-column-but-not-removing-existing-tags/m-p/964088#M110357</link>
      <description>&lt;P&gt;Normally when using Tags I just want to add it to a column. Adding one like this, however ...&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;&lt;SPAN&gt;dtTag&lt;/SPAN&gt;:&lt;SPAN&gt;my_column &lt;/SPAN&gt;&amp;lt;&amp;lt; &lt;SPAN&gt;Set Property&lt;/SPAN&gt;( Tags, {&lt;SPAN&gt;"New Tag"&lt;/SPAN&gt;} );&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt;... will overwrite any existing tags that the column already has. Is there a way to easily add a tag in JSL in a way that does not remove any existing tags? I could first get column tags and then modify the list of tags I assign, but want to know if there is a simpler way.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2026 20:18:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-a-Tag-to-a-column-but-not-removing-existing-tags/m-p/964088#M110357</guid>
      <dc:creator>jay_holavarri</dc:creator>
      <dc:date>2026-08-12T20:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Tag to a column (but not removing existing tags)</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-a-Tag-to-a-column-but-not-removing-existing-tags/m-p/964101#M110358</link>
      <description>&lt;P&gt;There's no built-in way I can find to simply add a tag.&amp;nbsp; I would just define a function for it.&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 );
add_tag = Function( {col, tag_name, this_dt = Current Data Table()},
	og_tags = Column( this_dt, col ) &amp;lt;&amp;lt; Get Property( "Tags" );
	Column( this_dt, col ) &amp;lt;&amp;lt; Set Property( "Tags", Eval( If( Is Empty( og_tags ), {}, og_tags ) || Eval List( {tag_name} ) ) );
);

//demo
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

add_tag( "name", "cheeses", dt );
Wait( 1 );
add_tag( "name", "weirdness" );
Show( dt:name &amp;lt;&amp;lt; Get Property( "Tags" ) );	//dt:name &amp;lt;&amp;lt; Get Property("Tags") = {"cheeses", "weirdness"};
&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Aug 2026 21:17:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-a-Tag-to-a-column-but-not-removing-existing-tags/m-p/964101#M110358</guid>
      <dc:creator>mmarchandFSLR</dc:creator>
      <dc:date>2026-08-12T21:17:28Z</dc:date>
    </item>
  </channel>
</rss>

