LedgerAcctsFinancialStmtImport.convertToFieldType Method [AX 2012]
Converts a String value into the data type that is used by the specified value of the _buffer and _fieldId parameters.
Syntax
protected anytype convertToFieldType(
Common _buffer,
str _value,
FieldId _fieldId)
Run On
Called
Parameters
- _buffer
Type: Common Table
The Common to which the _fieldId applies.
- _value
Type: str
The String value to be converted.
- _fieldId
Type: FieldId Extended Data Type
The field that should be used to derive the target data type.
Return Value
Type: anytype
The value of the _value parameter converted to the appropriate data type.
Exceptions
Exception | Condition |
---|---|
Error | The target data type is not supported by this method. |
Remarks
When converting from a string to an enumeration data type, the user interface language of the active session is used.