Showing results for 
Search instead for 
Did you mean: 

How to achieve fields auto refresh based async api call with RAP?

0 Kudos

Hi Experts,

I created a sample app based on RAP(managed) and Fiori elements.

I want to achieve the scenario like this:
1. User create a BO(instance) with some fields
2. An async api call/polling to the service(every 5 minutes) triggered.
3. Once the API call get return result with success, update the BO(instance) and auto refresh the page.

my question is:
1. How to trigger the async call/polling with RAP?
2. How to detect the api return periodically and update the corresponding field and refresh the page?

I've tried the side effects, but it seems can only detect manual action change? I am not quite sure.
Thanks in advance to any opinions/suggestions.

Accepted Solutions (0)

Answers (0)