Previous Topic: Data Grid List

Next Topic: Mouse-Over Previews


Modify Data Grid Lists on List Forms

Use WSP to modify data grids. For example, you can modify list_chg.htmpl to change what the end user sees on the form.

Note: You cannot move an existing control after the grid area.

To modify the data grid

  1. Open WSP from the Start Menu or from the pdm_wsp command.

    The WSP Login appears.

  2. Enter your login credentials and click Log In.

    The Web Screen Painter appears.

  3. Click File, Open, and select list_chg.htmpl, click OK.

    The HTMPL file opens for editing.

  4. Locate the blue area after the labeled fields near the end of the form in the Design view.

    If you prefer Source view, the data grid appears between the following lines of code:

    <PDM_MACRO name=lsStart>
    <PDM_MACRO name=lsEnd>
    

    The following example shows this data grid area in Design view:

    This area of the form lets you modify data grids in the design view.

    The plus sign in the data grid area represents the beginning of the expansion section of the row (the fields that are displayed only when a user clicks plus on the row in the list form grid). The following code generates the plus sign in the Source view:

    <PDM_MACRO name=lsCol attr=open_date label="Open Date" sort="DESC" startrow=yes>
    

    The startrow=yes parameter specifies to start a row, and it starts the expansion section of the row.

  5. Drag-and-drop columns to move them in a list.

    You can move columns between the main part of the row and the expansion section.

  6. To insert a list column, right-click a control or anywhere within the blue background, and select either Insert Column or Insert Control.

    If you select Insert Column, WSP inserts a column to the left of the currently selected control. If you select Insert Control, WSP displays the Insert Control dialog that lets you add the desired control to the form.

  7. Click Preview.

    Your unpublished changes appear in the web browser.

  8. Save the form.

    The data grid is modified.