Tuesday, August 13, 2019

Skip Validation for the data-entity mapped field

By using the following API, you can skip validation for a particular field, regardless of the consumer.

public void persistEntity(DataEntityRuntimeContext _entityCtx)
{
    this.skipDataSourceValidateField(fieldNum(_dataEntityName, _ dataEntityfield), true);
    super(_entityCtx);
}

_dataEntityfield - field ID of the data-entity mapped field, not the back-end table field.
_dataEntityName – name of data entity.

How to loop selected records on grid for form in dynamics ax?

To loop/iterate selected records from grid on form you can use following code, this can be done on clicked method of button control : Invent...