Solved

How to create a view

Posted on 2000-03-23
5
174 Views
Last Modified: 2013-12-18
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?

0
Comment
Question by:reden
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 

Accepted Solution

by:
asgrant earned 100 total points
ID: 2652274
I have done something similar to the functionality you are wanting to achieve:

Include a Readers field on your document that is computed when composed to include the author (or make it editable with the author as default, so bosses can add secretaries). When documents are created, only the names listed in the Readers field can "see" the document in the database. Then when you want to process the document for public view, have an agent change the value(s) of that field to include other people... or delete altogether.

If you are unfamiliar with Readers fields, please read the section on it in the Lotus documents, because it is a very powerful tool that is often misused with tragic results. In short, the use of the Readers field can lock out all users regardless of ACL settings. Because of this, I usually include a second hidden Readers field that computes to a "role" in the ACL. This way you can always add a user to that role and "see" the documents... just in case the first Readers field gets invalid data.

The only drawback is that pre-R5 any view could be created to fields on the form as Categories and in the view you could see the data in those fields, but would not get to see the actual document when expanded... i.e. if you had a Salary field on the documents, a view could be created to show Salary as a Category and you would see all the values in the view as a category - but you were still unable to expand and see the documents that corresponded to the category. R5 has fixed this with a view setting that does not show Categories with Zero documents... meaning that if you can't see any of the documents for a Category, you don't get to see that category either.

Hopefully this will help you out. Please feel free to ask followup questions.
0
 
LVL 1

Author Comment

by:reden
ID: 2652398
I'll get back after testing the reader fields on my database
0
 
LVL 1

Author Comment

by:reden
ID: 2652407
Will readers fields will limit the contents of a view to the current user?
0
 
LVL 1

Author Comment

by:reden
ID: 2652525
Will readers fields will limit the contents of a view to the current user?
0
 

Expert Comment

by:asgrant
ID: 2654002
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".
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question