DefaultValue ComboBox in Dynamics AX with X++

Beside modify metadata on form properties, as best practice we can use code like below to assign default value for combobox.

  • You can use this code in the form’s init method after super():
  • If this is a table field we should you best practice overriding the initValue method in the table:
this.ComboBoxName = ComboBoxName::DefaultValue;
  • Override initValue in the form’s datasource only if it should be a specific behaviour in this form only.

Max Nguyen

Max Nguyen
D365/AX, Azure Solution Architech - currently living and working in Seoul :)

Exception Handling in Dynamics 365 For Finance and Operation

When we write a code, or make a customization to Dynamics 365 For Operation which is using X++ should make use of Exception Handling to p...… Continue reading

Basic C# OOP Concept

Published on April 10, 2017