Adding and Editing Table Columns of the List Report Table

Objective

After completing this lesson, you will be able to add, edit, delete, or move table columns using the page editor

Edit Table Columns of the List Report

In this exercise, you will edit the table columns of the list report. You will do the following:

  • Remove the Time Stamp column.
  • Move the Overall Status column infront of the Booking Fee column.
  • Add a new Description column and placing it after the Travel ID column.

Prerequisites

You have completed the exercise Enable Initial Load for the List Report Table in the unit Configuring General Settings of List Reports and Object Pages (lesson: Configuring Initial Load Setting for Your App).

Watch the Simulation and Perform the Steps

This exercise contains a simulation that takes you through detailed steps. You can find all the steps after the simulation. You can follow the simulation and perform the steps using your own trial account.

Steps

  1. Open SAP Business Application Studio.

  2. Right-click webapp from your travels project.

  3. Choose the Show Page Map option from the subsequent menu.

  4. Select the edit icon from List Report to open the Page Editor.

  5. Expand Columns. You can see all the columns that are currently available in the list report table.

  6. Remove the Time Stamp column.

    1. Select Time Stamp from the Column list. In the right-hand side pane, you can see the settings for the Time Stamp column that you can configure.

    2. Select the delete icon from the highlighted Time Stamp column. The Delete confirmation dialog pops up.

    3. Select Delete from the Delete confirmation dialog. The column is deleted.

  7. Move the Overall Status column before the Booking Fee column.

    1. Select the Move Up icon for the Overall Status column. The column moves up and is placed before Total Price.

    2. Select the Move Up icon again for the Overall Status column. It is now placed before the Booking Fee column.

    3. Select the Edit in source code icon to open the annotation.xml. You can see that the @UI.LineItem record for OverallStatus has been moved up and placed before BookingFee.

  8. Add a new Description column and place it after the Travel ID column.

    1. Select the Columns option from the Page Editor. The Columns row gets highlighted.

    2. Select the add icon from the end of the highlighted row.

    3. Choose Add Basics Columns from the dropdown list. The Add Basic Columns dialog opens.

    4. Select the dropdown for the Columns field.

    5. Choose Description from the list.

    6. Select Add. The Description column is added at the bottom of the list.

    7. Move the Description column up by using the Move Up icon.

    8. Keep moving the column up using the same icon until the Description column is placed directly after the Travel ID column.

    9. Select the Edit in source code icon to open the annotation.xml for the Description column. You can see that the @UI.LineItem record for Description has been added on the second position.

  9. Switch to the app preview in your browser. You can see that a new column Description has been added after the Travel ID column. You can also see that the Overall Status column has been placed before the Booking Fee column.

  10. Select the Show More per Row icon from the table toolbar. You can see that Time Stamp has been removed from the table columns.

Result

You successfully added and edited certain columns of the list report table using the page editor. You can also do this using the guided development guide Add and Edit Table Columns.

Note

You can find the solution for this exercise on GitHub.

Log in to track your progress & complete quizzes