InventCostHelp.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.

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

The method should generally return errors by using the Global::CheckFailed method. Do not use the throw statement in this method.

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

Community Additions

ADD
Show: