Thursday, August 11, 2016

Set and Validate Field in AX

//Set and Validate Field in AX

protected void setAndValidateField(Common _buffer, str _value, fieldId _fieldId)
{
    _buffer.(_fieldId) = this.convertToFieldType(_buffer, _value, _fieldId);
    if (!_buffer.validateField(_fieldId))
    {
        this.exceptionOccured();
    }
}

No comments:

Post a Comment

Override custom dimension value on posting sales invoice in X++

 Requirement: 1. Override custom dimension value on posting sales invoice 2.  Ledger posting type as "Cost of goods, invoiced" ...