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());
}
}




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