Previous Topic: Choose the Form to CustomizeNext Topic: Open an Existing Form


Create a Form

Create a form in WSP.

Follow these steps:

  1. Click File, New.

    The New Form dialog opens.

  2. Complete the following fields, as appropriate:
    Interface or File Type

    Indicates the file type of the form. For example, to create an HTMPL form select an interface (Analyst, Customer, Employee, Default, or PDA). To create a form of other file type by select the type directly (CSS Stylesheet, HTML, or JavaScript). When you select an interface or file type, WSP displays a list of all available templates for the selected file type in the File Name field.

    Form Group

    Indicates the form group (as defined for your CA SDM installation) where you want to create your new form or file. If you have not defined any form groups, only the DEFAULT form group is listed.

    File Name

    Indicates the template for the selected interface or file type. A template contains the basic requirements for a new form or file of the desired type.

    Select table for new list or detail form

    Indicates the CA SDM tables for which you can create a new list or detail form. This field is populated according to your selection of an interface (Analyst, Customer, Employee, Default, or PDA).

    Note: Only one detail or list form can exist for each table in a forms group, so edit an existing form (rather than create one) for tables that already have an existing form. If you want to have multiple versions of a form, create one or more form groups to hold the additional versions.

  3. Click New.
  4. The form is displayed for your customizations. The following two tabs are displayed:
    Design

    Available for detail forms, list forms, and menu bar forms, and shows the controls on the form laid out more or less as a user would see them. It is not an image of how the form looks to an end user. To see this, select Tools, Preview.

    Source

    A Notepad-style editor allowing you to review and edit the source code for a form. Some forms are editable only in the Source tab. For those forms, the edit window opens up on the Source tab, and the Design tab is disabled.

    The form is ready for customization.

    Important! When you create or edit a detail or list form, use the list_ and detail_ prefixes to name the HTMPL file. For example, use list_test.htmp" and detail_test.htmpl. This prefix lets you correctly preview a form. When you save a detail template with a custom name, you must also manually edit the <PDM_WSP> tag. For example, <PDM_WSP mode=edit preview="test.htmpl+OP=CREATE_NEW" factory=cr>.

More information:

How to Create a Web Form Group