Hi,
I am building a PowerApps library component.
My goal is: when a button is pressed, two notifications are displayed sequentially
For example: Hello1 World and immediately after HelloWorld2
To this end, the idea adopted was to: use a Timer1 controller.
In the properties of this Timer1 component I set:
- the OnTimerEnd event: the second notification i.e. Notify(“HelloWorld2”;NotificationType.Success;1);;
- Duration: 10000
- Start: StartTimer (a variable that I set when pressing the button)
Instead, in the OnSelect event of the button, I used the following code:
Set(startTimer; false);;
Timer1.Start = StartTimer;;
Set(MyVar;1);;
Notify(“Hello " &Text(MyVar) &” World";
NotificationType.Success;1);; Set(StartTimer; true);;
Problem: only the first notification is displayed and the timer doesn't start