JmgLoadArchivedTermReg.dialog Method [AX 2012]

This method returns a class that contains the methods described by the RunBaseDialogable interface.

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

Run On

Called

Parameters

dialog
Type: DialogRunbase Class
An already initialized dialog can be passed.
forceOnClient
Type: boolean
A Boolean value that specifies if the dialog must be instantiated on the client.

Return Value

Type: Object Class
An object that contains the methods described by the RunBaseDialogable interface.

The JmgLoadArchivedTermReg class adds a FileName field to the dialog.

// 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: