Refreshing various workspaces in the SalesLogix Web Client using the IPanelRefreshService class

In the SalesLogix LAN client you are able to reference the various forms loaded onto a page and then do things with the forms like call sub-routines, refresh, etc.  The SalesLogix web client does not have quite as robust capability (at least not exposed, though it is available).  The web client does, however, offer the IPanelRefreshService that lets you call from code a service that can refresh the various  work spaces of the web client.  The options for this refresh are as follows:

  • RefreshAll()
  • RefreshDialogWorkspace()
  • RefreshMainWorkspace
  • RefreshTabWorkspace()

These options exist in the Sage.Platform.WebPortal.dll assembly in the Services.IPanelRefreshService class.

Here is an example of how you could use one of these functions in a code event on a quick form:

if (SmartPart.PageWorkItem != null)
{
    Sage.Platform.WebPortal.Services.IPanelRefreshService refresher = PageWorkItem.Services.Get<Sage.Platform.WebPortal.Services.IPanelRefreshService>();
    if (refresher != null)
    {
        // refresh using one of the options listed above
        refresher.RefreshAll();
    }
    else
    {
        // could not retrieve service, reload page instead
        Response.Redirect(Request.Url.ToString());
    }
}
ABOUT THE AUTHOR

Kris Halsrud

Kris Halsrud is a Senior Analyst / Developer for Customer FX Corporation.

1 Comment

  1. If you are calling this from within a action item you would use:
    Sage.Platform.WebPortal.Services.IPanelRefreshService refresher =
    form.WorkItem.Services.Get();

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

Subscribe To Our Newsletter

Join our mailing list to receive the latest Infor CRM (Saleslogix) news and product updates!

You have Successfully Subscribed!