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:
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);
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.