Genesys CTI User Forum > Genesys-related Development

WDE example check box

<< < (2/2)

Daere:
[quote author=PeteHoyle link=topic=9234.msg41589#msg41589 date=1448899149]
If you want checkboxes change the DispositionCodeExView.xaml

from:


<RadioButton IsChecked="{Binding IsSelected}" GroupName="DispositionCodeGroupName" Click="radioButton_Checked" ToolTip="{Binding Description}">
    <TextBlock Margin="5,0,0,0" Foreground="{DynamicResource SilverBorderColorBrush}" Text="{Binding DisplayName}" />
</RadioButton>

to:

<CheckBox IsChecked="{Binding IsSelected}"  Click="radioButton_Checked" ToolTip="{Binding Description}">
    <TextBlock Margin="5,0,0,0" Foreground="{DynamicResource SilverBorderColorBrush}" Text="{Binding DisplayName}" />
</CheckBox>
[/quote]

Hi Peter,

I've made the change that you've indicated into the ExtensionSample at the DispositionCodeExView.xaml and leaving the rest of code unchanged.
The problem is that into the Disposition View it's not allowed to select more than one Disposition Code because the tick select only one Disposition code and if I try to check another Disposition Code the previous one will be deselected. The tick is also not visible.

This is the method into the DispositionCodeExView.xaml.cs:

[code]private void radioButton_Checked(object sender, RoutedEventArgs e)
        {
            interaction = Model.Interaction;

            if (isEnabledChangeAttachedData)
            {
                if (Model.Interaction != null)
                    if (Model.Interaction.DispositionCode.SelectedDispositionCodeValue != null)
                    {
                     
                      interaction.SetAttachedData(interaction.DispositionCode.CodeKeyName, interaction.DispositionCode.SelectedDispositionCodeValue.Name);
                                          }
                    else
                        interaction.RemoveAttachedData(interaction.DispositionCode.CodeKeyName);
            }
        }
}[/code]

Thank you

cavagnaro:
Disposition codes by definition should be one only. Maybe you can create another listbox to provide what you are trying to do

Navigation

[0] Message Index

[*] Previous page

Go to full version