Sometime a REST call to the backend in your application could take too long, and you want to allow the user to cancel this operation mid-run. This is possible using an AbortController – a new interface that allows you to abort a web request (This interface is supported by most modern browsers). In the blog below I’ll show how to use this technique in a Visual Builder application.
The process is quite straightforward and the artifacts are shown in the video below. The steps to achieve this consist of:
1. Adding an application variable that will track the AbortController – this will be a variable of type Any
2. Add two JS functions at the application’s level: Read the complete article here.
For regular information become a member in the Developer Partner Community please register here.