How To Set a Default Value

1. Globally

You can specify a simple default value that will work everywhere.

  1. Create a Data Constant with a value you need.
  2. Assign the data constant in the entity field as a DefaultValue attribute.

2. Different For Each Menu Item

You can specify a different default value for each menu item. This comes in handy if you share the same form with different menu items.

  1. Create a Data Constant with a value you need.
  2. Create a DefaultSet in the DataStructure for your menu item.
  3. Under it create a Default where you assign which field should be assigned which data constant.
  4. Assign the DefaultSet in the Screen Menu Item.

3. Dynamic

Sometimes you need to provide a dynamic default value, e.g. when you open a new screen using an action button, you want to pass the current row’s value to be a default value in the newly opened screen.

  1. Create a DefaultSet in the DataStructure for your menu item.
  2. Create a Parameter in the DataStructure
  3. Under it create a Default where you assign the parameter instead of a data constant
  4. Pass a value into the parameter e.g. from the Menu Item’s selection dialog or the action button’s parameter mappings.