Solved

How to create a view

Posted on 2000-03-23
5
170 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Lotus Notes - Broken Links report 5 203
Lotus Domino server 9 7 69
Why the url within notes is no action 6 45
Installing Lotus Notes on Citrix XenApp 3 105
You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

895 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now