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

Convert Call stack to readable format in D365FO X++

//Input --container _xppCallStack = xSession::xppCallStack();  Public static str POL_formatXppCallStack(container _xppCallStack, int _skipFr...