Records
| #ID | Name | Surname | Occupation | Action |
|---|
Requirement
What needs to be done
- Show a table with #ID, Name, Surname, Occupation and a delete (trash) action.
- Above the table, show a search filter on Name and Surname, and an Add button.
- Add opens a center aligned form with Name, Surname and an Occupation dropdown, plus Save.
- The Occupation dropdown options are: Salaried, Self Employed, Business, Government Employee, Unemployed, Other.
- On Save, add the record to the database and return to the list. Clicking an ID opens the form in edit mode.
- Clicking the trash icon shows a confirmation prompt, then removes the record.
Development hint: Make Occupation a Static Entity with the six fixed records above. In the main Entity, add an OccupationId attribute that references the static entity. Bind the dropdown to the static entity, store the selected OccupationId on the record, and show the related Occupation label in the list.