Link to home
Start Free TrialLog in
Avatar of reden
reden

asked on

How to create a view

I want to create a view that will show only the database created by the user.

User A can see only those created by A
USer B can see only those created by B

I've tried @Name([CN];@Username)=@Name([CN];Author) but no success.

I've read from the help that @USername produces unpredictable results when used in public view.

That database will actually called TASK ACTIVITY LOG where users log their task with particular code, time and date. After a period in time they will submit those task and will be approve by somebody.

During the logging time (not yet submitted) I want the user to see only those documents created by him/her.

One more thing.  the bosses can delegate this work to their secretaries the boss can see the entries created by him and by the secretary.  And the scretary can see the entries done by his boss.

Is there anyone here who have created this type of application before?

ASKER CERTIFIED SOLUTION
Avatar of asgrant
asgrant

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of reden
reden

ASKER

I'll get back after testing the reader fields on my database
Avatar of reden

ASKER

Will readers fields will limit the contents of a view to the current user?
Avatar of reden

ASKER

Will readers fields will limit the contents of a view to the current user?
Reader fields limit who can "see" that the document exists, therefore in a standard non-categorized view a person would only see documents where their name appeared in one of the Readers fields contained in the document... again, this works only if all the documents to be displayed have Readers fields on them.

Make sure you use @Username to set the name in the field, because using other forms of the name (i.e. @Name([CN]...)) have unpredictable results. And make sure there is a value in the field and not just an empty string (""), otherwise everyone can still see the document.

To familiarize yourself with how this works, look for "Readers fields" in the designer help database and you will find a document titled "Using a Readers field to restrict access to specific documents".