vdl-action-group
A named container for VDL actions. You are required to wrap VDL actions in an vdl-action-group and this gives the chain of actions a name that can be referenced in vdl-events or other vdl-actions.
Example
<vdl-var name="selectedCity" value="New York"></vdl-var>
<vdl-var name="selectedMonth" value="May"></vdl-var>
<vdl-action-group name="increaseSupplyAction" description="Increment the supply value">
<!-- Get current supply value -->
<vdl-action command="=scenario.entities.FactorySupply([vars.selectedCity, vars.selectedMonth]).value"></vdl-action>
<!-- Increment supply -->
<vdl-action-update-entity entity="FactorySupply" value="=value + 1" indices="=[vars.selectedCity, vars.selectedMonth]"></vdl-action-update-entity>
<vdl-action-execute mode="CALCULATE_INCREASED_SUPPLY"></vdl-action-execute>
</vdl-action-group>
<vdl-button vdl-event="click:actions.increaseSupplyAction">Increase Supply</vdl-button>
Attributes
name | A unique name to reference this VDL action group from vdl-events or other vdl-actions. The name can only contain characters that are valid for JavaScript function names, i.e. it can't contain hyphens (-) | required | |
---|---|---|---|
description | A description of the VDL action group. This has no affect within the VDL view but provides a way to self-document the VDL action group when sharing VDL files or authoring views within View Designer. | ||
namespace | Custom namespace that this VDL action group can be referenced from. This is optional and will default to "actions". This is an advanced option but can be useful to avoid VDL action group name clashes when sharing action group definitions with VDL includes. |
© 2001-2020 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.