RunBase.checkCloseDialog Method [AX 2012]

Must be called in the CloseOk method of a RunBase dialog box.

public boolean checkCloseDialog([Object calledFrom])

Run On

Called

Parameters

calledFrom
Type: Object Class
The object or form that calls the method; optional.

The calledFrom parameter is passed to the validate method of the class if the validate method has an object as the first parameter in its profile.

The following code example is from the CloseOk method of a dialog form.

void CloseOk() 
{ 
    if (RunBase.CheckCloseDialog()) 
        super(); 
}

Community Additions

ADD
Show: