Logo Practice with Ankit | Form and DB Operation 2

Client Survey

Id Name (Link) Surname Mobile CreatedBy Last Updated On
Requirement: Form and DB Operation 2 - Edit Survey

This exercise builds upon the previous one, focusing on implementing the Update (Edit) functionality. The key challenge is creating a single reusable form for both Add and Edit operations and handling data retrieval and update logic.

List Screen Updates:

  • The Name field in the table must be converted into a clickable link.
  • Add two new columns to the table: CreatedBy and Last Updated On.

Edit Functionality:

  1. Clicking the Name link must navigate the user to the same form used for adding records.
  2. The form must load in Edit Mode, pre-filling all input fields with the data from the selected client.
  3. The form title should dynamically change to reflect the Edit Mode (e.g., "Edit Client Survey (ID: X)").
  4. The form must display the **CreatedBy** and **Last Updated On** (or RecordUpdatedOn) information for the user to view (read-only).
  5. Clicking Save in Edit Mode must execute the Update logic, modifying the existing record in the database, updating the RecordUpdatedOn/By fields, and **redirecting the user back to the main list screen**.

Hint (OutSystems): The Form's Source Record parameter should be determined by a local variable, which is populated either as a New Record (for Add) or by a **Get** action (for Edit) based on the input ID parameter of the screen.

Ankit G Avatar
About the Author: Ankit Gangrade

Ankit Gangrade is a passionate Low-Code Architect, Developer, & Educator dedicated to helping students and professionals build modern applications faster using OutSystems and Cloud-Native technologies. His goal is to bridge the gap between traditional coding and modern low-code platforms — empowering the next generation of developers to build smart, scalable, and cloud-ready apps.