Query on possibilities of script based calculated value for multiple attributes
Hi,
Is there any possibility to handle multiple attributes in a single script instead of having individual script for each attribute.
For example, we have 2 attributes of same type and a script based calculated value (Attribute customization) has been implemented for one of the attributes (Attribute1).
If the same customization is required for Attribute2, then Is there a way to handle this also in the same script implemented for Attribute1. (or) do we need to create a new script and assign its return value to Attribute2?
Because we have more than 10 such kind of similar attributes and this customization should be implemented for all these attributes.
Accepted answer
No, the calculated value can only return one value that is then processed. You have no way to "set" another attribute in a calculated value script that I would be aware of. The API does not support setting values.
You might be able to use the same script source and use some configuration option to avoid writing the code several times.