PCXmlSessionWriterComponent.write Method [AX 2012]
Writes the session XML representation of a component.
Note |
|---|
|
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(
PCClass _component,
str _assignedComponentID,
XmlWriter _attributeTypeWriter,
XmlWriter _componentTreeWriter,
PCComponentInstance _componentInstance,
PCConfigurationControl _modelUIControl,
PCComponentControl _componentControl,
Set _parsedTypes,
PCXmlSessionDatabaseRelationTypes _parsedSystemTableConstraintTypes,
Map _parsedIntegerDomains,
LanguageId _sessionLanguage,
StackBase _subComponentPath,
PCRuntimeInstanceIdManager _runtimeInstanceIdManager,
[PCPriceMethod _priceMethod,
PCRuntimePriceModelInstance _runtimePriceModelInstance])
Microsoft Dynamics AX 2012 R2 (SYS)
public void write(
PCClass _component,
str _assignedComponentID,
XmlWriter _attributeTypeWriter,
XmlWriter _componentTreeWriter,
PCComponentInstance _componentInstance,
PCConfigurationControl _modelUIControl,
PCComponentControl _componentControl,
Set _parsedTypes,
PCXmlSessionDatabaseRelationTypes _parsedSystemTableConstraintTypes,
Map _parsedIntegerDomains,
LanguageId _sessionLanguage,
StackBase _subComponentPath,
PCRuntimeInstanceIdManager _runtimeInstanceIdManager)
Microsoft Dynamics AX 2012 Feature Pack (SYS)
public void write(
PCClass _component,
str _assignedComponentID,
XmlWriter _attributeTypeWriter,
XmlWriter _componentTreeWriter,
PCComponentInstance _componentInstance,
PCConfigurationControl _modelUIControl,
PCComponentControl _componentControl,
Set _parsedTypes,
PCXmlSessionDatabaseRelationTypes _parsedSystemTableConstraintTypes,
Map _parsedIntegerDomains,
LanguageId _sessionLanguage)
Microsoft Dynamics AX 2012 (FPK)
public void write(
PCClass _component,
str _assignedComponentID,
XmlWriter _attributeTypeWriter,
XmlWriter _componentTreeWriter,
PCComponentInstance _componentInstance,
PCConfigurationControl _modelUIControl,
PCComponentControl _componentControl,
Set _parsedTypes,
PCXmlSessionDatabaseRelationTypes _parsedSystemTableConstraintTypes,
Map _parsedIntegerDomains,
LanguageId _sessionLanguage)
Microsoft Dynamics AX 2012 (SYS)
public void write(
PCClass _component,
str _assignedComponentID,
XmlWriter _attributeTypeWriter,
XmlWriter _componentTreeWriter,
PCComponentInstance _componentInstance,
PCConfigurationControl _modelUIControl,
PCComponentControl _componentControl,
Set _parsedTypes,
PCXmlSessionDatabaseRelationTypes _parsedSystemTableConstraintTypes,
Map _parsedIntegerDomains,
LanguageId _sessionLanguage)
Run On
ServerParameters
- _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: XmlWriter Class
The XML writer used to store the types of attributes.
- _componentTreeWriter
- Type: XmlWriter 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.
Community Additions
ADD
Show:
Note