05-05-2015 05:44 AM
Can we have the value of Custom variables like “callVariable1” at first execution of function “handleNewDialog”? since right now we have to add Handler “dialog.addHandler('change', _processCall);”, which refresh the screen multiple times to get the required value. Required your kind feedback. Thanks.
handleNewDialog = function(dialog) {
numDialogs=1;
callvars = dialog.getMediaProperties();
dialogsVariable = dialog;
if (callvars["callVariable1"] == null )
{
dialog.addHandler('change', _processCall);
}
else
{
// render the html in the gadget
clientLogs.log("rendering dialog");
render();
}
},
“
Solved! Go to Solution.
05-08-2015 10:19 AM
If you are trying to access a Finesse call variable, try this...
//declare the arrary
var callvars = new Array();
//populate the arrary
callvars = dialog.getMediaProperties();
//check is a call variable is not null, then set access a call variable.
if (callvars["callVariable3"] == null )
{
var cv3 = callvars["callVariable3"];
}
05-08-2015 10:19 AM
If you are trying to access a Finesse call variable, try this...
//declare the arrary
var callvars = new Array();
//populate the arrary
callvars = dialog.getMediaProperties();
//check is a call variable is not null, then set access a call variable.
if (callvars["callVariable3"] == null )
{
var cv3 = callvars["callVariable3"];
}
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide