Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

UpdateCommand [Event]

  • Last UpdatedJul 18, 2023
  • 1 minute read

This event is raised whenever the Process Analyst needs to refresh the state of its toolbars.

Defined As

  • [VBA] UpdateCommand(commandId As String)

  • [Cicode] UpdateCommand(OBJECT processAnalyst, STRING commandId)

  • [C++] UpdateCommand(BSTR commandId)

Parameters

commandId

[in] Contains the unique identifier of the command that needs to be refreshed.

processAnalyst

[in] Indicates the Process Analyst object which raised the event. (Cicode only)

Remarks

This event is only raised for custom commands. use this event as an opportunity to update the enable and/or the pressed state of the toolbar button associated with the command.

This event will be raised frequently so limit the amount of code executed in response to this event.

An Update will be triggered in at least the following scenarios:

  • Selection changes

  • Command execution

Calling Syntax

Assumes you have a Process Analyst on a page with an event class defined as myPage_AN35.

[VBA]

Sub myPage_AN35_UpdateCommand(commandId As Integer)
End Sub

[Cicode]

FUNCTION myPage_AN35_UpdateCommand(OBJECT processAnalyst, INT commandId)
END

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in