Author Topic: IWS-Development-related Question  (Read 1936 times)

Offline Ali

  • Jr. Member
  • **
  • Posts: 72
  • Karma: 0
  • Haunted by Genesys
    • My Web Site
IWS-Development-related Question
« 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.

Offline GoodONE

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
Re: IWS-Development-related Question
« Reply #1 on: April 19, 2018, 03:25:32 PM »
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?