Dynamically changing the WHERE clause of the view object query