Accessing Entities and Other Model Data
value
- this is the raw value of the scalar or element.label
- if the model entity has an associatedlabels
array, this is the label that corresponds to the current value of the scalar or element. If there is no label for the current value or if there is not a label array associated with the entity, then the label is a string representation of the current value. Thelabel
property will always be a string type.
You must always reference either the value or label of an entity within expressions, otherwise calculations could result in error, or string concatenations might show the text [object Object]
.
If you are in debug mode and you forget to specify the value or label, a log message is written to the browser console.
© 2001-2024 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.