AutoRefresh

HEllo I'm trying to implement autorefresh request but it doesn't work

first variable : autorefresh (type string, default value 0)

2nd : create a variable refreshVal (javaScript Expression)

```shell

setInterval(function(){
    $data.autorefresh = new Date().getTime();
    console.log($data.autorefresh);
},6000);
 
return $data.autorefresh;

```

but on page when i show it does not refresh

Any idea ?

my target is to do this : https://documentation.bonitasoft.com/bonita/latest/pages-and-forms/variables#_call_a_rest_api_regularly_auto_refresh