PeopleCode function "IsOperatorInClass"


[ Follow Ups ] [ Post Followup ] [ Message Board ]

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?


Follow Ups:



Post a Followup


Name:
E-Mail:
Subject:

Message:


[ Follow Ups ] [ Post Followup ] [ Message Board ]