Solved

Need to create a Admin view that bypasses form formula

Posted on 2003-12-09
6
383 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
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

770 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