Genesys CTI User Forum
Genesys CTI User Forum => Genesys-related Development => Topic started by: Ali on March 19, 2018, 01:50:26 PM
-
Dear all,
The requirement from our customer is as follows:
When the agent is to place a call manually GAS screen and its side button are displayed on InteractionWorksheetRegion and CaseViewSideButtonRegion, respectively.
And when the agent is to handle a preview call GAS screen and its side button MUST be removed/invisible.
To do this, I use the following code:
[size=10pt][font=courier]ViewActivator view_ = null;
bool GASFound = false;
foreach (ViewActivator view in Globals.MyViewManager.ViewsByRegionName["CaseViewSideButtonRegion"])
{
if (view.ViewName.Contains("GAS"))
{
view.ActivateView = false;
view.ViewType = null;
view_ = view;
GASFound = true;
break;
}
}
Globals.MyViewManager.ViewsByRegionName["CaseViewSideButtonRegion"].Remove(Globals.GASView);[/font][/size]
Which successfully removes the GAS. However, I couldn’t add it back to the Interaction Window. Could you please tell us how to add and remove GAS screen and its side button efficiently?
Thank you in advance.
-
Have you tried to add a custom command before or after any action??
https://docs.genesys.com/Documentation/IW/8.5.1/Developer/UseCustomizableCommands
If not, maybe overwriting the entire view and add your own then add a condition or something like that?