on 07-27-2016 6:28 PM
Hello Experts,
I am having small query...
In my application there are 3 radio buttons after selecting the particular radio button i am able to display the data in table.
But for every 5 mins i want to refresh the table automatically with out any user action.
I tried with model.refresh() but i am not sure how it is going to work.So expecting some best example..
Could you please guide me....
Thanks,
Deepak Raj.
Deepak,
there is a javascript function called setTimeout - may be an overkill to set this to refresh every 5 mins
but i think that as the user navigates through your app, the model will get updated by itself when the page(ui view) is visited again.
alternatively, you could have the model to be refreshed when the user switches the radio button selection
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Serigo,
If user switches the radio button,then the the table will updated automatically.
But with out any user action also the model has to be refreshed.
For example lets say
user switches radiobutton 3 to radiobutton 1 then according to the selection values will be updated.
But if the didn't switched for 5-10 minutes then the selected radio button will be same then also with out any user action the values has to be updated.
I understood you comment about setTimeout()
I am not getting where to add this function.
selected:function(evt){
selected_but = "3";
var model = some values.
table.setModel(model);
//now i want to refresh this process..by using settimeout()
}
Thanks,
Deepak.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.