Creating list view tables with customizable columns


As an application developer, create list view tables that give application users the flexibility to tailor the interface to their needs. These tables allow users to resize columns, set specific column widths, rearrange the column order, and change column visibility, enabling a more personalized and efficient viewing experience.

Information

Scenario

Seth, a developer at Apex Global, wants to create an application screen with tables that support customizable columns. As a result, application users can resize, rearrange, and toggle column visibility. These customizations persist across login sessions.

Seth also wants to enable application users to reset the column settings. To provide this ability for application users, Seth creates a button for the table that application users click to reset the table settings to the default. Seth uses the field property Width Unit to specify default column widths.

To create list tables with customizable columns

  1. In Developer Studio, select AR System Navigator > All Objects > Forms > New Regular Form.
    New Regular Form option in Developer Studio
  2. To create a progressive view, perform the following steps:
    1. Select Form > Create New View.
    2. In the Create New View dialog box, from the View Type list, select Progressive
      Create New View dialog box
      Developer Studio automatically creates a Section panel.
  3. Drag Table - List View into the view.
  4. With the table in the view selected, in the Properties tab, navigate to Attributes > Tree/Table Property. 
  5. In the Value column, click the ellipsis (image2021-2-18_11-33-49.png) button.
    The Tree/Table Property dialog box opens.
  6. Click the ellipsis (image2021-2-18_11-33-49.png) button adjacent to Form Name.
    The Form Selector dialog box opens.
    Opening the Form Selector dialog box
  7. Search for a form name.
    In this example, in the Name field, enter User.
    The forms with matching names are displayed.
  8. From the search results, select the form from which you want to add data to the table.
    For example, select the User form.
    User option in Form Selector dialog box
  9. In the Qualification field, add a qualification to specify the fields you want to list in the table.
    In this example, add a qualification that picks all fields that have a request ID available:
    $Request ID$ != $NULL$
  10. Map the table columns to the fields on the remote form.
    Tree/Table property dialog box
    In this example, fields related to users are added from the remote form to the table columns.
  11. To set the default column widths, perform the following steps:
    1. Select the table column in the progressive view.
    2. Set the display width value in the properties at Display > Column Width.
    3. Set the Width Unit property to either Pixel or Percentage
  12. (Optional) To make the table scrollable when it exceeds the value set in the Height property, append the string Scrollable to the Custom CSS style property value.
  13. (Optional) To manage table size when there are a large number of records, set the Size of Chunk property to display a limited number of rows.
  14. (Optional) To enable column visibility and reset options, set the Toolbar Visibility property to True.
  15. Save the form.
Success

Tip

To enable application users to reset the column settings, add a button with an active link that uses the command PERFORM-ACTION-TABLE-COLUMN-SIZE-RESET.

To validate the list view tables in Progressive Web Applications

  1. In a browser, log in to PWA:
    (On-premiseshttp://<midtierHostName>:<portNumber>/arsys/pwa/#/login
    (Helix) http://<helixBaseURL>/arsys/pwa/#/login
  2. Change the URL to include the Progressive View form that you created in Developer Studio.
  3. (On-premiseshttp://<midtierHostName>:<portNumber>/arsys/pwa/#/forms/<AR_Server_Name>/<formName>/
    (Helix) http://<helixBaseURL>/arsys/pwa/#/forms/<AR_Server_Name>/<formName>/
    The table is displayed with customizable columns. 

    Related topics

    Field properties

    Process commands

    Creating active links​​​​ 

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Helix Innovation Suite 26.1