faaslave
journeyman
Posts: 244

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
|