Thanks to a reminder from @eastgate, here is a Key Attributes reset action (I’ve confirmed this works in v8.6.2b452:
$KeyAttributes.each(X){
action("$"+X+"=;");
}
So rather an an eval() call we use action(), albeit unusually within an action. Note that the action wraps a complete action: "$X=;", where X is a variable. If the action being instructed needed a string, use nested quotes.
For example, lets assume our KAs are all multi-value (i.e. list-based List or Set type) attributes and we want to add a string value of test for each of our KAs, the action would be:
action("$"+X+"=$"+X+"='test';");
or
action('$'+X+'=$'+X+'="test"=;');
I’ve done it to show two alternate. First, using double quotes to make the action string and single quotes for quoted strings within that. In the second case the reverse the role of the single and double quotes. Both work. Just make sure you close nested quotes and balance out your sets of quotes (i.e. they all have and open and a close).
I’ll add this into aTbRef in due course but wanted to note it here as I’d failed to make it work in an earlier post (up-thread)