FormComboBoxControl.hideFirstEntry Method [AX 2012]

Sets or returns a value that indicates whether the first entry in the combo box control is hidden.

public boolean hideFirstEntry([boolean value])

Run On

Client

Parameters

value
Type: boolean
A value that indicates whether the first entry in the combo box control is hidden; optional.

Return Value

Type: boolean
true if the first entry in the combo box control is hidden; otherwise, false.

By hiding the first entry in the combo box control, you enable the control to emulate the behavior of an enum database field where the Mandatory property is set to Yes.

The following example shows how to return and set the value that indicates whether the first entry in the combo box control is hidden.

boolean bHideFirstEntry; 
 
// The ctrl variable was previously assigned 
// as a form combo box control type. 
 
// Retrieve the hideFirstEntry value. 
bHideFirstEntry = ctrl.hideFirstEntry(); 
 
// Set the hideFirstEntry value. 
bHideFirstEntry = ctrl.hideFirstEntry(true);

Community Additions

ADD
Show: