OS info
- Operating System : Mac OSX 17.7.0
- Wappler Version : 3.7.7
Problem description
Data Store actions inside Dynamic Event Runs are not working. (I am using NodeJS)
Steps to reproduce
-
Add the following step inside a Dynamic Event action:
Data Store > Insert Record -
After doing this, console shows the following:
Formatter insert in expression [state.insert({selected_campaign: 2, selected_id_campaign: 3})] doesn’t exist for type object
*Data Store > Insert Record works fine when being called from an independent Flow, even though they produce the same code inside the .ejs file
Flow code:
<script is="dmx-flow" id="flow1" type="text/dmx-flow" autorun>{
run: {
action: "{{state.insert({selected_campaign: 1, selected_id_campaign: 2})}}"
}
}</script>
Dynamic event code:
<dmx-serverconnect id="currCamp" url="../api/security/campaign" dmx-on:success="state.insert({selected_campaign: 2, selected_id_campaign: 3})">
Community Page
Last updated:
Last updated: