Writing and testing screen-related code
As mentioned previously, the code can be written targeting Entity, Query, Screen, and so on. Here, we will look at a couple of examples of code targeting the screens.
Entering default values using code with screens
Just as in the previous section, the code can be written targeting the screen to provide default values when no values are provided during data entry. We will use the same project as in the previous section:
- Bring up the Screen designer by double clicking on the EditableSupplierGrid screen in the Screen node of the Solution Explorer.
- Highlight Rows Layout | Editable Suppliers Grid and click on Write Code to reveal the drop-down menu, as shown in the next screenshot:
- Click on the EditableSuppliersGrid_Saving ...