Solved

Need to create a Admin view that bypasses form formula

Posted on 2003-12-09
6
387 Views
Last Modified: 2013-12-18
Hi Guys

I was wondering .now that I have the form formula working, I figure I should be able to create a hidden view that only "[Admin]" role should see that would bypass the form formula. I have tried and created a new view without the form formual and still I cannot see all the docs, they are still using the form formula and presenting the Not Authorized message.

Is there away around this??

@If(
     @IsNewDoc;
          @Unavailable;
     @UserNamesList *= Edit_Rights : NameAH;
          Form;
          "ErrorMessage")
0
Comment
Question by:adspmo
[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
6 Comments
 
LVL 24

Assisted Solution

by:HemanthaKumar
HemanthaKumar earned 250 total points
ID: 9904461
When you create a view.. it will inherit the default design from the default view.. So you have inherited all the restrictions again which could have had form formulas.

What you can do is include Admin role into the form formula to bypass any alternate forms.. so that you don't have to build a new view for admin

@If(
     @IsNewDoc;
          @Unavailable;
     @UserNamesList *= Edit_Rights : NameAH | @IsMember("[Admin]"; @UserRoles);
          Form;
          "ErrorMessage")

~Hemanth
0
 

Author Comment

by:adspmo
ID: 9904536
I think I made a big mistake

On the form that I need to see there are two fields,an edit_rights and a whoCanSee...

I did not add the Admin role to the who can see, There fore I cannot see these dox to to refresh the changes. I have an all view where I can see the info in a view , if I try to open even with the change above I still get the Bad message
0
 

Author Comment

by:adspmo
ID: 9904612
Ok

So if I open a document  can then use the switch form and select the form I need to use

Can this be done programmatically
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 14

Expert Comment

by:p_partha
ID: 9904688
create a view with the same formula as the current one, but there is a option for form formula, Choose the form which you want to give

Hope i am clear

Partha
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 9904777
Yes use ViewSwitchForm command..
0
 
LVL 31

Accepted Solution

by:
qwaletee earned 250 total points
ID: 9909211
Note: When you remove a form formula, you must exit and re-open the db (or at least the view) for the change to be recognized.  Also, the new view is generally based on an existing view, and would have inherited that view's form and selection formulas.  Make sure the formula you don't want is truly cleared from the new view, close/re-open DB in client, and then check results.

Onward... You may have confused two things:

SELECTION FORMULA -- specifies which documents dispay in the view, but has nothing to do with what hapens when you open a document

FOMR FORMULA -- if user opens a document or form taht is currently in the view, determines if a particular form shoudl be used to display the opened document.  This form does not affect what displays in the view at all, only what happens when you double click a doc, press enter on a doc, or display the preview pane and have a doc selected.

Assuming you have no Readers fields, the selection formula is the sle place that determines whether a document displays in the view.  Assuming you removed the form formula, you shoudl be getting the document's "natural" form.

You can also add a special bypass to the form formula of any view, so that when @UserRoles="[Admin]" no access check is made.

@If(
     @IsNewDoc;
          @Unavailable;
     @UserRoles = "[Admin]";
          @Unavailable;
     @UserNamesList *= Edit_Rights : NameAH;
          Form;
       "ErrorMessage")
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

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…
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.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

762 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