Solved

How to create a view

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

708 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

16 Experts available now in Live!

Get 1:1 Help Now