cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Walkthrough Wednesdays
236
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
Contributor

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
Contributor

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

Content for Community-Ad

This widget could not be displayed.