Username Post: Global Variable
faaslave 
journeyman
Posts: 244
faaslave
Age: 47
Loc: Los Angeles
Registered on 09-17-04
Post Rank (AVG):
            
10-20-06 07:39 PM - Post#226263     - Post Rank:             
    In response to Ender

Alright, I think I still need some help.

I have priviledge sets assigned now. They look like this:

AOM
BOM
COM
DOM
EOM
FOM
AFLM
BFLM
CFLM
DFLM
EFLM
FFLM

When an Operational manager logs in that belongs to Area B, their priviledge set is BOM

When a Front Line Manager logs in that belongs to Area C, their priviledge set is CFLM

So the purpose of the login script is to take the user to the OM layout or FLM layout when they log in, and set the pk_area_id to the correct letter, then find only records for their area.

An FLM from Area F, logs in with priviledge set FFLM, then is taken to the FLM layout, sets the area id to F, performs a find and shows all of the area F FLM records.

As far as I can figure out, the priviledge set returns something like this [FFLM]

So I set the global variable $$master to get (priviledgesetname)

So to tell FM which layout to go to I need to do something like, use the left function to grab the 3rd character from the left, "F" and take me to the FLM layout. Then use the left function again to grab the second character "F", set the pk_area_id to "F" and perform a find to show all of F's records.

I just can't figure out how to write the script correctly.

Any help would be appreciated.

Thanks Dave
Doubt is not a pleasant condition, but certainty is absurd.

faaslave@mac.com

NOTE: You are viewing an individual Post. View the Entire Topic
FM Forums Advertisers


FusionBB™ Version 3.0 FINAL | ©2003-2010 InteractivePHP, Inc.
Execution time: 0.236 seconds.   Total Queries: 18   Zlib Compression is on.
All times are . Current time is 01:47 PM
Content ©1996-2008 Ocean West Consulting, Inc. All Rights Reserved
Ocean West Consulting, Inc. can not and will not be held responsible for any of the contents in this site.
FM Forums™ is a trademark of Ocean West Consulting, Inc an independent entity, not affiliated with FileMaker Inc.
FileMaker® is a registered trademark of FileMaker Inc.
Top