cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
354
Views
0
Helpful
1
Replies

Finesse LearningSampleGadget Page Load

mattiep00
Level 1
Level 1

Hi Guys,

Playing around with the learningsamplegadget (but get the same behaviour in the embeddedwebapp and screenpop applications.

I am trying to load a webpage and pass a variable based on specific UCCX triggers being dialled. Does anyone have any examples of this behaviour?

So if 1234 is dialled I want to load https://left-intranet+ callVars["callVariable1"]

and if 4567 is dialled I want to load https://right-intranet+ callVars["callVariable1"]

I was initially trying this using workflows (which is how it's configured in CAD), however I want it to pop within a frame in the Finesse interface.

Any thoughts? I assume I can edit the javascript with an IF statement?

1 Reply 1

dekwan
Cisco Employee
Cisco Employee

Hi Matthew,

If you want to use a workflow that pops within a frame in the Finesse interface, you can use the WorkflowScreenPop sample gadget.

If you want to use the learningsamplegadget, you would need to do the follow:

Where you see the code

$("#bing").attr("src","https://www.bing.com/search?q=" + callVars["callVariable3"]);

you need to add an IF statement similar to this (note that this is not tested code):

var dialedNumber = dialog.getData().dialedNumber;

if(dialedNumber === '1234') {

    $("#bing").attr("src"," https://left-intranet"+ callVars["callVariable1"]);

} else if (dialedNumber === '4567') {

    $("#bing").attr("src"," https://right-intranet"+ callVars["callVariable1"]);

}

Again, the code above hasn't been tested, so there might be some errors, but you should get the point.

Thanx,

Denise