AxMapPolicy Class [AX 2012]
Used for holding the map policy which is defining how value mapping should be handled in an Ax<table>-class.
Syntax
class AxMapPolicy
Run On
Called
Methods
Method | Description | |
---|---|---|
barCodeSetupId | Returns the BarCodeSetupId field from the embedded AifEndpointActionValueMap record. | |
cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) | |
countryRegionExtCodeId | Returns the CountryRegionExtCodeId field from the embedded AifEndpointActionValueMap record. | |
countyExtCodeId | Returns the CountyExtCodeId field from the embedded AifEndpointActionValueMap record. | |
currencyExtCodeId | Returns the CurrencyExtCodeId field from the embedded AifEndpointActionValueMap record. | |
custAccountExtCodeId | Returns the CustAccountExtCodeId field from the embedded AifEndpointActionValueMap record. | |
defaulting | Returns the Defaulting field from the embedded AifEndpointActionValueMap record. | |
dlvModeExtCodeId | Returns the DlvModeExtCodeId field from the embedded AifEndpointActionValueMap record. | |
dlvTermExtCodeId | Returns the DlvTermExtCodeId field from the embedded AifEndpointActionValueMap record. | |
equal | Determines whether the specified object is equal to the current one. (Inherited from Object.) | |
getTimeOutTimerHandle | Returns the timer handle for the object. (Inherited from Object.) | |
handle | Retrieves the handle of the class of the object. (Inherited from Object.) | |
itemExtCodeId | Returns the ItemExtCodeId field from the embedded AifEndpointActionValueMap record. | |
markupExtCodeId | Returns the MarkupExtCodeId field from the embedded AifEndpointActionValueMap record. | |
new | Initializes a new instance of the Object class. (Inherited from Object.) | |
notify | Releases the hold on an object that has called the wait method on this object. (Inherited from Object.) | |
notifyAll | Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.) | |
objectOnServer | Determines whether the object is on a server. (Inherited from Object.) | |
owner | Returns the instance that owns the object. (Inherited from Object.) | |
recordExist | Indicates whether this class was constructed by using the newAifEndpointActionValueMap static method. | |
setAifEndpointActionValueMap | Sets the AifEndpointActionValueMap table record from which the class should return values. | |
setTimeOut | Sets up the scheduled execution of a specified method. (Inherited from Object.) | |
stateExtCodeId | Retrieves the StateExtCodeId field from the embedded AifEndpointActionValueMap record. | |
taxExtCodeId | Retrieves the TaxExtCodeId field from the embedded AifEndpointActionValueMap record. | |
toString | Returns a string that represents the current object. (Inherited from Object.) | |
unitExtCodeId | Retrieves the UnitExtCodeId field from the embedded AifEndpointActionValueMap record. | |
usageCount | Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.) | |
validateInput | Returns the ValidateInput field from the embedded AifEndpointActionValueMap record. | |
vendAccountExtCodeId | Returns the VendAccountExtCodeId field from the embedded AifEndpointActionValueMap record. | |
wait | Pauses a process. (Inherited from Object.) | |
xml | Returns an XML string that represents the current object. (Inherited from Object.) | |
xMLMapCountryRegion | Returns the XMLMapCountryRegion field from the embedded AifEndpointActionValueMap record. | |
xMLMapCounty | Returns the XMLMapCounty field from the embedded AifEndpointActionValueMap record. | |
xMLMapCurrencyCode | Returns the XMLMapCurrencyCode field from the embedded AifEndpointActionValueMap record. | |
xMLMapCustAccount | Returns the XMLMapCustAccount field from the embedded AifEndpointActionValueMap record. | |
xMLMapDlvMode | Returns the XMLMapDlvMode field from the embedded AifEndpointActionValueMap record. | |
xMLMapDlvTerm | Returns the XMLMapDlvTerm field from the embedded AifEndpointActionValueMap record. | |
xMLMapItemId | Returns the XMLMapItemId field from the embedded AifEndpointActionValueMap record. | |
xMLMapMarkup | Returns the XMLMapMarkup field from the embedded AifEndpointActionValueMap record. | |
xMLMapState | Returns the XMLMapState field from the embedded AifEndpointActionValueMap record. | |
xMLMapTaxCode | Returns the XMLMapTaxCode field from the embedded AifEndpointActionValueMap record. | |
xmlMapUnitOfMeasureSymbol | Retrieves the value of the XMLMapUnitOfMeasureSymbol field from the embedded AifEndpointActionValueMap record. | |
xMLMapVendAccount | Returns the XMLMapVendAccount field from the embedded AifEndpointActionValueMap record. | |
xMLMapZipCode | Returns the XMLMapZipCode field from the embedded AifEndpointActionValueMap record. | |
zipCodeExtCodeId | Returns the ZipCodeExtCodeId field from the embedded AifEndpointActionValueMap record. | |
::construct | Initializes a new instance of the AxMapPolicy class. | |
::newAifEndpointActionValueMap |
Top
Remarks
The AxMapPolicy class is made because the internal Ax<table> classes should not have a reference to a specific AifEndpointActionValueMap record so this class is created for passing on an AifEndpointActionValueMap record to the Ax<table> classes so that they can perform value mapping based on the policy defined in this class.
The map policy is a record from the AifEndpointActionValueMap table. This class has a method for each field in the AifEndpointActionValueMap table for fields that are being used in the Ax<table> classes.
Examples
The following example shows how to construct this class by using an AifEndpointActionValueMap record and how to use it.
AifEndpointActionValueMap aifEndpointActionValueMap;
AxMapPolicy axMapPolicy;
// Finding a record holding policies for value mapping of different fields.
select firstonly aifEndpointActionValueMap;
// Constructing class containing the policies for value mapping
axMapPolicy = AxMapPolicy::newAifEndpointActionValueMap(aifEndpointActionValueMap);
info(strfmt("Value mapping for customer account is using external code '%1'",axMapPolicy.custAccountExtCodeId()));
Inheritance Hierarchy
Object Class
AxMapPolicy Class