InventCostHelp.validate Method [AX 2012]

Validates the state of the internal variables.

Syntax

public boolean validate([Object _calledFrom])

Run On

Called

Parameters

Return Value

Type: boolean
true.

Remarks

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.

Examples

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

See Also

InventCostHelp Class

RunBase.run Method

Global::checkFailed Method