How to pass data from one widget to another widget on spModal popup
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2022 12:56 AM
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2022 01:07 AM
Hi,
To pass data from one widget to another widget then you need to make use of "Broadcast" and "on" functions..
This link helps you.
I hope it clears your issue, if so please mark my response as both CORRECT and HELPFUL.
I need to pass data from one widget to another widget, second widget display over spModal popup.
In widget 1 , below is the code for calling spModal and adding widget:
$scope.getdata = function(data)
{
spModal.open({
title: "Invoice Detail - #"+data.invoice,
widgetInput: {"value": data.invoice},
widget: 'invoice_details',
buttons: [
]
}).then(function(response)
{
});
could you please guide me how i can access this data in second widget.
Thanks in advance