Genesys CTI User Forum > Genesys-related Development

WDE | Show Toaster custom

(1/2) > >>

kinguzzo:
Hello to everyone,
I'm working on WDE (8.5) and trying to show a custom toaster after an event (the event itself is not important). The toaster should show just a message to user and disappear after a while without any interaction by user. I'm looking online for some examples about that, but finding WDE code online is a very difficult task and the documentation I have is very poor.
Hope someone can help me.

Kubig:
In case you just need to show toaster based on your custom trigger, you can use AlertEvent object and publish it via EventAggregator. Example below:

[code]
var info = new AlertInformation("Public")
                {
                    Id = message,
                    Severity = SeverityType.Information
                };
ContainerAccessPoint.Container.Resolve<IEventAggregator>().GetEvent<AlertEvent>().Publish(info);
[/code]

kinguzzo:
This is just what I was looking for. Thank you!!!

cavagnaro:
Can you later post a screenshot on how this endup being shown at WDE?

kinguzzo:
Hi,

here we have how the "AlertInformation" appears.

[url=https://imgbb.com/][img]https://i.ibb.co/wccrKQ4/Immagine.png[/img][/url]

BR

Navigation

[0] Message Index

[#] Next page

Go to full version