Private Views On Web

We all are faced with the problem of displaying specific documents to specific
users in a view on web. This code will help us to create PRIVATE VIEWS on web
for users.
Create a field(say the name of the field is "EmplName") in the form (say the
name of the form is "Lotus") which you want to display in view. Make the field
computed and use the formula: @name([cn];@username);

Now in the view or say PrivateView the select condition goes like this:
a:=@Name([CN];@UserName);
SELECT ((Form = "Lotus")) & (@Contains(EmplName; a))

Make sure in the view properties - Hat tab - Refresh Index is "automatic"
Discard Index is "After each use"

Thats it.. Now the users have Private Views on Web.. Cool.. isnt it?

This was first published in November 2000

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.