JmgPayStatAdjustBalance.dialog Method [AX 2012]

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

protected Object dialog([DialogRunbase dialog, boolean forceOnClient])

Run On

Called

Parameters

dialog
Type: DialogRunbase Class
An already initialized instance of the DialogRunBase class; optional.
forceOnClient
Type: boolean
A Boolean value that specifies whether the dialog must be created on the client; optional.

Return Value

Type: Object Class
A class that contains the methods that are described by the RunBaseDialogable interface.

A dialog can be either built by using the Dialog class or by using a class that is created in the Application Object Tree (AOT).

The following example demonstrates the use of this method.

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

Community Additions

ADD
Show: