![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
When setting up priviliege sets for a table using FM8.5 is there a GET function that returns which group an AccountName belongs to? What I'm trying to accomplish is a script step that will find all record where the ManagerCode=AccountName for managers or UserCode=AccountName for end users. If Get(GroupName) = "manager" perform find where mngrcode = Get(AccountName) Else perform find where usercode = Get(AccountName) Endif Maybe there is a simpler way to accomplish this. Also, when I restrict access at the record level using (mngrcode = Get(AccountName) and log in using that restricted account I can scroll through all the records but on the ones that don't belong to this manager I see <<NoAccess>> for all fields. I would rather not be able to see those records at all. What am I missing? Thanks in advance, Steve |
#3
| |||
| |||
|
|
hello.... is anybody out there?? "GSP@DCS" <info (AT) dcs (DOT) com> wrote in message news:a6235$45392eac$d1a8fa82$8242 (AT) EDELTACOM (DOT) COM... When setting up priviliege sets for a table using FM8.5 is there a GET function that returns which group an AccountName belongs to? What I'm trying to accomplish is a script step that will find all record where the ManagerCode=AccountName for managers or UserCode=AccountName for end users. If Get(GroupName) = "manager" perform find where mngrcode = Get(AccountName) Else perform find where usercode = Get(AccountName) Endif Maybe there is a simpler way to accomplish this. Also, when I restrict access at the record level using (mngrcode = Get(AccountName) and log in using that restricted account I can scroll through all the records but on the ones that don't belong to this manager I see <<NoAccess>> for all fields. I would rather not be able to see those records at all. What am I missing? Thanks in advance, Steve |
#4
| |||
| |||
|
|
Get(PrivilegeSetName) Returns the priv set name of the currently logged-in user. To hide the "<<No Access>>" label you would need to omit from the found set the records the user cannot access. They are not automatically suppressed, for a variety of reasons. "GSP@DCS" <info (AT) dcs (DOT) com> wrote in message news:f3048$453fd8a7$d1a8fa82$21259 (AT) EDELTACOM (DOT) COM... hello.... is anybody out there?? "GSP@DCS" <info (AT) dcs (DOT) com> wrote in message news:a6235$45392eac$d1a8fa82$8242 (AT) EDELTACOM (DOT) COM... When setting up priviliege sets for a table using FM8.5 is there a GET function that returns which group an AccountName belongs to? What I'm trying to accomplish is a script step that will find all record where the ManagerCode=AccountName for managers or UserCode=AccountName for end users. If Get(GroupName) = "manager" perform find where mngrcode = Get(AccountName) Else perform find where usercode = Get(AccountName) Endif Maybe there is a simpler way to accomplish this. Also, when I restrict access at the record level using (mngrcode = Get(AccountName) and log in using that restricted account I can scroll through all the records but on the ones that don't belong to this manager I see <<NoAccess>> for all fields. I would rather not be able to see those records at all. What am I missing? Thanks in advance, Steve |
#5
| |||
| |||
|
|
Why thank you Bill, It always seems so obvious AFTER someone shows the way. Not sure why I didn't see a reference to the Get(PrivilegeSetName) function. One more thing. In order to correct my example previously given I would... If Get(PrivilegeSetName) = "manager" perform find where mngrcode = Get(AccountName) Else perform find where usercode = Get(AccountName) Endif ...then... Omit Multiple (need to omit found count but cannot pass number here can I?) ShowOmitted an "Omit Multiple WHERE ..." would be nice mabe a better way would be... perform find where mngrcode <> Get(AccountName) omit ...yes?? |
![]() |
| Thread Tools | |
| Display Modes | |
| |