Removing a value from an attribute in a script

Rod Widdowson rdw at steadingsoftware.com
Thu May 25 07:49:25 EDT 2017


> So, for academic purposes, how would I remove them in this case? 

You cannot remove values from an IdPAttribute, for all the good reasons that Scott mentioned it is super risky and in fact the list
of attribute values is immutable.  OTOH you can set the values (which I think is a bad idea for the same reasons).  You need to
allocate another list, set the values into the list and then do a .setValues on the IdPAttribute.

But if you are in the same script why not just keep the list around and then just set it into the Attribute at the end?

/Rod



More information about the users mailing list