- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2019 04:30 AM
I have a spModal where I am getting a value from URL and placing it in client script value. Below is the code.
function(spModal) {
var c = this;
c.onWidget = function(widgetId, widgetInput) {
spModal.open({
title: 'Watch List',
widget: widgetId,
buttons:[],
value:c.data.value,
widgetInput: widgetInput || {}
}).then(function(){
console.log('widget dismissed');
})
}}
I need to pass the spModal value to another widget..
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2019 05:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2019 04:58 AM
Use below code,
in server side
options.name_of_option
in client
c.options.name_of_option
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2019 05:08 AM
You can access as
input.value in server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2022 12:50 AM
Hello Vikram,
I am also stuck in the same scenario. 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2022 10:06 PM
Hi,
Use input.server in server script