cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 AutoRefresh of JSON model

0 Kudos

Hello Everyone,

I want to AutoRefresh the model after every 5 seconds in SAPUI5. I am having XML views and JSON models in my application. I tried to use setInterval(alert("test"), 60000); function in component.js as well but it is executing only once. I am not sure how to trigger any function after every 5 minutes.

Thanks in advance.

Mahak

venkateswaran_k
Active Contributor

Dear Mahak

I believe that solves your problem? If this answer has solved your problem, accept the answer and close the thread. This will help other who search for the same solutions.

Accepted Solutions (1)

Accepted Solutions (1)

maheshpalavalli
Active Contributor

you need to pass a function to it.

setInterval(function(){
    alert("test")
}, 2000)
0 Kudos

Hello Mahesh,

Thanks for your reply.

It has solved my problem. Thanks again,

Mahak

venkateswaran_k
Active Contributor

I believe that solves your problem? If this answer has solved your problem, accept the answer and close the thread. This will help other who search for the same solutions.

Answers (0)