Creating a query form

To create a query form:

  1. In Design Mode, launch the New Form Wizard.
  2. In the first page of the wizard, select the Create new form option, and then click Next.
  3. In the next page, complete the following required fields:
    • In the Name field, perform one of these actions:
      • Type a unique name for the new form.

        Form names must be unique. The typical query form name consists of the parent form name appended with "Query".

      • Select from the drop-down list the name of an existing form to use as the basis for the new form.
    • From the Form Type drop-down list, select Query.
    • From the Data Source drop-down list, select an IDO to return the primary collection.

      This must be the same IDO as the primary IDO collection used for the parent form or calling component.

  4. Optionally, specify a default Device Type and any comments.

    Comments are stored with the form definition and do not appear anywhere on the actual form.

  5. Click Next.
  6. In the next page of the wizard (Select Properties), specify the properties of the IDO that are to be included in any possible query using this form.  
  7. Click Next.
  8. In the next page of the wizard (Properties), you can specify:
    • The order in which the properties are listed

      This affects the order in which properties display on the Primary Criteria tab and in the returned Results.

    • The captions for properties
    • Whether each properties' values are to be included:
      • On the Primary Criteria tab
      • On the Additional Criteria tab
      • With the returned Results of a query

    See New Form Wizard, Properties.

  9. Click Next.
  10. To create a template from the new form, select Save Form Definition Template.
  11. Click Finish.

WinStudio displays the form in Runtime Mode.

相关主题