Using the Process Analyst > Process Analyst for Developers > Automation Model > UpdateCommand [Event]

UpdateCommand [Event]

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

Defined As

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:

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