" /> WDE Development ToolbarDialerRegion - Genesys CTI User Forum

Author Topic: WDE Development ToolbarDialerRegion  (Read 2437 times)

Offline kny

  • Newbie
  • *
  • Posts: 24
  • Karma: 0
WDE Development ToolbarDialerRegion
« on: August 22, 2016, 11:33:34 AM »
Advertisement
Hi all,
I am quite new to genesys wde development. I have already created my custom views see below.
I need to put a phone  number into the dialer box of wde.
I am unable to do so.
I tried a count of ("ToolbarDialerRegion"), I get 0 as result.

Can anyone help me please?

public void Initialize()
        {
            Int32 viewcount = viewManager.ViewsByRegionName["ToolbarWorkplaceRegion"].Count;
           
            container.RegisterType<IMyCustom, MyCustom>();
            container.RegisterType<IMyCustomModel, MyCustomModel>();
            viewcount--;
            viewManager.ViewsByRegionName["ToolbarWorkplaceRegion"].Insert((viewcount+1), new ViewActivator()
            {
                ViewType = typeof(IMyCustom),
                ViewName = "MyCustom"
            });

            container.RegisterType<IMyTCustom, MyTCustom>();
            container.RegisterType<IMyTCustomModel, MyTCustomModel>();

            viewManager.ViewsByRegionName["ToolbarWorkplaceRegion"].Insert((viewcount+1), new ViewActivator()
            {
                ViewType = typeof(IMyTCustom),
                ViewName = "MyTCustom"
            });


            string va = viewManager.ViewsByRegionName["ToolbarDialerRegion"].Count.ToString();
            MessageBox.Show(va);
}