HFMwQueryDef Component

The HFMwQueryDef component provides properties and methods that set journal and template column, filtering, and sorting criteria. You set these criteria with the component’s properties and methods, then return the criteria with GetDefAsVariants. You then find the journals or templates that meet the criteria by passing the GetDefAsVariants return values to the HFMwManageJournals method ExecuteQuery.

In addition, you can create a journal report based upon an HFMwQueryDef instance’s properties. To create a journal report, take the following steps.

  To create a journal report:

  1. Set the HFMwQueryDef properties for a report’s label, Point of View, and security class.

  2. Call GetReportDefinition to get a string that represents the HFMwQueryDef instance’s properties.

  3. Pass the string to one of the HFMwManageDocuments methods that save documents.

For information on the component’s members, see HFMwQueryDef Methods and HFMwQueryDef Properties.

Obtaining an HFMwQueryDef Object Reference

Create an HFMwQueryDef object with Server.CreateObject.