Forum Discussion
FICO
3 years agoCommunity Manager
Hi, How can I run multiple "vdl-action-execute" in one "vdl-action-group", like sequential? When i put multiple vdl-action-execute in a vdl-action-group, only the first one runs. Thank you in advanc
FICO
3 years agoCommunity Manager
Hi Narges,
I made a little demo that lets you load or run all the scenarios on the shelf:
<vdl version="5.0">
<vdl-page>
<vdl-header>
<vdl-action-group name="RUN_ALL">
<vdl-action-execute vdl-repeat="=s,i in scenarios" scenario="=i"></vdl-action-execute>
</vdl-action-group>
<vdl-action-group name="LOAD_ALL">
<vdl-action-confirm title="Loading input data" text="Loading data will override all existing input data. Do you want to proceed?" ok-label="Load Data" cancel-label="Cancel"></vdl-action-confirm>
<vdl-action-execute mode="LOAD" vdl-repeat="=s,i in scenarios" scenario="=i" suppress-prompt="true"></vdl-action-execute>
</vdl-action-group>
</vdl-header>
<vdl-section heading="Run All">
<vdl-row>
<vdl-column size="12">
<vdl-button label="Load All" vdl-event="click:actions.LOAD_ALL"></vdl-button>
<vdl-button label="Run All" vdl-event="click:actions.RUN_ALL"></vdl-button>
</vdl-column>
</vdl-row>
</vdl-section>
</vdl-page>
</vdl>
The LOAD_ALL Action group has a separate Confirm Action, you would suppress the confirmation on the Load Action so that you don't get a confirmation for each scenario.
Joc
Related Content
Related Content
VDL Actions: How to run vdl-action-execute sequentially
VDL actions are a nice addition as they allow to combine several actions behind one button. However, I couldn't make the actions run sequentially when there is (one or more) vdl-action-execute. In ...4 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum2 unread comments2 unread0Views0likes2CommentsRe: Is it possible to suppress error message "Uncaught (In promise) error: the scenario is currently locked and cannot be updated" popping out at the bottom of the screen?
Thank you! This is indeed the case. I need to put the row index selected into an entity using vdl-action-update-entity command. I suppose I can move this action right before the code calls the custom...3 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum9 unread comments9 unread0Views0likes0CommentsHow to perform pre-check before calling custom run mode
I have a custom run mode that adds a value user entered into a list. However, I would like to check if this value already exists in the current list before calling the custom run mode. I don't think ...3 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum1 unread comment1 unread0Views0likes1Comment