Re: PeopleCode function "IsOperatorInClass"


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

Posted by [IP Address: 203.199.198.68] 'Harish' on June 05, 2001 at 07:54:32 EST:

In Reply to: PeopleCode function "IsOperatorInClass" posted by [IP Address: 203.199.198.68] '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?


Hi,

These are the steps you have to follow for Isoperatorinclass to work

Create a class called TEST through Security Administrator
Create an operator and attach the TEST class to the operator
Write the peoplecode in Row Init preferably

If not(IsOperatorInClass("Test")) THEN
WINMESSAGE("YOU ARE NOT AUTHORISED");
END-IF;
What it does
If the operator who has logged is not attached to "Test" class then the message is flashed.




Follow Ups:



Post a Followup


Name:
E-Mail:
Subject:

Message:


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