PCModelingLibrary::loadForm Method [AX 2012]

Loads a form from an existing object in the AOT.

client server public static FormRun loadForm(
    str _formName, 
   [Common _record, 
    Object _caller, 
    boolean _doRun, 
    boolean _modal, 
    Args _initalArgs])

Run On

Called

Parameters

_formName
Type: str
The AOT name of the form.
_record
Type: Common Table
The record to pass to the form as an argument.
_caller
Type: Object Class
The form that will call the new form.
_doRun
Type: boolean
A Boolean value that indicates whether the form should be started immediately.
_modal
Type: boolean
A Boolean value that indicates whether the if the form should be made modal.
_initalArgs
Type: Args Class

Return Value

Type: FormRun Class
The FormRun object of the generated form.
Show: