Genesys CTI User Forum

Genesys CTI User Forum => Genesys-related Development => Topic started by: bharath on December 05, 2017, 07:44:49 AM

Title: WDE - update text in notepad
Post by: bharath on December 05, 2017, 07:44:49 AM
Hi,
Can any one help how to update the text in notepad (using notepadviewmodel).

thanks in advance.
Title: Re: WDE - update text in notepad
Post by: PeteHoyle on December 06, 2017, 10:25:40 AM
Hi,

Depending on how and where you want to update the text in Notepad the best place to start would be to get the interaction and then use the code below:

[code]                            INotepadViewModel notepadViewModel = inter.UserData.TryGetValue("NotepadViewModel") as INotepadViewModel;
                            if (notepadViewModel != null)
                            {
                                notepadViewModel.Text = "My Text";
                            }[/code]