Enabled property

Official Content
This documentation is valid for:
Determines whether the control is enabled or not.

Syntax

control. enabled = value

Type returned: Boolean

Where

Control

Is the name of a control inserted in the form, or the form itself in case of Win interfaces.

Values

False
True

Description

When disabled, it prevents the user from interacting with the control. This property only applies to the User interface.

It applies to the following Controls: Bitmaps, Buttons, Check Boxes, Combo Boxes, Dynamic Combo Boxes, Dynamic List Boxes, Edits, Forms, List Boxes, Radio Buttons, Texts Blocks.

Samples

Transaction rules

EvtBtn.Enabled = True If Update; // The button is disabled if in update mode (EvtBtn is button control).
Att2.Enabled = False If Not Null(Att1); // Attribute Att2 cannot be edited if attribute Att1 is not null. 

WebPanel events

Event 'SampleEvent'
  If (&Variable.isEmpty())
    ControlName.Enabled = false
  else
    ControlName.Enabled = true
  EndIf
EndEvent

Scope

Objects: Transaction, Web Panel
Platforms: Web(.Net, Java)

See Also

NoAccept rule

Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.