Initializing help system before first use

Working with the vdl-text Attribute

Use the vdl-text attribute can be assigned to any VDL or HTML tag that allows child text and is used to display values that may change at any time.

Such values may be Mosel entity values, view globals or the result of script calculations - or any combination of these.

To display the number of scenarios on the shelf:
<span vdl-text="=scenarios.length"></span>
vdl-text accepts any valid VDL 4.1 expression and always attempts to display a sensible text representation of the expression's returned value.
A simple fixed calculation:
<h1 vdl-text="99 * 88 + 77"></h1>
The value of a scalar entity:
<div vdl-text="=scenario.entities.StringScalar.value"></div>
A combination of strings, a scalar value and a single element of an array entity:
<p vdl-text="= 'This value: ' + 
                        scenario.entities.ThisValue.value + 
                        ' and that: ' +
                        (scenario.entities.StringArray(2) ?
                        scenario.entities.StringArray(2).value : '')">
</p>

© 2001-2019 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.