Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Trigger event and Receive event don't work in Data Variables Logic Canvas

Josephrezende
Explorer
721

Hello @Dan_Wroblewski,

Can you help me?
I want to use the "Receive event" logic on a Data Variable canvas to trigger it from another part of the app, I set "Fired from Trigger Event" option in the event source, on the "Trigger event" I set it to trigger the receive event from earlier, but it doesn't show on the option list, instead I need to edit the trigger node and set the receive event there, but even that way the receive event doesn't get triggered, it only triggers events outside the Data Variables canvas.

I don't know if it makes sense but I add some screenshots to show how I set up.

Am I doing something wrong? How to properly set the events?

8 REPLIES 8
Read only

Dan_Wroblewski
Developer Advocate
Developer Advocate
652

This is the classic case for using the trigger event, to refresh data. But it does not work to trigger an event on the data variable canvas. 😔 If I want that I have to move the data logic to the main logic canvas and create the events there ... not as elegant but not terrible.

You said "instead I need to edit the trigger node and set the receive event there" -- what do you mean?

 




--------------
See all my blogs and connect with me on Twitter / LinkedIn
Read only

0 Kudos
628

I'm ok with the trigger event not working on the data variable logic, but is it a plan to make it work?

Also the receive event was working and triggering when a app variable changed state but it's not working anymore, it only works when a page variable change. 

Read only

0 Kudos
617
  • I am not privy to development's plans but I would not expect it too soon (just my opinion).
  • Can you explain the app variable problem? I created a button that changes an app variable and a button that updates a page variable. In the page's logic canvas, I created 2 receive events, one for app change events and one for page change events. If I click the app button I get the app event and if I click the page button I get the page event. So as far as I understand, it is working for me, but I assume I don't fully understand your use case. In my experiment, I do no use a custom event.

 




--------------
See all my blogs and connect with me on Twitter / LinkedIn
Read only

0 Kudos
613

So the app variable problem has a slight difference, instead the page's logic canvas, the receive events are on the data variable logic canvas, in this scenario the page variable receive event works but the app variable don't

Read only

0 Kudos
379

Hello @Dan_Wroblewski any news about this issue?

Read only

0 Kudos
352

Hi @Josephrezende 
Can you please try to move the Set App variable node immediately after the event trigger in the logic canvas, I guess if it's followed up after another process that might be causing the issue.

Read only

0 Kudos
339

Hello @YashminBehera, I did like you said but still don't work.
I added a button to toggle a Boolean app variable, then a date page variable to change, on the data variable logic canvas I set a trigger to fire if the app variable change. when I click the button the variables change but the trigger on the logic canvas don't fire, I added two screenshots of the logic.

Read only

0 Kudos
214

Hi @Josephrezende 
- Try to create a temporary Page Variable and update it whenever the App Variable changes and then Set the Receive Event to track the temporary page variable.
- And you can also try to Manually Fire an Event When Updating the App Variable.
- Add a Toast Message right after updating the App Variable to see if its value actually changes.

And also ensure that the App Variable change occurs Before the trigger execution. (Try adding a delay after updating the App Variable before firing the trigger.)