Genesys CTI User Forum
Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: kny on August 22, 2016, 11:33:34 AM
-
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);
}