PureEngage On-Premises

 View Only

Sign Up

  • 1.  How to add web page to the Workspace Desktop Edition?

    Posted 12-16-2014 15:45
    When the operator accepts the call, in the call box should appear webpage. But how to build this extension in C#?


  • 2.  RE: How to add web page to the Workspace Desktop Edition?

    Posted 01-06-2015 16:28
    Greetings Sergey,

    You need to create a new module wich replaces the existing view with the custom view containing the WebBrowser control.  To replace the existing view with another one you need to associate the existing view interface with the new "custom" view implementation. 

    To open a predefined web page you need to add WebBrowser control in your custom view. See example below reflecting how to add WPF WebBrowser control to the view.

    // Form the URI to navigate to
    Uri uri = new Uri(some_url, UriKind.RelativeOrAbsolute);

    // Create the web browser control and add it to the view
    System.Windows.Controls.WebBrowser myWebBrowser = new System.Windows.Controls.WebBrowser();
    this.Content = myWebBrowser;
    myWebBrowser.Navigate(uri);


    ? To get instructions on how to modify the existing view, follow the "Customize Views and Regions " -> "Replacing an Existing View" section.

    For more info consider "Using Workspace Desktop Edition API" and "How can I use a URI passed in attached data?" sections of Workspace Desktop Edition Developer's Guide.


    There are Workspace Desktop Edition Extension Samples, you may want to take a look at them as well.


    Happy New Year!
    Best wishes )
    Roman T


  • 3.  RE: How to add web page to the Workspace Desktop Edition?

    Posted 03-06-2015 03:42
    Hi Sergey,

    I have accomplished this several times.  I did a small write up on another forum regarding this.  It is important to note there are some memory leak bugs with the WPF WebBrowser control that you will need to be aware of and work around.  See my other forum post explaining how this can be done: http://www.sggu.com/smf/index.php/topic,8645.msg38211.html#msg38211

    Regards,
    Andrew


  • 4.  RE: How to add web page to the Workspace Desktop Edition?

    Posted 10-09-2015 08:09
    Hi,
    memory leak yes, but during closing view its enought to redirect page to blank and thats solve your problem :)

    R