Genesys CTI User Forum

Genesys CTI User Forum => Genesys-related Development => Topic started by: GoodONE on August 13, 2018, 07:38:52 PM

Title: Genesys Widget Chat
Post by: GoodONE on August 13, 2018, 07:38:52 PM
Hello, forum,

I need your help on an issue we are currently facing, the Genesys Widget chat contains a configuration block used to specify some attributes when loading the page, that works fine, but now we need to update a part of the config, I mean after it has been loaded we want to update or reinitialize the whole configuration without reloading the page, Does somebody of you know how to do it?

We have tried some of the commands but no one of them seems to work.

[table]
[tr]
[td]window._genesys.widgets.bus.command('App.closeAll').done(function()
{
alert("AppCLOSED"); //Notify that the app has been closed
UpdateChatURL(); //Here we update the configuration

}).fail(function(){
alert("App was not closed");

});[/td]
[/tr]
[/table]

Regards.
Title: Re: Genesys Widget Chat
Post by: hsujdik on August 14, 2018, 12:58:29 AM
As per API Reference guide:

[quote]
[b]configure[/b]

Internal use only. The main App plugin shares configuration settings to widgets using each widget’s configure command. [b]The configure command can only be called once at startup[/b]. Calling configure again after startup may result in unpredictable behavior.
[/quote]

[url=https://docs.genesys.com/Documentation/GWC/latest/WidgetsAPI/WebChatServiceCommands#scrollNav-2]https://docs.genesys.com/Documentation/GWC/latest/WidgetsAPI/WebChatServiceCommands#scrollNav-2[/url]
Title: Re: Genesys Widget Chat
Post by: Pitchex on August 28, 2018, 07:12:41 AM
The story in this post can be answered in search of the best.