DdsField.VisibleCondition Property

Gets or sets the RPG indicator expression that, when evaluated, determines if the field should be visible.

Syntax

BegProp VisibleCondition Access(*Public) Type(*String)
   BegGet;  BegSet

Property Values

String containing the RPG indicator expression that, when evaluated, determines if the field should be visible.

Remarks

To set this property, click on the right hand side of the property window and enter the conditional indicators that will determine the visibility of the control. See Conditional Properties Overview and Monarch Web Control Indicator Expression Tester for more information on setting the conditional indicators and testing your expressions.

Special case insensitive string values may be used to set the condition to either TRUE or FALSE. "*True" means to make the control visible unconditionally. "*False" means to make the control invisible unconditionally.

Note: If the Visible property is FALSE, the control will be invisible regardless of the result of the VisibleCondition expression. If the result VisibleCondition expression is FALSE, the control will be invisible regardless of the state of the Visible property. If the VisibleCondition property value is empty (no expression given), then the control's visible state relies upon the Visible property only.

Example

ControlName.VisibleCondition = "(46 & !47)"
ControlName.VisibleCondition = "!(13 | !15)"
ControlName.VisibleCondition = "*true"
ControlName.VisibleCondition = *false"

Requirements

Namespace: ASNA.Monarch.WebDspF

Assembly: ASNA.Monarch.WebDspF.DLL

Platforms: Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, Windows 7, Windows 8 Pro, Windows 10 Pro