Go to documentation repository
Page History
The OPERATORPROTOCOL object corresponds to the Operator protocol system object.
The operator format for description of actions with the Operator protocol object:
Find events from the OPERATORPROTOCOL object in the table. Procedures are started when the corresponding event occurs.
Event | Event description | Event parameters |
---|---|---|
ACTIVATE_LEFT | Operator left-clicked the event cell in the Operator protocol | |
ACTIVATE_RIGHT | Operator right-clicked the event cell in the Operator protocol | |
POSTPONE_PRESSED | Operator clicked the Delay button | |
CREATE_REPORT | Operator clicked the Create button on the Create report tab | The user_id<> parameter contains the user ID. The initial_date<> and final_date<> parameters specify the initial and final dates selected in the interface |
RESPONSE_ALARM | Operator clicked the Alarm situation button | objtype<>—Object type objid<>—Object ID action<>—Name of the event in the database alarm_time<>—Time when the alarm occurred |
RESPONSE_SUSPECT | Operator clicked the Suspicious situation button | |
RESPONSE_FALSE | Operator clicked the False alarm button | |
ACTIVATE_EVENT | Focusing on the event: click the event in the interface or jump to the required event using the keyboard |
...
The list of commands and parameters for the the OPERATORPROTOCOL object is given in the table.
Command |
—command description | Parameters | Parameter description |
DEL_ |
ALARM—delete an alarm | objtype<> | Object type ( |
for example, CAM, GRELE, |
and so on) | |
objid<> | Object ID |
options<> | Possible values: |
|
|
|
HIDE_BUTTON |
—hide the buttons used to assign status to an event |
| button<> | Names of the buttons separated by comma:
|
|
|
|
Example of setting a parameter: button<alarm,suspicious,false> | |
hide<> | 1 |
—hide the buttons listed in the button parameter 0 |
—show the buttons listed in the button parameter | |
objtype<> | Object type |
objaction<> | Event type |
objid<> | Object ID |
Example 1. Delete the first alarm on Camera 3 in the Operator protocol window on Macro 2.
Code Block |
---|
OnEvent ("MACRO","2","RUN")
{
DoReact("OPERATORPROTOCOL","1","DEL_ALARM","objtype<CAM>,objid<3>,options<first>");
} |
Example 2. Hide the Alarm, Suspicious and False buttons for the Disarm event from Camera 12 in the Operator protocol window on Macro 2.
...