Posted by [IP Address: 193.128.25.11] 'Rick Fraser' on April 27, 2001 at 10:30:16 EST:
In Reply to: PeopleCode function "IsOperatorInClass" posted by [IP Address: 193.128.25.11] 'Rick Fraser' on April 27, 2001 at 06:33:54 EST:
: Has anyone used this and got it to work ? If so, How ?
: I have tried to use it as documented in the 'Tools manual, with variations but I just can't get it to work. Has anyone got some working example(s) ?
: I believe it is supposed to work out whether the current logged on Operator is a member of the OperatorClass given in the parameter. I assume it uses this parameter and %OperatorId to lookup PSOPRCLS for an entry.
: For reasons I won't go into here, my application is reading a table to populate a panel. The table has OPRCLASS as a field. In the RowSelect event I have some code which says :-
: If IsOperatorInClass(OPRCLASS) Then
: /* Display this row */
: Else
: DiscardRow();
: End-If
: and many variations in the parameter format (variables etc). I even tried hard-coding the parameter as "CLASS1" of which I am a member, but to no avail - still no display.
: If I change the table and put my Operator Id in the OPRCLASS field, and then change the 'IF' statement to say "If OPRCLASS = %OperatorId...." then it displays the row ok.
: So, anyone know the answer to how IsOperatorInClass works?
It's ok - working now. Obvious once you know.
PeopleSoft Customer Connection put me right. Answer is that you have to run this on the client (3 tier doesn't know who the operator is on the server). So, change Panel Group to be run on the Client and it all works fine.