AX – D365FO – Setting Default Values on a New Record in a Grid

Setting default values on a new record in a Grid is a simple task. To do this, you need to override the initValue() method on the Form's Data Source. Let say I have a Table named tblDefault which contains two fields TheDate, which is a UtcDateTime type, and Who, which is a String type. In my example, I want the TheDate field to default to … Continua a leggere AX – D365FO – Setting Default Values on a New Record in a Grid

AX – D365FO – Change Background or text color of a Form grid row

You can use FormDataSource.displayOption method This method is executed one time for each record before the record is displayed in a form. The displayOption method can be overridden on a form data source. Right-click the Methods node under the data source, point to Override Method, and then click displayOption. This is an example public void displayOption(Common _record, FormRowDisplayOption _options) … Continua a leggere AX – D365FO – Change Background or text color of a Form grid row