PCXmlSessionWriterComponent.writeIL Method [AX 2012]

Writes the session XML representation of a component.

public void writeIL(
    PCClass _component, 
    str _assignedComponentID, 
    PCXmlWriter _attributeTypeWriter, 
    PCXmlWriter _componentTreeWriter, 
    PCComponentInstance _componentInstance, 
    PCConfigurationControl _modelUIControl, 
    PCComponentControl _componentControl, 
    Set _parsedTypes, 
    PCXmlSessionDatabaseRelationTypes _parsedSystemTableConstraintTypes, 
    Map _parsedIntegerDomains, 
    LanguageId _sessionLanguage, 
    StackBase _subComponentPath, 
    PCRuntimeInstanceIdManager _runtimeInstanceIdManager, 
   [PCPriceMethod _priceMethod, 
    PCRuntimePriceModelInstance _runtimePriceModelInstance])

Run On

Server

Parameters

_component
Type: PCClass Table
The component record for which to generate the XML.
_assignedComponentID
Type: str
The name assigned to the component in the generated XML.
_attributeTypeWriter
Type: PCXmlWriter Class
The XML writer used to store the types of attributes.
_componentTreeWriter
Type: PCXmlWriter Class
The XML writer used to store the tree of components.
_componentInstance
Type: PCComponentInstance Table
The configuration instance to pick up existing values from.
_modelUIControl
Type: PCConfigurationControl Table
The UI definition of the product configuration model.
_componentControl
Type: PCComponentControl Table
The UI definition used to sort the attribute groups and attributes of each component.
_parsedTypes
Type: Set Class
The set containing string values with the names of the attribute types parsed.
_parsedSystemTableConstraintTypes
Type: PCXmlSessionDatabaseRelationTypes Class
A collection containing the record IDs of the system table constraint types already parsed.
_parsedIntegerDomains
Type: Map Class
A map containing integer domains that have already been encountered during the XML generation.
_sessionLanguage
Type: LanguageId Extended Data Type
The language ID of the current session.
_subComponentPath
Type: StackBase Class
The path to the current sub-component as a list of PCSubComponent records.
_runtimeInstanceIdManager
Type: PCRuntimeInstanceIdManager Class
A runtime instance ID manager.
_priceMethod
Type: PCPriceMethod Enumeration
The method used to calculate the unit price, defaults to cost; optional.
_runtimePriceModelInstance
Type: PCRuntimePriceModelInstance Class
A runtime price model instance.

A stack for keeping track of the path of a subcomponent has been added, as well as a manager class to issue runtime instance IDs.

Community Additions

ADD
Show: