How can I pass a value from one widget to another widget on the same page by clicking the value?

Jeet
Tera Expert

Two widget on the same page !!

I have requirement to pass one selected incident (number) from (list of record) one widget to another widget so that I can fetch particular incident details using from server call and can populate details on the second widget ?

Please give me a simple example like for an incident.

1 ACCEPTED SOLUTION

Jeet
Tera Expert

Hello Everyone,

After putting this question I didn't get enough answer for this So I had created a simple widget communication long back for your better understanding and here is the link.

 

https://community.servicenow.com/community?id=community_question&sys_id=78938765dbd8dbc01dcaf3231f96...

 

Thanks !
Jeet

 

 

View solution in original post

3 REPLIES 3

amaradiswamy
Kilo Sage

Hi Jitendra,



The below link will be useful.



How to communicate between widgets in Service Portal



Thanks and regards


Swamy


Jeet
Tera Expert

Hello Everyone,

After putting this question I didn't get enough answer for this So I had created a simple widget communication long back for your better understanding and here is the link.

 

https://community.servicenow.com/community?id=community_question&sys_id=78938765dbd8dbc01dcaf3231f96...

 

Thanks !
Jeet

 

 

A more elegant way of doing this is to use an AngularJS Service instead of broadcasting.

It is very simple to setup and use. You can look at the oob service spKBCategoryService.