Skip to main content
Pentaho Documentation

Query

cdf.dashboard.Query

The Query class allows generating query instances and is included here mainly for legacy reasons.

AMD Module

require(["cdf/dashboard/Query"], function(Query) { /* code goes here */ });

Constructor

Name Description
new Query(cd, dataAccessId, dashboard)
 
Deprecated

Builds a new Query object by calling getQuery.

Constructor Details

new Query(cd, dataAccessId, dashboard)
 
Deprecated

Builds a new Query instance by calling getQuery. It creates a new query type based on the query type, determined within the constructor, and the query definition.

Source: dashboard/Query.js, line 16

Parameters:
Name Default Value Summary
cd : string | object

Path to the server-side query or a chart definition object.

dataAccessId : string

The data access identifier.

dashboard : object

The dashboard from which the query will be generated.

Throws:
Name Description
InvalidQuery

If an invalid query type is detected.