Genesys CTI User Forum

Genesys CTI User Forum => Genesys-related Development => Topic started by: cavagnaro on September 07, 2010, 10:50:48 PM

Title: GAD custom tabs - keep information while changing tabs
Post by: cavagnaro on September 07, 2010, 10:50:48 PM
Hi guys,
I have always assumed this as this is how it works, but now wonder if there is any way to control this:

Scenario:
Agent has GAD with 3 custom tabs (google, internal app, internal app 2)
Agent receives a call and google launches a search based on the query sent to the GET parameters (q=whatever)
Agent changes to internal app 2, then returns to google but now google searchs again and if agent had already changed the page or clicked somewhere he loses the previous information before he switched the tab...the same for all the internal applications.

Is there any way to avoid this??

Thanks!
Title: Re: GAD custom tabs - keep information while changing tabs
Post by: René on September 08, 2010, 08:20:23 AM
Hi Cav,

There is a way using setCustomContext and getCustomContext functions. You would need to implement these functions to cover your need. I used these in the past - let me know if you need more help.

R.
Title: Re: GAD custom tabs - keep information while changing tabs
Post by: cavagnaro on September 09, 2010, 04:14:15 AM
Hum...have tried to find more information but couldn't find nothing...nothing on Devzone, nothing on support site...help please...
Title: Re: GAD custom tabs - keep information while changing tabs
Post by: René on September 09, 2010, 07:29:54 AM
Hi Cav,

There are some samples using get/setCustomContext methods described in Genesys Desktop 7.6 Developer's Guide. I will try some more examples...

R.
Title: Re: GAD custom tabs - keep information while changing tabs
Post by: cavagnaro on September 09, 2010, 01:59:21 PM
Ok will check it :)
Thanks!
Title: Re: GAD custom tabs - keep information while changing tabs
Post by: cavagnaro on September 09, 2010, 04:23:28 PM
Nop, couldn't find any sample with such options....
Title: Re: GAD custom tabs - keep information while changing tabs
Post by: cavagnaro on September 24, 2010, 10:08:18 PM
Hey René,
Were you able to find your code? I have been trying but no luck at all :(
Title: Re: GAD custom tabs - keep information while changing tabs
Post by: René on September 26, 2010, 11:54:22 AM
Hi Cav,

I didn't find the code but I wrote a sample for you :) Check you email...

BTW I tried to implement the functionality you're after and got into troubles due browser security restrictions (cross-site scripting). Simply - browser won't allow you to read current URL of Google page running in iframe...

R.