the method from the deeplink will be called with 2 params,
the first one will be the value of ‘a’ and the second will be
a map containing all the name-value pairs for the other params of the deeplink
Gabi Boros:
the method from the deeplink will be called with 2 params,
the first one will be the value of ‘a’ and the second will be
a map containing all the name-value pairs for the other params of the deeplink
How would you retrieve the map?
function doActionBackup(param1, param2) {
var x = param1 //should get abc
var y = param2 //should get 123
var z = arguments[0] //should get xyz
}
Gabi Boros:
the method from the deeplink will be called with 2 params,
the first one will be the value of ‘a’ and the second will be
a map containing all the name-value pairs for the other params of the deeplink
How would you retrieve the map?
function doActionBackup(param1, param2) {
var x = param1 //should get abc
var y = param2 //should get 123
var z = arguments[0] //should get xyz
}
The reason for being undefined is because you are missing an ‘s’ after argument.
It’s arguments[0] and arguments[1].
But yes, as David already explained function parameters will make your life easier and you can name them the way you want.
The reason for being undefined is because you are missing an ‘s’ after argument.
It’s arguments[0] and arguments[1].
But yes, as David already explained function parameters will make your life easier and you can name them the way you want.
When I open the url with my arguement a=XYZ I can use in onSolutionOpen
var dlink = application.output(argument[0])
then I can see in the debug window that the value of argument[0] is “XYZ” but I can’t store this into any variable.
The value of variable dlink is alway undefined…