ProdMultiStatusDecrease.validate Method [AX 2012]

Validates the state of the internal variables.

public boolean validate([Object _calledFrom])

Run On

Called

Parameters

_calledFrom
Type: Object Class

Return Value

Type: boolean
true, or adds warning messages to the Infolog, depending on the state of the internal variables.

This method must validate the state of the internal variables. It is called before closing the dialog box, and should be called in the run method. It must only contain code that adds warnings to the Infolog.

A value of throw is not permitted in this method.

The method should generally return errors by using the global CheckFailed method.

public boolean validate(Object calledFrom = null) 
{ 
    anytype myVariable; 
 
    if (myVariable == 0) 
    { 
         return checkFailed("Warning message..."); 
    } 
    return true; 
}

Community Additions

ADD
Show: