vdl-action-add-labels
Add labels from a label array to data. Supply data, the name of a label array, a fall-back attribute and a set-position.A new array of objects will be created containing a label attribute.[ { key: "key", value: "value", label: "label" } ]
since 4.8Required parent element
Example
<vdl-action-group name="addLabels">
<vdl-action-add-labels labels-entity="myLabelArray" data="[{key:[x], value:val}]" scenario="0" fallback-label="key" set-position="0"></vdl-action-add-labels>
</vdl-action-group>
Attributes
annotated-entity | The name of the entity with a label annotation. Labels are fetched from the associated label array. Can either be a dynamic expression or a static value. | since 4.8 | accepts expression | |
---|---|---|---|---|
data | The source data that the labels will be added to. | since 4.8 | accepts expression | |
fallback-label | Use the value of the named property on the data, as a fallback, when no label data exists. | since 4.8 | ||
labels-entity | The name of the array that contains the labels. Can either be a dynamic expression or a static value. | since 4.8 | accepts expression | |
scenario | The scenario to fetch label data from, defaults to the first scenario. You can specify either a scenario id or the current position of the scenario on the shelf. | since 4.8 | accepts expression | |
set-position | For multidimensional data, the zero based position of the key | since 4.8 | accepts expression |
© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.