Duplicating a template based tag

Hi.

I have a tag based on a template with quite a few elements. I need to duplicate this tag to another tag of the same type as a record of the previous values. I was hoping this would be as simple as:

@Tag.teststbl_last = @Tag.teststbl_row

but this doesn’t work. Do I have to copy each element individually … or am I (hopefully) just missing something obvious.

Regards,
Greg Shearer

Hi Greg,

In order to copy all values from a Tag based on a template, you can use the following command line:

TK.CopyTagToTag(@Tag.Source,@Tag.Target);

This way, the value from all elements on @Tag.Source will be copied to @Tag.Target.

Please let us know if this solution works for you.

Best Regards,
Tatsoft Team.