Creating a Query form (Web Designer)

Note: This procedure is a continuation of the procedure for creating forms in the Web Designer. For the procedure to create a Query form in Design Mode (Windows client), see Creating a Query form (Design Mode).

To continue creating a Query form in the Web Designer:

  1. If you have not already done so, complete the steps in the topic Creating a form in the Web Designer before continuing.
  2. In the Form Template > Name field, specify the name of the form.
    You can do this either by selecting the name of a form template from the drop-down list or by typing a new name in the field.
    Caution: 
    Be warned that, if you specify an existing form template, the Web Designer will overwrite your existing form with the new blank one. Once you click Finish, the old version is gone.
  3. Verify that the Form Type is Query.
  4. In the Form Layout drop-down list, select the position to be used for the grid part of the form.
  5. From the Device Type drop-down list, specify what type of device you are creating the form for.
  6. From the Data Source drop-down list, select the IDO from which the information is to be queried.
    This must be the same IDO as the IDO collection used for the parent form or calling component.
  7. Optionally, add any Comments you want to associate with the form.
    Note: Any comments you enter here do not display anywhere on the form. They are strictly for your information, perhaps to explain the reason the form was created or what it was created to do.
  8. Click Next.
  9. On the Properties page of the wizard, specify which properties should be included for the primary collection and represented in components on the form.
  10. Click Next.
  11. On the next page of the wizard, specify the order and attributes of each property to query from the primary collection. You can specify these attributes:
    Option Description
    Caption Enter the text string to use as the caption/label for the property component on the form.
    The string can be a translatable string from the Strings table or a literal string value. Literal values are not translated for localized displays.
    Note: If you specify a translatable string that does not yet exist, the Web Designer does not prompt you to define it. You must remember to create the string, or the system uses the designation here as a literal value.
    Include in Primary To specify which properties are to be displayed as the primary returns, select this option. Any property not selected here does not display on the Primary Criteria tab.
    Include in Additional To specify which properties can be included in advanced queries, select this option. These properties are searched uing the Additional Criteria tab on the query form.
    Include in Results To specify which properties are to be included and displayed in the results of a query, select this option. This option allows criteria to be used for a search without forcing the display of searched properties.
    Component Class If the property uses a component class, use this field to specify which one.
    Note: The component class must exist before you can specify it here. Also, this option is not availble for Query forms.
    Order buttons For the specified properties, use the up and down arrows to move a selected property to the top, up one line, down one line, or to the bottom.
  12. Click Next.
  13. If you want to save the template for the form (in case you want to later recreate the form without having to start from the beginning), select the Save Template option.
  14. Click Finish.
The Web Designer creates the form and opens it ready for further design action. You can now add components and arrange them according to your needs.