QueryDef object methods

Method name
Description
BuildField
Selects a field to include in the query's search results.
BuildFilterOperator
Creates the top-level QueryFilterNode Object for the query.
BuildUniqueKeyField
Builds and returns a unique key query field.
CreateTopNode
Creates a new root filter node, automatically attaches the old top node as its child.
GetFieldByPosition
Returns a QueryFieldDef object with the specified position.
GetPrimaryEntityDefName
Returns the primary EntityDef name for the QueryDef.
IsFieldLegalForQuery
Returns a Bool indicating whether a field is legal to be included in a query.
Save
Saves the query to the specified file.
Note: For all Perl Get and Set methods that map to Visual Basic Properties, see the Properties section of this object.

Additional Perl Methods that map to Visual Basic properties:

Method name
Description
CreateTopNode
Creates a new root filter node, automatically attaches the old top node as its child.
GetIsSQLGenerated
Returns a Bool indicating whether any fields of the query are SQL generated.
GetName
Returns the name associated with the query.
GetQueryFieldDefs
Returns the collection of QueryFieldDef objects included in the query.
GetSQL
Returns the SQL string associated with the query.
IsAggregated
Returns a Boolean indicating whether any fields of the query are aggregated.
IsDirty
Returns a Boolean indicating whether the query has changed.
IsMultiType
Returns a Boolean indicating whether the QueryDef object is multitype.
GetQueryType
Returns an Integer indicating list, report, or chart.
SetName
Sets the name associated with the query.
SetSQL
Sets the SQL string associated with the query.