Query definition
| Element Name | Child Element | Required | Description |
|---|---|---|---|
|
Yes | Identifies the query definition, and referred to by dataset definitions that map to this query. | |
|
No | Human readable description for the query definition | |
|
|
Yes | queryColumns is the collection that holds queryColumn elements; each queryColumn representing a column in the returned data from the query execution. This ID needs to match with exact column ID that is returned by the query engine ( It must match with Column ID that is mentioned in online DataAccess API help page, for the query type specified by QueryType element). The match is case insensitive. |
|
Yes | Datatype for the query column. It must match with datatype that is mentioned in the DataAccess API help page for the column | |
|
|
Yes | queryParameters collection holds queryParameter elements, each representing a query parameter. The ID must match with the query parameters that are defined in the respective query API. These APIs must match with DataAccess API help page for the query type that the query definition specifies. The query definition must define all the mandatory parameters for the QueryType, as defined on the DataAccess API help page. |
|
Yes | Data type for the query parameter - this must be same as defined the DataAccess API help page. | |
|
Yes | Boolean flag that indicates if the parameter is mandatory or optional. If mandatory, a value must be present (default or supplied from mapping dataset) for this query parameter, or else the query Engine will fail to run this query. | |
|
No |
This is the default value for the query parameter. If there is no Dataset parameter mapped to this query parameter or no value is supplied for the mapped Dataset parameter, this default value will be used. |
|
|
No | Optional Boolean flag. If true, this forces the query engine to return a column corresponding to this parameter. The column holds same values as the input value received for this parameter |