Assigning Exclusive Control to Another User
If your user account has the Manage Exclusive Control permission, you can assign exclusive control of a database item to another user. To do this, you need to call the Assign Exclusive Control method directly via:
- Logic program
or:
- Method Pick Action (a Mimic item that is configured to have a pick action that references the Assign Exclusive Control method).
In both cases, the Assign Exclusive Control method has to be referenced. The name of the user who will be assigned exclusive control has to be defined as the parameter for the Assign Exclusive Control method.
Using Logic:
If you are using a Logic program, the Assign Exclusive Control method needs to be called in the same way as you would call any other method. It also requires that you define the name of the user account that is to be assigned exclusive control.
Example:
If you were using an ST program to assign exclusive control of a point named ‘A1Point’ to a user account named ‘PWithe’, your ST Program would need to include:
METHOD
AssignExCtrlPoint AT %M(PSTNOS.PSTN.A1Point.AssignExclusiveControl):STRING;
END_METHOD
AssignExCtrlPoint( 'PWithe' );
Where:
- AssignExCtrlPoint is the name defined for the variable
- PSTNOS.PSTN.A1Point.RemoveExclusiveControl is a reference to the Remove Exclusive Control method for the A1Point (the point is stored in a Group named ‘PSTN’ which is stored within a parent Group named ‘PSTNOS’).
- ‘PWithe’ is the name of the user account that is to be assigned exclusive control of the point.
Using a Method Pick Action:
If you are using a method pick action on a Mimic, you can use the Pick Action Wizard to associate a Mimic object with the Assign Exclusive Control method of a database item.
On the next page of the Pick Action Wizard, the user that is to be assigned the exclusive control has to be defined as a parameter for the Method Pick Action.
When the relevant Mimic item is selected, the Assign Exclusive Control action is performed. The item you selected on the Pick Action Wizard will be assigned to the user defined in the parameter. That user will have exclusive control of the item until the exclusive control is released, taken by another user (with sufficient permissions), or the user logs off.
Further Information
Method Pick Actions: see Creating a Method Pick Action in the Geo SCADA Expert Guide to Mimics.
Calling a Method in Logic: see Executing Methods on Database Items in the Geo SCADA Expert Guide to Logic.