Filtering a view

newbie question: I am maintaining an old notes application, which allows a committee to review/approve employment leave requests. There is a rule that a committee member is not supposed to review a leave request submitted by a member of his own department. The requests appear in a Notes view – access to the view is already restricted to the review committee. Right now the view displays exactly the same documents to all reviewers.

Is it possible to filter the documents in the view based on the department of the currently logged in reviewer being not equal to the department of the person who created the document? Can I use @SetViewInfo for this purpose? Is there a better way?

Thank you in advance.

Subject: Restricting view access

I am not very sure but maybe you can create tabbed table and embed view in that and use hide when formulas on tabs.

Subject: Restricting view access

Thanks for your reply. I did not end up needing to use @setviewinfo, since I was able to write some lotusscript code in the initialize method of the view, rather than filtering after the view had been selected. In other words, dynamic filtering was not required. Thanks again!

Subject: view initialize method not running from web client

I have discovered that my view modification, handled in the initialize subroutine of the view, runs if someone opens the view using the Notes client, but not if they open it using a web browser. Does anyone have any idea why this is? Is it possible to force the subroutine to run if the view is opened on the web?