Using roles to hide or show doc in a browser

Posted on 2004-11-30
Last Modified: 2013-12-18
Hi Guys

Something a little different

I have

1) form Item viewable only in Notes
2) form ItemViewer viewable only in Browser
3)view Forms viewable only in Browser
view Forms Selection formula SELECT Form = "Item" & Status = "Publish" & Type = "Form"
FormFormula is "Item Viewer"

What I am stuck on is not all forms are to be displayed to all employees. We are using Roles to limit this
The roles names match a checkbox field (Division) on the form Item

How do I limit certain documents within the browser
When the form is created I choose the Division say Petroleum and Calgary so that if you do not have that role(s) you will not see the form listed in the forms view in the browser

I have created groups in the ACL of the db and assigned the Roles
The Item form Default read is set to All readers and above in the properties
The Forms view Default read is set to All readers and above in the properties

I cannot seem to hide or show documents from those who need to see them or not see them

Any help appreciated

Question by:imjamesw
    LVL 31

    Accepted Solution

    Easy.  Just assign the role to a reader names field.  Wtahc outt hat you don't lock out out legitimate ID's (e.g., the server, an administrator)... you can just assign them the role, assuming you don't use the role in code logic anywhere.
    LVL 24

    Expert Comment

    Does the user login to access the data ? If so then qwaletee's approach would work..

    or you have to force login the user and use readers field with appropriate roles.


    Author Comment

    Apparently they are using IIS to authenticate
    So once you have logged into the network then you are not required to log in to the intranet
    LVL 24

    Assisted Solution

    Then readers field would work.. Use @UserRoles in the readers field in addition to the admin role so that you (or admins ) are not locked out

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

      In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
    Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    754 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

    23 Experts available now in Live!

    Get 1:1 Help Now