9: Editing a Car

Previously, we set up the New Car screen with a second version so we could alter it to serve a second purpose: Editing a car.

Rename the Screen

  1. Customize the New Car screen.
  2. Select the NewCar text object and change the text to New / Edit Car.
  3. Go to the properties of the screen itself by clicking the paper icon.
  4. Change the Name of the screen to New / Edit Car.
  5. Save the Screen and Close it.

Wow! We didn't do much other than rename the screen! However, how can we use it to edit a car? The easiest way to do that would be to click on a car on the grid in the Car List screen. So let’s set up the functionality!

Editing Car List Grid

  1. Go to the Car List screen and click Customize.
  2. Click the down arrow on the GridCar object and select the Row Click Event.
  3. Find and add the action Go To Screen.
  4. Under Navigate to, choose Cars app. For the new dropdown that appears, choose the New / Edit Car screen.
  5. For Set a screen active record ID, select Set Active Record ID.
  6. For Use this active record ID, search for and choose GridCar - Record ID.
  7. Remember to include an Internal Note: “Go To New / Edit Car Screen”.
  8. Close the Action Editor and then close Design Mode.

Now, when you take a look at GridCar, do you notice something? The rows have arrows on them, and they are selectable! When you click on a row, you are taken to the New / Edit Car Screen, and the details for the Car you have chosen are already in the fields. You now have the ability to make edits to those fields, then click Save to resave the entry with the updated information.

[top]

Was this article helpful?

Can’t find what you’re looking for?

Contact Us