PCRuntimeLibrary::runProductModel Method [AX 2012]

Loads the configuration form to configure the product configuration model.

client public static FormRun runProductModel(
    PCProductConfigurationModel _model, 
    str _modelXML, 
   [PCProductConfiguration _configuration, 
    PCRuntimeMode _runtimeMode, 
    Object _caller, 
    boolean _doRun, 
    boolean _modal])

Run On

Client

Parameters

_model
Type: PCProductConfigurationModel Table
The product model to execute.
_modelXML
Type: str
_configuration
Type: PCProductConfiguration Table
The configuration to load in the product model configuration; optional.
_runtimeMode
Type: PCRuntimeMode Enumeration
The runtime mode of the runtime configuration; optional.
_caller
Type: Object Class
The form that is calling the configuration.
_doRun
Type: boolean
A Boolean value that indicates whether to start the form now.
_modal
Type: boolean
A Boolean value that indicates whether to start the form as modal.

Return Value

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

ExceptionCondition
Error

The specified model is not valid.

Show: