IsEnabled (NotesAgent - JavaScript™)
Read-Write. Indicates whether an agent is able to run.
Defined in
NotesAgentSyntax
isEnabled() : boolean
setEnabled(value:boolean) : void
Legal value | Description |
---|---|
true |
if the agent can be run |
false |
if the agent is disabled |
Usage
This property is intended for use with scheduled agents, which can be enabled and disabled. This property always returns true for hidden agents and agents that are run from a menu.You must call Save to make any change effective.
If the agent is open in the UI, a change is not immediately reflected. The agent must be closed and reopened.
Access privileges and agent signing depend on whether user or designer activation is in effect. See IsActivatable.