Using toast notifications
Hi Pega,
In build Proprietary information hidden you added the "ToastNotification" component to the toolbox. I gave the component a test run and it works well and looks wonderful.
When I tried to apply the ToastNotification in one of my projects I noticed it only works if it's connected to a synchronous thread. The thing is, in most of my projects an user interface is used for all interactions. My users press a certain button and it's very important that the fired event isn't blocking the user from doing any further interactions. So the thread has to be asynchronous.
So my question is; how would I be able to apply the ToastNotification in one of my current or future projects. In the appendix I added an example project where I tested the ToastNotification synchronous (works) and asynchronous (doesn't work, I also don't get an error message).
Current version: Pega Robotics Studio 19.1.49
One trick I use is to "hide" a button on a UI. The button needs to be visible inasmuch as its visible property is true on a non-minimized form, but it can be behind other controls. If you do this, set the TabStop property to false, so it is not possible for a user to get to the control. Use the Click event from this button to trigger the ToastNotification. Use the PerformClick method of the button in your automations to make it operate as if it were asynchronous.