Global Directory
Global Directory
EXPLORE OUR SITES
London Stock Exchange Group
LSEG Data & Analytics
MyAccount
LSEG Perspectives
London Stock Exchange
FTSE Russell
LCH
Contact Us
Home
TR Internal
Can I create a UE event from js?
Benjamin Anderson
For a wln feature project (napa), we display author and firm images in the search result and on the doc display. We've implemented it so that when you click on the author or firm, you go to the corresponding website (off wln). The wln session is paused and the screen is greyed out. This was pretty easy to do as there was an existing javascript function we just called. The next requirement is to create a UE event when a user clicks on one of those images. Is there an existing javascript function to create a UE event?
Thanks,
Ben
Find more posts tagged with
javascript
event
static-data
refinitiv-internal
Accepted answers
Brian.Ziegler
Here is some platform JS code that will create an event that can be seen in crazy train.
var message = new Cobalt.Hub.Message("", null, null, null, {"Event": "Data"});
Cobalt.Hub.SendClientEvent(message, "Event.Name");
All comments
Joshua Krebs
Yes it is possible.
There are two ways to do it I believe. One way is to create a proxy endpoint through website to create the event. (This is the way I did it) Otherwise I'm almost certain that after I went with this solution, I had found some platform JS that created the event. I will update my answer once I find that bit of info.
Ryan Morlok
We are doing something similar in Rattlesnake. We are exposing a Website endpoint that can trigger an event with the parameters we need.
Brian.Ziegler
Here is some platform JS code that will create an event that can be seen in crazy train.
var message = new Cobalt.Hub.Message("", null, null, null, {"Event": "Data"});
Cobalt.Hub.SendClientEvent(message, "Event.Name");
Quick Links
All Forums
Recent Questions
Terms of use
Privacy & Cookie Statement
Cookies settings
Do not sell my info
Whistleblowing
UK Bribery Act
Modern Slavery Act