cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1259
Views
10
Helpful
4
Replies

Finesse gadget issue

Clifford McGlamry
Spotlight
Spotlight

Struggling with an issue in Finesse.  

 

I have a gadget that works that uses this:

 

displayCall = function (dialog) {
var callVars = dialog.getMediaProperties();

// Examples of getting data from the Dialog object (GET)
/* */

// Example of using data from the dialog to do a web search
$("#bing").attr("src","https://www.test.com/testsite/unprocessedpayment.aspx?q=" + callVars["userCallerName"]);
},

The caller id displays in the upper part of finesse correctly, and will concatenate onto the string for the URL correctly.  

 

However, I cannot get this to work:

displayCall = function (dialog) {
var callVars = dialog.getMediaProperties();

// Examples of getting data from the Dialog object (GET)
$("#dnis").text(dialog.getMediaProperties().DNIS);
/** fromAddress is the callers caller ID info */
$("#fromAddress").text(dialog.getFromAddress());
$("#fromCallerIDName").text(callVars["userCallerName"]);
},

 

I have the fileld defined in the XML along with the other variables (they all work) like this:

<fieldset id="dialogfieldset" class="outline">
<legend>Dialog</legend>
<div><b> DNIS: </b><span id="dnis"></div>
<div><b> ANI: </b><span id="fromAddress"></div>
<div><b> Caller ID Name: </b><span id="fromCallerIDName"></div>
<br>
</fieldset>

 

What am I missing?  Why can't I get the User call variable userCallerName to populate into the field?

4 Replies 4

Clifford McGlamry
Spotlight
Spotlight

Solved my own problem.  For some reason, even though updated code was on the server, it was not actually using it.  Figured this out by copying the gadget into a new directory and mapping it into the desktop XML.

 

Still don't understand why this was happening.  I had even restarted the Finesse Tomcat service, and that still didn't address the issue.  

Hi,

 

The Finesse gadgets get cached (big time). During development, the best way to test your gadget is to use the nocache option: https://developer.cisco.com/docs/finesse/#!gadget-caching

 

Of course this should not be used for production because it would defeat performance reasons for the caching.

 

Thanx,

Denise

Interesting.  So the nocache option go to when you login to the finesse desktop like this:

 

https://uccxserver:8445/desktop?nocache

 

Can it go into the desktop configuration XML within the finesse administration for that specific gadget?

Hi,

 

Yes you add it to the url in your browser. I typically like to log in the agent first, then add &nocache at the end of it. So using the DevNet sandbox, it ended up being https://hq-uccx.abc.inc:8445/desktop/container/?locale=en_US&nocache

 


Can it go into the desktop configuration XML within the finesse administration for that specific gadget?


No it cannot.

 

Thanx,

Denise