Forms (Profile)

Forms present standard and extended attributes and collections as property sheet tabs or can be used to create dialog boxes launched from menus or property sheet buttons.

Note: Unless you add them to a form, extended attributes are listed alphabetically on the Extended Attributes tab of the object's property sheet. By creating your own form, you can make these attributes more visible and easy to use, by organizing them logically, grouping related ones, and emphasizing those that are most important. If you associate all of your extended attributes with a form, the Extended Attributes tab is not displayed.
  1. Right-click a metaclass, stereotype or criterion and select New > Form to create an empty form.
    Note: If you define a property tab under a stereotype or criterion, it is displayed only when the metaclass instance bears the stereotype or meets the criterion.


  2. Enter the appropriate following properties:

    Property

    Description

    Name

    Specifies the internal name of the form, which can be used for scripting.

    Label

    Specifies the display name of the form, which will display in the tab of the property tab or in the title bar of the dialog box.

    Comment

    Provides additional information about the form.

    Help file

    Enables the display of a Help button and specifies an action that will be performed when the button is clicked or F1 is pressed when in the context of the form.

    The action can be the display of a help file (.hlp, .chm or .html), and can specify a specific topic. For instance:
    C:\PD1500\pddoc15.chm 26204
    If no help file extension is found, the string will be treated as a shell command to execute. For instance, you could instruct PowerDesigner to open a simple text file:
    notepad.exe C:\Temp\Readme.txt

    Type

    Specifies the kind of form. You can choose from the following:
    • Dialog Box – creates a dialog box that can be launched from a menu or via a form button

    • Property Tab – creates a new tab in the property sheet of the metaclass, stereotype or criterion

    • Replace <standard> Tab – replaces a standard tab in the property sheet of the metaclass, stereotype or criterion. If your form is empty, it will be filled with the standard controls from the tab that you are replacing.

    Add to favorite tabs

    [property tabs only] Specifies that the tab is displayed by default in the object property sheet.

  3. Insert controls as necessary in your form using the toolbar on the Form tab (see Adding Extended Attributes and Other Controls to Your Form).
  4. Click the Preview button to review the layout of your form and, when satisfied, click Apply to save your changes.