Adding an Execute Button
With the <vdl-execute-button> element you can add a button to a view that allows a user to submit a scenario for execution with a given execution mode, optionally setting a scalar entity first.
By default, an execute button uses the first scenario and sets the execution mode to RUN. It will have the caption
Run Mode - for example:
<vdl-execute-button></vdl-execute-button>To change the execution mode, scenario and caption:
<vdl-execute-button
mode="load"
caption="Load the second scenario"
scenario="1">
</vdl-execute-button> You can set the mode to be any custom execution mode defined in the model, or one of the standard modes - LOAD and RUN - for example:
<vdl-execute-button
mode="EVALUATE_SEGMENTS"
caption="Evaluate Segments">
</vdl-execute-button> It can be useful to set a scalar before execution. The
value attribute accepts an expression so you can calculate the value based on the current values of other model entities:
<vdl-execute-button
entity="LIMIT"
value=”=getLimit()”
caption="Evaluate limited dataset">
</vdl-execute-button>
