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

Copy Markup charges while posting purchase invoice using X++

 Copy Markup charges while posting purchase invoice using X++ Class: Important: Code logic is just for Reference.  New class => Duplicate...