How not to "fill up" a view when flagging I have a list of different tasks (about 100 items). Each time a user logs in, he should get a display of 5 tasks randomly selected out of this list. When he finished the task, he can flag them as "done" and the task will disappear from the list. I managed to do this with flag module and views module.
The problem is, that the task-list is much longer than the 5 tasks. So each time the user flags a task with "done" this task will disappear from the list, but a new task will show up at the same time.
How can I stopp a view to be "filled up" in order that the user can empty his task list? (And may be gets new tasks only the next da or on next login).
I figured out how to manage the problem without the need to write new code. I am posting it here, so that it may help others as well, even if the topic is very specific.

How to manage, that a view doesn't fill up immediately after flagging:


Create a "helper flag" and set the flag link to the helper flag on the nodes of your view.
Create a rule, that the flagging of the helper flag, adds the action of unflagging your original flag.
Put the filter in your view in this way, that not only all nodes are displayed that are unflagged with your original flag, but also those with the helper flag (or-filter)
Create a rules display of this view.
Create a rule that reacts on the event "user has logged out".
Add a view loop from the created rules display and add the action (unflag the nodes". choose the "helper flag" to be unflagged.


That's all. As long as the user stays logged-in, the view is not filled up, when he flags the nodes. As soon as he logs out, the helper flag is unflagged and the view is filled up.