Share via


JournalCheckPostLedger.dialog Method [AX 2012]

Returns a class that contains the methods that are described by the RunBaseDialogable interface.

Syntax

public Object dialog()

Run On

Called

Return Value

Type: Object Class
An object of runbaseDialogable.

Remarks

A dialog box can be built by using either the dialog system or a class that is created in the Microsoft Dynamics AX Application Object Tree (AOT).

Examples

The following methods demonstrate the use of the dialog method. These examples do not compile in a job as they must be run in the context of a class, form, or other object.

//Using the standard dialog system: 
Object dialog() 
{ 
    DialogRunbase dialog = super(); 
 
    dlgTransDate = dialog.addField(extendedTypeStr(transDate));
    return dialog; 
} 
 
//Or using a form in the AOT: 
public Object dialog() 
{ 
    dialogRunbase dialog = dialog::newFormnameRunbase 
                              (formstr(tutorial_RunbaseForm),this); 
 
  
    dialog = super(dialog); 
    return dialog; 
}

See Also

JournalCheckPostLedger Class

RunBase.prompt Method

RunBaseDialogable Interface