I want to call a widget from another widget in Service Portal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2018 05:55 AM
I want to call a widget from another widget in Service Portal. A parent widget is in the macro variable of a catalog item.. and there is a child widget containing few data.. I want to call the child widget in Parent widget and use the data in parent.
Childwidget will contain some server side script like :
var htmlname = "<some_text_here">;
data.htmlsysid = "<some_sysid>";
I want to send the data of child widget to parent widget and use it in parent widget.
Can anyone help here?
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2018 06:07 AM
Okay .. inter-widget communication you can use a shared array ..
https://www.cernasolutions.com/portal-pet-adoption-thoughts-modals/
This may help you a great extent.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2018 06:13 AM
I believe you would want to use $emit and $broadcast. This thread should help you
How to communicate between widgets in Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2018 06:38 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2018 07:06 AM
This link might help you in communication between widgets
Regards,
Sachin