Calling refresh from the LinkHandler.cs Class

I recently had to figure out how to make the detail view in the SalesLogix 7.5.4 web client refresh after running a common task.  The common tasks server side code executed within the LinkHandler.cs file in the App_Code directory.  This is how to accomplish that.

 

        Sage.Platform.Application.UI.Web.ApplicationPage s = this.Page as Sage.Platform.Application.UI.Web.ApplicationPage;
        if (s.PageWorkItem != null)
        {
            Sage.Platform.WebPortal.Services.IPanelRefreshService refresher = s.PageWorkItem.Services.Get<Sage.Platform.WebPortal.Services.IPanelRefreshService>();
            if (refresher != null)
            {
                refresher.RefreshAll();
            }
            else
            {
                HttpContext.Current.Response.Redirect(HttpContext.Current.Request.Url.ToString());
            }
        }

ABOUT THE AUTHOR

Kris Halsrud

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

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) and Creatio (bpm'online) news and product updates!

You have Successfully Subscribed!