OnCommand

<< Click to Display Table of Contents >>

 

OnCommand

OnCommand(CommandUnit, CommandAction, ActorID)

This event is triggered whenever any Command is executed (if the EnablePowerConfigEvent property is configured to True). This event's parameters are described on the next table.

Available parameters on the OnCommand event

Parameter

Description

CommandUnit

Command Unit object receiving this command. It corresponds to the CommandUnit property of the Command Information object

CommandAction

An integer that indicates the type of Command sent. Possible values for this parameter are 1: Operate, 2: Select, or 3: Cancel. It corresponds to the CommandAction property of the Command Information object

ActorID

Name of the user sending this Command. It can be Elipse Power Viewer's user logon, "Anonymous" if there is no logged in user, or "System" if this method's call started at the server. It corresponds to the ActorID property of the Command Information object

 

If this Command was configured for retries, this event is only executed on the first try, and ignored on subsequent retries.

Was this page useful?