AxdBaseProperty Class [AX 2012]
The AxdBaseProperty class stores field properties or method properties. An object of this class is typically stored together with the field or method in a Microsoft Dynamics AXMap.
| Method | Description | |
|---|---|---|
| cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) |
| 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.) |
| 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.) |
| pack | Serializes the current instance of the AxdBaseProperty class. |
| parmArraySize | Gets or sets the ArraySize parameter. |
| parmBaseType | Gets or sets the BaseType parameter. |
| parmChildPropertyList | Gets or sets the ChildPropertyList parameter. |
| parmEnumId | Gets or sets the EnumId parameter. |
| parmExtendedTypeId | Gets or sets the ExtendedTypeId parameter. |
| parmImplementingClassId | Gets or sets the ImplementingClassId parameter. |
| parmImplementingFieldId | Gets or sets the ImplementingFieldId parameter. |
| parmImplementingFieldName | Gets or sets the ImplementingFieldName parameter. |
| parmImplementingTableId | Gets or sets the ImplementingTableId parameter. |
| parmImplementingTableName | Gets or sets the ImplementingTableName parameter. |
| parmIsMandatory | Gets or sets the IsMandatory parameter. |
| parmIsTypeTime | Gets or sets the IsTypeTime parameter. |
| parmNoOfDecimals | Gets or sets the NoOfDecimals parameter. |
| parmPropertyName | Gets or sets the PropertyName parameter. |
| setTimeOut | Sets up the scheduled execution of a specified method. (Inherited from Object.) |
| toString | Returns a string that represents the current object. (Inherited from Object.) |
| unpack | Deserializes the packedClass parameter value to an instance of the AxdBaseProperty class. |
| usageCount | Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.) |
| validateImplementingField | |
| validateImplementingTable | |
| wait | Pauses a process. (Inherited from Object.) |
| xml | Returns an XML string that represents the current object. (Inherited from Object.) |
| ::buildAxdBaseProperty | Creates an AxdBaseProperty object. |
| ::buildSurrogateForeignKeyPropertyList | |
| ::construct | Initializes a new instance of the AxdBaseProperty class. |
| ::create |
static void exampleMethod(Args _args)
{
// Example of caching AxdBaseProperty in a Map.
AxdBaseProperty axdBaseProperty;
SysDictTable sysDictTable = new SysDictTable(tableNum(CustTable));
SysDictField sysDictField;
SysDictType sysDictType;
Map map = new Map(Types::Integer, Types::Class);
int i;
// Find all fields on the table.
for (i = sysDictTable.fieldCnt(); i > 0; i--)
{
sysDictField = new SysDictField(
tableNum(CustTable),
sysDictTable.fieldCnt2Id(i));
// Create the AxdBaseProperty
sysDictType = new SysDictType(sysDictField.typeId());
axdBaseProperty = AxdBaseProperty::construct();
axdBaseProperty.parmArraySize(sysDictField.arraySize());
axdBaseProperty.parmPropertyName(sysDictField.name());
axdBaseProperty.parmBaseType(sysDictField.baseType());
axdBaseProperty.parmNoOfDecimals(sysDictType.noOfDecimals());
axdBaseProperty.parmExtendedTypeId(sysDictType.id());
// Cache the AxdBaseProperty.
map.insert(
sysDictField.id(),
axdBaseProperty);
}
// Lookup the AxdBaseProperty if it is cached.
if (sysDictField && map.exists(sysDictField.id()))
{
axdBaseProperty = map.lookup(sysDictField.id());
// Do something with the AxdBaseProperty.
}
}
Community Additions
ADD
Show: