Creating Field Level loophole in Record Level Access Privilege

Version 2

     

    Technique

     

    Compatibility
    Creator
    Mac OS X, Windows
    Andrew Markham
    FMP 10, 11
    Xercise Pro
    Web:
    File Type: FP7
    Server:
    FileSize: ~ .06 megabytes
    http://www.xercisepro.com

    Description

    This technique allows the developer to enable access privilege at a field level

     


    Code

     

    CUSTOM FUCTION:

     

    XPR_ActiveFieldMatch

    ______________________________________________________________________________

     

     

    Let(

     

    [

     

    afn = GetFieldName ( Evaluate ( Get ( ActiveFieldName ))) = GetFieldName ( MatchField )

     

    ];

     

    If( afn ; MatchFieldResult ; Result )

     

    )

     

    //Resets the field entry if exercise type is changed

     

    //MatchFieldResult is usually ""

    ___________________________________________________________________________________________

    Record Level Access Privilege Calculation:

     

    Let(

     

    [

     

    c = Reconciled ≠ "Yes";

    cmf = XPR_ActiveFieldMatch ( Comment ; 1 ; 0 ) = 1;

    ckf = XPR_ActiveFieldMatch ( Reconciled ; 1 ; 0 ) = 1

     

    ];

     

    c or cmf or ckf

     

    )

     

    Sample Input

    Sample Output
    Account = Example, ActiveField = Comment

    Access = True

    Developer's Notes

     

    This example uses record level access privileges to enable access only into stipulated fields as part of the access privilege calculation. Script trigger is required to update focus and hence access privilege calculation.

     

    Great technique for when you want maintain access to a comments field on a record you otherwise want access denied.

     

     


    FileMaker Inc. provides this content on an “As Is” basis, without any warranty, and subject to the terms of the FileMaker Technical Network Agreement. FileMaker makes no representations and is not liable for any content or related information. You may use the content as part of your own solutions and for your customers, but you may not otherwise publicly distribute any content that you did not submit. ©2009-2011 FileMaker, Inc. All Rights Reserved. FileMaker is a trademark of FileMaker, Inc. registered in the U.S. and other countries.