The CreatorCon Call for Content is officially open! Get started here.

Hi All, we have widget where it is having $window.addEventListener in client controller

klavan32
Tera Contributor

Hi all, we have widget where it is having $window.addEventListener in client controller where "message" variable is getting data dynamically. I am unable to find where the message variable is being configured as it is displayed as an array with few variables.

console log:

klavan32_1-1743663130986.png

Client controller code:

klavan32_0-1743662988334.png

 

Please help me how to check where the message array is being configured generally.

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@klavan32 

which widget is that? share some more details.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

klavan32
Tera Contributor

it is an facilities map which gets opened when clicked on this particular button(widget) and that map(window) is from third party and once we select a location and click on confirm, seat field(sp form) gets filled with what we select on map and that map window gets closed. While the seat is selcted and window is closed, I can  MessageEvent is being triggered and recieving data object (must be from map window i guess) which is having an array with key-value pairs, i would like to know where that data which is being sent to messageEvent is configured because based on those key-value pairs few other fields in sp portal are being populated.