Client Survey
| Id | Client Name | Client Surname | Mobile | Action |
|---|
1
2
3
...
Requirement: Form and DB Operation 1 - Add Survey
This exercise focuses on implementing the complete Create (Add) operation using an OutSystems form and linking it to a database entity. The primary goal is to ensure the form correctly handles both mandatory and non-mandatory fields, leveraging the platform's built-in validation features.
Database Entity Setup:
- User Input Fields: ClientName (Mandatory), ClientSurname (Mandatory), Mobile (Mandatory), Email (Mandatory), Address (Non Mandatory), ProfilePicture (Non Mandatory).
- System Fields (Do NOT display in UI): Id (Auto-Number), RecordCreatedBy, RecordCreatedOn, RecordUpdatedBy, RecordUpdatedOn, IsActive (Boolean).
Screen Implementation Steps:
- Create the Client Survey Screen to display the list of existing records with pagination.
- Add an "Add Survey" button in the action area.
- Create the Add Survey Screen/Modal that opens upon clicking the button. This screen must contain the input form.
- Use the OutSystems Form Widget to build the input interface for the 6 user-input fields.
- Implement the logic to Save the new record. The form must prevent saving if any of the Mandatory fields are empty.
Hint (OutSystems): Use a Form Widget bound to a new local variable of the *ClientSurvey* entity record type. This simplifies state management and enables built-in validation for the mandatory attributes.
Practice with Ankit | Client Survey