FormComboBoxControl.hasChanged Method [AX 2012]

Sets or returns a value that indicates whether the contents of the form combo box control have changed.

public boolean hasChanged([boolean val])

Run On

Client

Parameters

val
Type: boolean
A value to assign as the hasChanged value for the combo box control; optional.

Return Value

Type: boolean
true if the contents of the combo box control have changed; otherwise, false.

The following example shows how to return and set the value that indicates whether the contents of the combo box control have changed.

boolean bHasChanged; 
 
// The ctrl variable was previously assigned 
// as a FormComboBoxControl variable. 
 
// Retrieve the hasChanged value. 
bHasChanged = ctrl.hasChanged(); 
 
// Modify the hasChanged value. 
ctrl.hasChanged(true);

Community Additions

ADD
Show: