PCXmlSessionWriterSubComponent.write Method [AX 2012]

Writes the session XML representation of a sub component.

NoteNote

The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.


  Microsoft Dynamics AX 2012 R3
          public void write(
            PCSubComponent _subComponent, 
            XmlWriter _attributeTypeWriter, 
            XmlWriter _componentTypeWriter, 
            XmlWriter _componentTreeWriter, 
            PCComponentInstance _parentInstance, 
            PCConfigurationControl _modelUIControl, 
            PCComponentControl _componentControl, 
            Set _parsedTypes, 
            PCXmlSessionDatabaseRelationTypes _parsedSystemTableConstraintTypes, 
            Map _parsedIntegerDomains, 
            Set _subComponentTypeNames, 
            LanguageId _sessionLanguage, 
            StackBase _subComponentPath, 
            PCRuntimeInstanceIdManager _runtimeInstanceIdManager, 
           [PCPriceMethod _priceMethod, 
            PCRuntimePriceModelInstance _runtimePriceModelInstance])

  Microsoft Dynamics AX 2012 R2 (SYS)
          public void write(
            PCSubComponent _subComponent, 
            XmlWriter _attributeTypeWriter, 
            XmlWriter _componentTypeWriter, 
            XmlWriter _componentTreeWriter, 
            PCComponentInstance _parentInstance, 
            PCConfigurationControl _modelUIControl, 
            PCComponentControl _componentControl, 
            Set _parsedTypes, 
            PCXmlSessionDatabaseRelationTypes _parsedSystemTableConstraintTypes, 
            Map _parsedIntegerDomains, 
            Set _subComponentTypeNames, 
            LanguageId _sessionLanguage, 
            StackBase _subComponentPath, 
            PCRuntimeInstanceIdManager _runtimeInstanceIdManager)

Run On

Server

Parameters

_subComponent
Type: PCSubComponent Table
The sub component record for which to generate the XML.
_attributeTypeWriter
Type: XmlWriter Class
The XML writer that is used to store the types of attributes.
_componentTypeWriter
Type: XmlWriter Class
The XML writer that is used to store the types of components.
_componentTreeWriter
Type: XmlWriter Class
The XML writer used to store the tree of components.
_parentInstance
Type: PCComponentInstance Table
The configuration instance of the parent component.
_modelUIControl
Type: PCConfigurationControl Table
The UI definition used to sort the attribute groups and attributes of each component.
_componentControl
Type: PCComponentControl Table
The UI definition used to sort the attribute groups and attributes of each component.
_parsedTypes
Type: Set Class
A collection that contains the record IDs of the attribute types already parsed.
_parsedSystemTableConstraintTypes
Type: PCXmlSessionDatabaseRelationTypes Class
A collection that contains the record IDs of the system table constraint types already parsed.
_parsedIntegerDomains
Type: Map Class
A map that contains integer domains that have already been encountered during the XML generation.
_subComponentTypeNames
Type: Set Class
The set that contains string values with the names of the component types parsed.
_sessionLanguage
Type: LanguageId Extended Data Type
The language ID of the current session.
_subComponentPath
Type: StackBase Class
The path of 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.
_runtimePriceModelInstance
Type: PCRuntimePriceModelInstance Class
A runtime price model instance.

Obsolete: Use the IL equivalent method.

Community Additions

ADD
Show: