1. Globally
You can specify a simple default value that will work everywhere.
- Create a Data Constant with a value you need.
- 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.
- Create a Data Constant with a value you need.
- Create a DefaultSet in the DataStructure for your menu item.
- Under it create a Default where you assign which field should be assigned which data constant.
- 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.
- Create a DefaultSet in the DataStructure for your menu item.
- Create a Parameter in the DataStructure
- Under it create a Default where you assign the parameter instead of a data constant
- Pass a value into the parameter e.g. from the Menu Item’s selection dialog or the action button’s parameter mappings.