LedgerAcctsFinancialStmtImport.setAndValidateField Method [AX 2012]
Converts, validates, and stores a String in the field that is specified by the value of the _buffer and _fieldId parameters.
Syntax
protected void setAndValidateField(
Common _buffer,
str _value,
FieldId _fieldId)
Run On
Called
Parameters
- _buffer
Type: Common Table
The Common buffer in which the converted value should be stored.
- _value
Type: str
The String value to be converted.
- _fieldId
Type: FieldId Extended Data Type
The field in which the converted value should be stored.
Exceptions
Exception | Condition |
---|---|
Error | The validateField method returned false for the modified field. |
Remarks
This method uses the LedgerAcctsFinancialStmtImport.convertToFieldType method to perform the actual conversion from String.