LibraryEASYProcess Reference Manual 5ProcessesServicesHtmlWorkshopForwardToPageUrl

ForwardToPageUrl Overview

The ForwardToPageUrl service is used to forward to the existing the page. This service mimics the reload functionality in a browser. This service accepts no input and only outputs info on when the service was run and duration.

This can be useful when we wish to reload the page in order to refresh webparts, but want to maintain the existing query strings. We could choose to reload only the portions of the page that need to be refreshed (datasources and onloads), but if there are very many and the developer doesn’t wish to target them all directly, this can be a simpler approach, though it will rerun all datasources and onload processes, so it could cause longer load times.

ForwardToPageUrl Use Examples

ForwardToPageUrl Use Examples

The service “ForwardToPageUrl” is used to forward to the current page. This service works similar to reload functionality in a browser.  

Basic ForwardToPageURL Use

In this webpage we have a reload button with “ForwardToPageUrl” service in its process. The process saves user inputs and then reloads the page.

Here’s a closer look at the service. Notice that this service does not take any inputs in.

Service Output

This service does not return any output in the logs. We can still see the service statistics such as Start time, End time, and Duration the service ran under “ForwardToPageURLInfo” in logs.

Using ForwardToPageURL Service to Reload In Language Selection

The preferred language for user is stored as session variable and when the page loads we check session variable containing preferred language. Users have the ability to change their language while they’re on the page. When users select their preferred language using the language dropdown, the selected language is added to the session using “AddToSession” service and then the page is reloaded using “ForwardToPageURL” service.

Powered by EASYProcess (© 2022 K-Rise Systems, Inc).