AnsweredAssumed Answered

Finesse developer issue

Question asked by m.saadkhan on May 5, 2015
Latest reply on May 8, 2015 by ewindgat

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

                                                }

              

 

    },

Outcomes