Genesys CTI User Forum

Genesys CTI User Forum => Genesys-related Development => Topic started by: obegendi on April 15, 2015, 07:36:52 AM

Title: IWS - Disposition View
Post by: obegendi on April 15, 2015, 07:36:52 AM
Hello everyone,

I'm trying to replace a existing view on IWS. I tried to create a view for DispositionDetailsRegion i register it in main initialize method, but i couldn't control disposition code combobox. I'm actually trying to do action depends what selected on that combobox. I think that combobox default for IWS outbound, am i right ? Combobox contains; Answer, Unknown call result, fax, wrong party ....
If agent select answer i want to show my custom survey form, if select another thing see nothing. I looked in my interaction event handler's object (e.value) then dispositioncode was NULL, also i tried IDispositionCode on desktop.outbound but i couldn't anything useful. If i can catch when selected on that combobox, like on standart wpf combobox element's selection_changed event, its gonna be perfect for me. I read all document about view but nothing useful, please tell me how can i do this ? What is the best method for this?

Thank you.
Title: Re: IWS - Disposition View
Post by: Kubig on April 15, 2015, 10:49:17 AM
The view with disposition codes is not related just to the outbound calls, but to all types of interactions. The view/window with combo box (Answer, Unknown call result) is related to campaign calls, where the view/region is different from the above with disp. codes. So, I think you have selected wrong region for your custom module.
Title: Re: IWS - Disposition View
Post by: obegendi on April 15, 2015, 05:15:31 PM
Hello,

Is it wrong ?

container.RegisterType<IDispositionCodeView, DispositionCodeExView>();

I just want to control that default disposition combobox.
Title: Re: IWS - Disposition View
Post by: Kubig on April 16, 2015, 05:53:09 AM
It is right - for disposition codes region - you can find similiar sample within IWS/WDE package.
Title: Re: IWS - Disposition View
Post by: obegendi on April 16, 2015, 09:44:24 AM
Hello,

Is it possible to control that default combo or control view (dispositiondetailsregion) ? Or just catch selection_changed evet that combo, but how ?! ???

Title: Re: IWS - Disposition View
Post by: Kubig on April 16, 2015, 10:29:14 AM
Do not understand what you want to achieve - replace default DispositionCode view or change behavior of default disposition codes?
Title: Re: IWS - Disposition View
Post by: obegendi on April 16, 2015, 11:05:02 AM
Hello again,

I want to control that view. Actually if i can delete/remove view a region, this gonna be great. Is it possible to remove a region ?

Like this maybe ?
viewManager.ViewsByRegionName["InteractionDetailsDispositionsRegion"].Remove(new ViewActivator() { ViewType = typeof(IDispositionCodeView), ViewName = "DispositionCodeView" });

But its not working i guess, also there is a deactivemethod and remove method in viewmanager object. But i couldn't run this either.

viewManager.DeactivateViewInRegion(parentview, "InteractionDetailsDispositionsRegion", "DispositionCodeView");

What is really parent view ? it seems like a object, but i didn't see anything before like parentview object ? What is the proper using this ? Can you help me little bit ?