Genesys CTI User Forum > Genesys-related Development

Create tab in InteractionDetailsRegion based on Disposition Code tab

<< < (4/4)

MJaskowski:
Thank you cavagnaro for reply,

Your comments were very useful - unfortunately still I have problem with use isMandatory option.
In case where we use DispositionCode tab, if you don't tick any position then you'll obtain orange alert "Disposition Code is mandatory value" ( or something similar ).
Can I achieve it for my own tab ( "own tab" I mean not DispositionCodeEx, only own with TreeView where I can select option from list )?

Regards
Matt

PeteHoyle:
There are a few different ways you could do this, probably the easiest way is to create a custom command and add it to the BundleClose command

[code]container.Resolve<ICommandManager>().CommandsByName["BundleClose"].Insert(0, new CommandActivator() { CommandType = typeof(MarkDoneCustomCommand) });[/code]

Your custom command will be called when the Mark Done button is pressed.

In your custom command you then need to check if IsMandatory is enabled, if so you then need to check if there is a value set in your custom view, if not then return true and display a message, returning true mean that the BundleClose command does not continue..

[code]if(interaction.DispositionCode.IsMandatory)
{
if (!myCustomViewValueSet)
{
                //Display a message explaining that no value is selected in the custom view.
              //Return True means the chain of command will not continue
return true;
}
}
//return false and the chain of command will continue
return false;[/code]

MJaskowski:
Pete thank you for your help, that was it! :)

I suppose the last question is, can I get anywhere, any description of Style resources?

For example: I have DeleteDispositionButton, for this button we have style "vistaSmallButtonStyle".
e.g. Style="{DynamicResource vistaSmallButtonStyle}

Can I get somewhere list of styles for concrete controls?

Regards,
Matt

MJaskowski:
Any ideas?

Additionaly  I have trouble with one else situation. I try handle ApplicationClose command:

[code]
container.Resolve<ICommandManager>().CommandsByName["ApplicationClose"].Insert(0, new CommandActivator() { CommandType = typeof(ApplicationCloseCustomCommand) });
[/code]

Question is, how is implementing Interaction?

When I used
[code]
container.Resolve<ICommandManager>().CommandsByName["BundleClose"].Insert(0, new CommandActivator() { CommandType = typeof(MarkDoneCustomCommand) });
[/code]
inside MarkDoneCustomCommand I can use IIteraction interface, in ApplicationCloseCustomCommand I can't.
Body for both class is the same, exactly the same.

What determine Interaction?

Regards
Matt

Navigation

[0] Message Index

[*] Previous page

Go to full version