cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi all,

I want to auto refresh my UI5 Project. Here is my code from an other question in a controller. sap.ui.define([

"sap/ui/core/mvc/Controller"

], function (Controller) {

"use strict";

return Controller.extend("DurchstichSYS.DurchstichSYS.controller.refresh", {

[window.]setInterval(functionToRefreshModel,1000); //Trigger this function every 1000 milliseconds

}

});

});

I get a error like "parsing error unexpected token". Please help me.

0 Likes
View Entire Topic
junwu
SAP Champion
SAP Champion

you'd better learn some basic javascript, what you are asking has nothing to do with ui5.

mariusobert
Developer Advocate
Developer Advocate
0 Likes

I agree with Jun. I don't mean this in a rude way (and I'm sure Jun doesn't either). But I don't think you'll be able to solve that problem by asking these questions. I recommend doing a JS training on Pluralsight, Lynda.com or any of the other learning platforms.