I have created a local variable that will fetch all the tasks from a process report. When there is a change in the task,i.e. i have accepted or assigned or completed the task, or added a new task, it should automatically refresh the grid and show the change in it. How to do this process?
Discussion posts and replies are publicly visible
You can configure the variable you have created to refresh every 30 seconds. That you, in every 30 seconds, you will have a refreshed state of the grid. Making it refresh always true will also be helpful to achieve your goal if the user has certain actions that she/he can take on the same grid screen.
I would like it to refresh only when there is a change in the grid. Is there any specific condition for that?
Grids have some refresh parameters. Have a look at the documentation and you will find what you need.
As I am aware I don't think we do have that feature to automatically refresh the screen when a task is updated. You need to user refresh conditions as Harshit and Stefan mentioned.
Tried it, but its not really working.
Please post your sample code here - as far as I'm aware, there's no reason Harshit's suggestion for the autorefresh timer wouldn't work right - but it needs to be implemented correctly, which can be tricky when you're not used to some of the subtleties of the advanced functionality used in local variable refreshing.
I did use the autorefresh timer. What i needed was a code which would refresh the grid whenever the task is changing from assigned --> accepted, and if it's assigned to someone it should also refresh. But only the grid is being refreshed when the task is accepted but not if its assigned to someone else. I have used refreshAlways as true still not working. Even used Refresh after user interaction