cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
527
Views
2
Helpful
1
Replies

Finesse developer issue

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();

                                                }

              

    },

1 Accepted Solution

Accepted Solutions

ewindgat
Level 5
Level 5

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"];
}

View solution in original post

1 Reply 1

ewindgat
Level 5
Level 5

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"];
}