API Docs for:
Show:

Xmla Class

Defined in: src/Xmla.js:617
Module: xmla

The Xmla class provides a javascript API to communicate XML for Analysis (XML/A) over HTTP. XML/A is an industry standard protocol that allows webclients to work with OLAP servers. To fully understand the scope and purpose of this utility, it is highly recommended to read the XML/A specification (MS Word format. For other formats, see: http://code.google.com/p/xmla4js/source/browse/#svn/trunk/doc/xmla1.1 specification).

Constructor

Xmla

(
  • options
)

Defined in src/Xmla.js:617

Parameters:

  • options Object

    Object standard options

Item Index

Methods

addListener

(
  • listener
)

Defined in src/Xmla.js:1591

This method can be used to register one or more listeners. On such listener can listen for one or more events.

For a single listener, you can pass a listener object literal with the following structure:

{
    events: ...event name or array of event names...,
    handler: ...function or array of functions...,
    scope: object
}

You can use event as an alias for events. Likewise, you can use handlers as an alias for handler.

Alternatively, you can pass the element as separate arguments instead of as an object literal: addListener(name, func, scope) where name is a valid event name, func is the function that is to be called when the event occurs. The last argument is optional and can be used to specify the scope that will be used as context for executing the function.

To register multiple listeners, pass an array of listener objects: addListener([listener1, ..., listenerN])

Alternatively, pass multiple listener objects as separate arguments: addListener(listener1, ..., listenerN)

Or, pass a single object literal with event names as keys and listener objects or functions as values:

addListener({
        discover: function() {
            ...handle discover event...
        },
        error: {
            handler: function() {
               ...handle error event...
            },
            scope: obj
        },
        scope: defaultscope
    })
In this case, you can use scope as a key to specify the default scope for the handler functions.

Below is a more detailed description of the listener object and its components:

events
string|string[] REQUIRED. The event or events to listen to. You can specify a single event by using one of the EVENT_XXX string constant values. You can specify multiple events by using an array of EVENT_XXX string constant values. You can also use one of the predefined EVENT_XXX array constant values, or use array concatenation and compose a custom list of event names. To listen to all events, either use EVENT_ALL, or otherwise the string value "all".
event
string|string[] Alias for events
handler
function|function[] REQUIRED. This function will be called and notified whenever one of the specified events occurs. The function has the following signature: boolean handler(string eventName, object eventData, Xmla xmla) You can also pass in an array of functions if you want multiple functions to be called when the event occurs. The function is called in scope of the scope property of the listener object. If no scope is specified, a global function is assumed. The handler function has the following arguments:
eventName
string The event for which notification is given. This is useful to distinguish between events in case the same handler function is used for multiple events. In this case, use the EVENT_XXX constants to check the eventName.
eventData
Object An object that conveys event-specific data.
xmla
Xmla A reference to this Xmla instance that is the source of the event. Listeners can obtain the response as well as the original SOAP message sent to the server through this instance. This allows one listener to be shared across multiple Xmla instances without managing the context manually.
For events that are cancelable, the handler should return a boolean. If the handler returns false the respective operation will be canceled. Otherwise, the operation continues (but may be canceled by another handler). Currently, the following events are cancelable: EVENT_DISCOVER, EVENT_EXECUTE, and EVENT_REQUEST.
handlers
function|function[] Alias for handler
scope
Object OPTIONAL When specified, this object is used as the this object when calling the handler. When not specified, the global window is used.

Parameters:

  • listener Object | Array

    An object that defines the events and the notification function to be called, or an array of such objects.

discover

(
  • options
)
Xmla.Rowset

Defined in src/Xmla.js:2141

Sends a request to invoke the XML/A Discover method and returns a schema rowset specified by the requestType option. Options are passed using a generic options object. Applicable properties of the options object are:

  • requestType - {string} Indicates the kind of schema rowset to retrieve. You can use one of the following predefined XML for Analysis Schema Rowset constants: Or one of the applicable OLE DB Schema Rowset constants: Or one of the applicable OLE DB for OLAP Schema Rowset constants: You can also dymically discover which values for requestType are supported by the XML/A provider. To do that, refer to the SchemaName column of the DISCOVER_SCHEMA_ROWSETS rowset (see: discoverMDSchemaRowsets()).
  • url {string} REQUIRED the url of the XML/A service or XML/A datasource. If the value for the requestType option is one of the predefined XML/A DISCOVER_XXX constants, then this should be the url of the XML/A service.
  • properties {Object} XML/A properties. The appropriate types and values of XML/A properties are dependent upon the value passed as requestType. The XML/A standard defines a set of pre-defined properties. The Xmla class defines a static final property for each of these (see the PROP_XXX constants). The list of all valid properties can be obtained from the DISCOVER_PROPERTIES schema rowset (see discoverProperties()). Each javascript property of the properties object is mapped literally to a XML/A property.
  • restrictions {Object} XML/A restrictions. These are used to specify a filter that will be applied to the data in the schema rowset. Each javascript property of the restrictions object is mapped to a column of the requested schema rowset. The value for the restriction is sent with the request, and processed by the XML/A server to only return matching rows from the requested schema dataset. The name, types and values of the restrictions are dependent upon which schema rowset is requested. The available restrictions are specified by the Restrictions column of the DISCOVER_SCHEMA_ROWSETS schema rowset. For a number of schema rowsets, the available restrictions are pre-defined. These are documented together with each particular discoverXXX() method.
  • async {boolean} Determines how the request is performed:
    • true: The request is performed asynchronously: the call to request() will not block and return immediately. In this case, the return value of the request() method is not defined, and the response must be received by registering a listener (see addListener()).
    • false: The request is performed synchronously: the call to execute() will block until it receives a response from the XML/A server or times out. In this case, a Resultset is returned that represents the multi-dimensional data set. If you registered any REQUEST_XXX and/or EXECUTE_XXX listeners (see addListener()), then these will still be notified.

Instead of calling this method directly, consider calling or one of the specialized discoverXXX() methods to obtain a particular schema rowset.

Parameters:

  • options Object

    An object whose properties convey the options for the XML/A Discover request.

Returns:

Xmla.Rowset: The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the requested schema rowset. For an asynchronous request, the return value is not defined: you should add a listener (see: addListener()) and listen for the success (see: EVENTSUCCESS) or discoversuccess (see: EVENTDISCOVER_SUCCESS) events.

discoverDataSources

(
  • options
)
Xmla.Rowset

Defined in src/Xmla.js:2232

Invokes the discover() method using as value for the requestType, and retrieves the DISCOVER_DATASOURCES schema rowset. The rowset has the following columns:

Column Name Type Description Restriction Nullable
DataSourceName string A name that identifies this data source. Yes No
DataSourceDescription string Human readable description of the datasource No Yes
URL string URL to use to submit requests to this provider. Yes Yes
DataSourceInfo string Connectstring No Yes
ProviderName string A name indicating the product providing the XML/A implementation Yes Yes
ProviderType string[] The kind of data sets supported by this provider. The following values are defined by the XML/A specification:
TDP
tabular data provider.
MDP
multidimensiona data provider.
DMP
data mining provider.
Note: multiple values are possible.
Yes No
AuthenticationMode string Type of security offered by the provider The following values are defined by the XML/A specification:
Unauthenticated
no user ID or password needs to be sent.
Authenticated
User ID and password must be included in the information required for the connection.
Integrated
the data source uses the underlying security to determine authorization
Yes No

Parameters:

  • options Object

    An object whose properties convey the options for the XML/A a DISCOVER_DATASOURCES request.

Returns:

Xmla.Rowset: The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the DISCOVERDATASOURCES schema rowset. For an asynchronous request, the return value is not defined: you should add a listener (see: addListener()) and listen for the success (see: EVENTSUCCESS) or discoversuccess (see: EVENTDISCOVERSUCCESS) events.

discoverDBCatalogs

(
  • options
)
Xmla.Rowset

Defined in src/Xmla.js:2725

Invokes the discover() method using as value for the requestType, and retrieves the DBSCHEMA_CATALOGS schema rowset. The rowset has the following columns:

Column Name Type Description Restriction Nullable
CATALOG_NAME string Name of the catalog Yes No
DESCRIPTION string Human readable description No Yes
ROLES string A comma-separatd list of roles available to the current user. No Yes
DATE_MODIFIED Date The date this catalog was modified No Yes

Parameters:

  • options Object

    An object whose properties convey the options for the XML/A a DBSCHEMA_CATALOGS request.

Returns:

Xmla.Rowset: The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the DBSCHEMACATALOGS schema rowset. For an asynchronous request, the return value is not defined: you should add a listener (see: addListener()) and listen for the success (see: EVENTSUCCESS) or discoversuccess (see: EVENTDISCOVERSUCCESS) events.

discoverDBColumns

(
  • options
)
Xmla.Rowset

Defined in src/Xmla.js:2777

Invokes the discover() method using as value for the requestType, and retrieves the DBSCHEMA_COLUMNS schema rowset. Provides column information for all columns meeting the provided restriction criteria. The rowset has the following columns:

Column Name Type Description Restriction Nullable
TABLE_CATALOG string The name of the Database. Yes No
TABLE_SCHEMA string Not supported. Yes No
TABLE_NAME string The name of the cube. Yes No
COLUMN_NAME string The name of the attribute hierarchy or measure. Yes No
COLUMN_GUID string Not supported. No No
COLUMN_PROPID int Not supported. No No
ORDINAL_POSITION int The position of the column, beginning with 1. No No
COLUMN_HAS_DEFAULT boolean Not supported. No No
COLUMN_DEFAULT string Not supported. No No
COLUMN_FLAGS int A DBCOLUMNFLAGS bitmask indicating column properties. See 'DBCOLUMNFLAGS Enumerated Type' in IColumnsInfo::GetColumnInfo No No
IS_NULLABLE boolean Always returns false. No No
DATA_TYPE string The data type of the column. Returns a string for dimension columns and a variant for measures. No No
TYPE_GUID srring Not supported. No No
CHARACTER_MAXIMUM_LENGTH int The maximum possible length of a value within the column. This is retrieved from the DataSize property in the DataItem. No No
CHARACTER_OCTET_LENGTH int The maximum possible length of a value within the column, in bytes, for character or binary columns. A value of zero (0) indicates the column has no maximum length. NULL will be returned for columns that do not return binary or character data types. No No
NUMERIC_PRECISION int The maximum precision of the column for numeric data types other than DBTYPE_VARNUMERIC. No No
NUMERIC_SCALE int The number of digits to the right of the decimal point for DBTYPE_DECIMAL, DBTYPE_NUMERIC, DBTYPE_VARNUMERIC. Otherwise, this is NULL. No No
DATETIME_PRECISION int Not supported. No No
CHARACTER_SET_CATALOG string Not supported. No No
CHARACTER_SET_SCHEMA string Not supported. No No
CHARACTER_SET_NAME string Not supported. No No
COLLATION_CATALOG string Not supported. No No
COLLATION_SCHEMA string Not supported. No No
COLLATION_NAME string Not supported. No No
DOMAIN_CATALOG string Not supported. No No
DOMAIN_SCHEMA string Not supported. No No
DOMAIN_NAME string Not supported. No No
DESCRIPTION string Not supported. No No
COLUMN_OLAP_TYPE string The OLAP type of the object. MEASURE indicates the object is a measure. ATTRIBUTE indicates the object is a dimension attribute. Yes No

The rowset is sorted on TABLECATALOG, TABLESCHEMA, TABLE_NAME.

Parameters:

  • options Object

    An object whose properties convey the options for the XML/A a DBSCHEMA_COLUMNS request.

Returns:

Xmla.Rowset: The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the DBSCHEMACOLUMNS schema rowset. For an asynchronous request, the return value is not defined: you should add a listener (see: addListener()) and listen for the success (see: EVENTSUCCESS) or discoversuccess (see: EVENTDISCOVERSUCCESS) events.

discoverDBProviderTypes

(
  • options
)
Xmla.Rowset

Defined in src/Xmla.js:3006

Invokes the discover() method using as value for the requestType, and retrieves the DBSCHEMAPROVIDERTYPES schema rowset. ...todo... The rowset has the following columns:

Column Name Type Description Restriction Nullable
TYPE_NAME string The provider-specific data type name. false true
DATA_TYPE int The indicator of the data type. false true
COLUMN_SIZE int The length of a non-numeric column or parameter that refers to either the maximum or the length defined for this type by the provider. For character data, this is the maximum or defined length in characters. For DateTime data types, this is the length of the string representation (assuming the maximum allowed precision of the fractional seconds component). If the data type is numeric, this is the upper bound on the maximum precision of the data type. false true
LITERAL_PREFIX string The character or characters used to prefix a literal of this type in a text command. false true
LITERAL_SUFFIX string The character or characters used to suffix a literal of this type in a text command. false true
CREATE_PARAMS string The creation parameters specified by the consumer when creating a column of this data type. For example, the SQL data type, DECIMAL, needs a precision and a scale. In this case, the creation parameters might be the string "precision,scale". In a text command to create a DECIMAL column with a precision of 10 and a scale of 2, the value of the TYPE_NAME column might be DECIMAL() and the complete type specification would be DECIMAL(10,2). The creation parameters appear as a comma-separated list of values, in the order they are to be supplied and with no surrounding parentheses. If a creation parameter is length, maximum length, precision, scale, seed, or increment, use "length", "max length", "precision", "scale", "seed", and "increment", respectively. If the creation parameter is some other value, the provider determines what text is to be used to describe the creation parameter. If the data type requires creation parameters, "()" usually appears in the type name. This indicates the position at which to insert the creation parameters. If the type name does not include "()", the creation parameters are enclosed in parentheses and appended to the data type name. false true
IS_NULLABLE boolean A Boolean that indicates whether the data type is nullable. VARIANT_TRUE indicates that the data type is nullable. VARIANT_FALSE indicates that the data type is not nullable. NULL indicates that it is not known whether the data type is nullable. false true
CASE_SENSITIVE boolean A Boolean that indicates whether the data type is a characters type and case-sensitive. VARIANT_TRUE indicates that the data type is a character type and is case-sensitive. VARIANT_FALSE indicates that the data type is not a character type or is not case-sensitive. false true
SEARCHABLE int An integer indicating how the data type can be used in searches if the provider supports ICommandText; otherwise, NULL. This column can have the following values: DB_UNSEARCHABLE indicates that the data type cannot be used in a WHERE clause. DB_LIKE_ONLY indicates that the data type can be used in a WHERE clause only with the LIKE predicate.DB_ALL_EXCEPT_LIKE indicates that the data type can be used in a WHERE clause with all comparison operators except LIKE. DB_SEARCHABLE indicates that the data type can be used in a WHERE clause with any comparison operator. false true
UNSIGNED_ATTRIBUTE boolean A Boolean that indicates whether the data type is unsigned. VARIANT_TRUE indicates that the data type is unsigned. VARIANT_FALSE indicates that the data type is signed.NULL indicates that this is not applicable to the data type. false true
FIXED_PREC_SCALE boolean A Boolean that indicates whether the data type has a fixed precision and scale. VARIANT_TRUE indicates that the data type has a fixed precision and scale. VARIANT_FALSE indicates that the data type does not have a fixed precision and scale. false true
AUTO_UNIQUE_VALUE boolean A Boolean that indicates whether the data type is autoincrementing. VARIANT_TRUE indicates that values of this type can be autoincrementing. VARIANT_FALSE indicates that values of this type cannot be autoincrementing. If this value is VARIANT_TRUE, whether or not a column of this type is always autoincrementing depends on the provider's DBPROP_COL_AUTOINCREMENT column property. If the DBPROP_COL_AUTOINCREMENT property is read/write, whether or not a column of this type is autoincrementing depends on the setting of the DBPROP_COL_AUTOINCREMENT property. If DBPROP_COL_AUTOINCREMENT is a read-only property, either all or none of the columns of this type are autoincrementing. false true
LOCAL_TYPE_NAME string The localized version of TYPE_NAME. NULL is returned if a localized name is not supported by the data provider. false true
MINIMUM_SCALE int If the type indicator is DBTYPE_VARNUMERIC, DBTYPE_DECIMAL, or DBTYPE_NUMERIC, the minimum number of digits allowed to the right of the decimal point. Otherwise, NULL. false true
MAXIMUM_SCALE int The maximum number of digits allowed to the right of the decimal point if the type indicator is DBTYPE_VARNUMERIC, DBTYPE_DECIMAL, or DBTYPE_NUMERIC; otherwise, NULL. false true
GUID string (Intended for future use) The GUID of the type, if the type is described in a type library. Otherwise, NULL. false true
TYPELIB string (Intended for future use) The type library containing the description of the type, if the type is described in a type library. Otherwise, NULL. false true
VERSION string (Intended for future use) The version of the type definition. Providers might want to version type definitions. Different providers might use different versioning schemes, such as a timestamp or number (integer or float). NULL if not supported. false true
IS_LONG boolean A Boolean that indicates whether the data type is a binary large object (BLOB) and has very long data. VARIANT_TRUE indicates that the data type is a BLOB that contains very long data; the definition of very long data is provider-specific. VARIANT_FALSE indicates that the data type is a BLOB that does not contain very long data or is not a BLOB. This value determines the setting of the DBCOLUMNFLAGS_ISLONG flag returned by GetColumnInfo in IColumnsInfo and GetParameterInfo in ICommandWithParameters. false true
BEST_MATCH boolean A Boolean that indicates whether the data type is a best match. VARIANT_TRUE indicates that the data type is the best match between all data types in the data store and the OLE DB data type indicated by the value in the DATA_TYPE column. VARIANT_FALSE indicates that the data type is not the best match. For each set of rows in which the value of the DATA_TYPE column is the same, the BEST_MATCH column is set to VARIANT_TRUE in only one row. false true
IS_FIXEDLENGTH boolean A Boolean that indicates whether the column is fixed in length. VARIANT_TRUE indicates that columns of this type created by the data definition language (DDL) will be of fixed length. VARIANT_FALSE indicates that columns of this type created by the DDL will be of variable length. If the field is NULL, it is not known whether the provider will map this field with a fixed-length or variable-length column. false true

Parameters:

  • options Object

    An object whose properties convey the options for the XML/A a DBSCHEMAPROVIDERTYPES request.

Returns:

Xmla.Rowset: The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the DBSCHEMAPROVIDERTYPES schema rowset. For an asynchronous request, the return value is not defined: you should add a listener (see: addListener()) and listen for the success (see: EVENTSUCCESS) or discoversuccess (see: EVENTDISCOVER_SUCCESS) events.

discoverDBSchemata

(
  • options
)
Xmla.Rowset

Defined in src/Xmla.js:3178

Invokes the discover() method using as value for the requestType, and retrieves the DBSCHEMA_SCHEMATA schema rowset. ...todo... The rowset has the following columns:

Column Name Type Description Restriction Nullable

Parameters:

  • options Object

    An object whose properties convey the options for the XML/A a DBSCHEMA_SCHEMATA request.

Returns:

Xmla.Rowset: The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the DBSCHEMASCHEMATA schema rowset. For an asynchronous request, the return value is not defined: you should add a listener (see: addListener()) and listen for the success (see: EVENTSUCCESS) or discoversuccess (see: EVENTDISCOVERSUCCESS) events.

discoverDBTables

(
  • options
)
Xmla.Rowset

Defined in src/Xmla.js:3203

Invokes the discover() method using as value for the requestType, and retrieves the DBSCHEMA_TABLES schema rowset. ...todo... The rowset has the following columns:

Column Name Type Description Restriction Nullable

Parameters:

  • options Object

    An object whose properties convey the options for the XML/A a DBSCHEMA_TABLES request.

Returns:

Xmla.Rowset: The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the DBSCHEMATABLES schema rowset. For an asynchronous request, the return value is not defined: you should add a listener (see: addListener()) and listen for the success (see: EVENTSUCCESS) or discoversuccess (see: EVENTDISCOVERSUCCESS) events.

discoverDBTablesInfo

(
  • options
)
Xmla.Rowset

Defined in src/Xmla.js:3228

Invokes the discover() method using as value for the requestType, and retrieves the DBSCHEMATABLESINFO schema rowset. ...todo... The rowset has the following columns:

Column Name Type Description Restriction Nullable

Parameters:

  • options Object

    An object whose properties convey the options for the XML/A a DBSCHEMATABLESINFO request.

Returns:

Xmla.Rowset: The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the DBSCHEMATABLESINFO schema rowset. For an asynchronous request, the return value is not defined: you should add a listener (see: addListener()) and listen for the success (see: EVENTSUCCESS) or discoversuccess (see: EVENTDISCOVER_SUCCESS) events.

discoverEnumerators

(
  • options
)
Xmla.Rowset

Defined in src/Xmla.js:2566

Invokes the discover() method using as value for the requestType, and retrieves the DISCOVER_ENUMERATORS schema rowset. This rowset lists the names, data types, and enumeration values of enumerators supported by the XMLA Provider for a specific data source. The rowset has the following columns:

Column Name Type Description Restriction Nullable
EnumName string Name of the enumerator. Yes (array) No
EnumDescription string A human readable description of the enumerator No Yes
EnumType string The XML Schema data type of this enumerator No No
ElementName string The name of the enumerator entry No No
ElementDescription string A human readable description of this enumerator entry No Yes
ElementValue string The value of this enumerator entry No Yes

Parameters:

  • options Object

    An object whose properties convey the options for the XML/A a DISCOVER_ENUMERATORS request.

Returns:

Xmla.Rowset: The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the DISCOVERENUMERATORS schema rowset. For an asynchronous request, the return value is not defined: you should add a listener (see: addListener()) and listen for the success (see: EVENTSUCCESS) or discoversuccess (see: EVENTDISCOVERSUCCESS) events.

discoverKeywords

(
  • options
)
Xmla.Rowset

Defined in src/Xmla.js:2633

Invokes the discover() method using as value for the requestType, and retrieves the DISCOVER_KEYWORDS schema rowset. This rowset is a list of reserved words for this XML/A provider. The rowset has the following columns:

Column Name Type Description Restriction Nullable
Keyword string Name of the enumerator. Yes (array) No

Parameters:

  • options Object

    An object whose properties convey the options for the XML/A a DISCOVER_KEYWORDS request.

Returns:

Xmla.Rowset: The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the DISCOVERENUMERATORS schema rowset. For an asynchronous request, the return value is not defined: you should add a listener (see: addListener()) and listen for the success (see: EVENTSUCCESS) or discoversuccess (see: EVENTDISCOVERSUCCESS) events.

discoverLiterals

(
  • options
)
Xmla.Rowset

Defined in src/Xmla.js:2665

Invokes the discover() method using as value for the requestType, and retrieves the DISCOVER_LITERALS schema rowset. This rowset is a list of reserved words for this XML/A provider. The rowset has the following columns:

Column Name Type Description Restriction Nullable
LiteralName string Name of the literal. Yes (array) No
LiteralValue string The actual literal value. No Yes
LiteralInvalidChars string Characters that may not appear in the literal No Yes
LiteralInvalidStartingChars string Characters that may not appear as first character in the literal No Yes
LiteralMaxLength int maximum number of characters for this literal, or -1 in case there is no maximum, or the maximum is unknown No Yes

Parameters:

  • options Object

    An object whose properties convey the options for the XML/A a DISCOVER_LITERALS request.

Returns:

Xmla.Rowset: The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the DISCOVERLITERALS schema rowset. For an asynchronous request, the return value is not defined: you should add a listener (see: addListener()) and listen for the success (see: EVENTSUCCESS) or discoversuccess (see: EVENTDISCOVERSUCCESS) events.

discoverMDActions

(
  • options
)
Xmla.Rowset

Defined in src/Xmla.js:3257

Invokes the discover() method using as value for the requestType, and retrieves the MDSCHEMA_ACTIONS schema rowset. ...todo... The rowset has the following columns:

Column Name Type Description Restriction Nullable

Parameters:

  • options Object

    An object whose properties convey the options for the XML/A a MDSCHEMA_ACTIONS request.

Returns:

Xmla.Rowset: The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the MDSCHEMAACTIONS schema rowset. For an asynchronous request, the return value is not defined: you should add a listener (see: addListener()) and listen for the success (see: EVENTSUCCESS) or discoversuccess (see: EVENTDISCOVERSUCCESS) events.

discoverMDCubes

(
  • options
)
Xmla.Rowset

Defined in src/Xmla.js:3282

Invokes the discover() method using as value for the requestType, and retrieves the MDSCHEMA_CUBES schema rowset. ...todo... The rowset has the following columns:

Column Name Type Description Restriction Nullable
CATALOG_NAME string Name of the catalog Yes No
SCHEMA_NAME string Not supported Yes Yes
CUBE_NAME string Name of the cube. Yes No
CUBE_TYPE string Type of the cube. Yes No
CUBE_GUID string Not supported Yes No
CREATED_ON Date Not supported Yes No
LAST_SCHEMA_UPDATE Date The time that the cube was last processed. Yes No
SCHEMA_UPDATED_BY string Yes No
LAST_DATA_UPDATE Date The time that the cube was last processed. Yes No
DATA_UPDATED_BY string Yes No
DESCRIPTION string A Human-readable description of the cube. Yes No
IS_DRILLTHROUGH_ENABLED boolean Yes No
IS_LINKABLE boolean Yes No
IS_WRITE_ENABLED boolean Yes No
IS_SQL_ENABLED boolean Yes No
CUBE_CAPTION string Caption for this cube. Yes No
BASE_CUBE_NAME string Name of the source cube (if this cube is a perspective cube). Yes No
ANNOTATIONS string Notes in xml format Yes No

Parameters:

  • options Object

    An object whose properties convey the options for the XML/A a MDSCHEMA_CUBES request.

Returns:

Xmla.Rowset: The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the MDSCHEMACUBES schema rowset. For an asynchronous request, the return value is not defined: you should add a listener (see: addListener()) and listen for the success (see: EVENTSUCCESS) or discoversuccess (see: EVENTDISCOVERSUCCESS) events.

discoverMDDimensions

(
  • options
)
Xmla.Rowset

Defined in src/Xmla.js:3433

Invokes the discover() method using as value for the requestType, and retrieves the MDSCHEMA_DIMENSIONS schema rowset. ...todo... The rowset has the following columns:

Column Name Type Description Restriction Nullable
CATALOG_NAME string Name of the catalog Yes No
SCHEMA_NAME string Not supported Yes Yes
CUBE_NAME string Name of the cube. Yes No
DIMENSION_NAME string Name of the dimension. Yes No
DIMENSION_UNIQE_NAME string Unique name for this dimension. Yes No
DIMENSION_GUID string No Yes
DIMENSION_CAPTION string No Yes
DIMENSION_ORDINAL int No Yes
DIMENSION_TYPE string
  • MD_DIMTYPE_UNKNOWN (0)
  • MD_DIMTYPE_TIME (1)
  • MD_DIMTYPE_MEASURE (2)
  • MD_DIMTYPE_OTHER (3)
  • MD_DIMTYPE_QUANTITATIVE (5)
  • MD_DIMTYPE_ACCOUNTS (6)
  • MD_DIMTYPE_CUSTOMERS (7)
  • MD_DIMTYPE_PRODUCTS (8)
  • MD_DIMTYPE_SCENARIO (9)
  • MD_DIMTYPE_UTILIY (10)
  • MD_DIMTYPE_CURRENCY (11)
  • MD_DIMTYPE_RATES (12)
  • MD_DIMTYPE_CHANNEL (13)
  • MD_DIMTYPE_PROMOTION (14)
  • MD_DIMTYPE_ORGANIZATION (15)
  • MD_DIMTYPE_BILL_OF_MATERIALS (16)
  • MD_DIMTYPE_GEOGRAPHY (17)
No Yes
DIMENSION_CARDINALITY int No Yes
DEFAULT_HIERARCHY string No Yes
DESCRIPTION string A Human-readable description of the dimension. Yes No
IS_VIRTUAL boolean Yes No
IS_READWRITE boolean Yes No
DIMENSION_UNIQUE_SETTINGS Yes No
DIMENSION_MASTER_UNIQUE_NAME Yes No
IS_VISIBLE boolean Yes No

Parameters:

  • options Object

    An object whose properties convey the options for the XML/A a MDSCHEMA_DIMENSIONS request.

Returns:

Xmla.Rowset: The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the MDSCHEMADIMENSIONS schema rowset. For an asynchronous request, the return value is not defined: you should add a listener (see: addListener()) and listen for the success (see: EVENTSUCCESS) or discoversuccess (see: EVENTDISCOVERSUCCESS) events.

discoverMDFunctions

(
  • options
)
Xmla.Rowset

Defined in src/Xmla.js:3597

Invokes the discover() method using as value for the requestType, and retrieves the MDSCHEMA_FUNCTIONS schema rowset. ...todo... The rowset has the following columns:

Column Name Type Description Restriction Nullable

Parameters:

  • options Object

    An object whose properties convey the options for the XML/A a MDSCHEMA_FUNCTIONS request.

Returns:

Xmla.Rowset: The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the MDSCHEMAFUNCTIONS schema rowset. For an asynchronous request, the return value is not defined: you should add a listener (see: addListener()) and listen for the success (see: EVENTSUCCESS) or discoversuccess (see: EVENTDISCOVERSUCCESS) events.

discoverMDHierarchies

(
  • options
)
Xmla.Rowset

Defined in src/Xmla.js:3622

Invokes the discover() method using as value for the requestType, and retrieves the MDSCHEMA_HIERARCHIES schema rowset. ...todo... The rowset has the following columns:

Column Name Type Description Restriction Nullable
CATALOG_NAME string Name of the catalog Yes No
SCHEMA_NAME string Not supported Yes Yes
CUBE_NAME string Name of the cube. Yes No
DIMENSION_UNIQE_NAME string Unique name for this dimension. Yes No
HIERARCHY_NAME string Name of the hierarchy. Yes No
HIERARCHY_UNIQE_NAME string Unique name for this hierarchy. Yes No
HIERARCHY_GUID string No Yes
HIERARCHY_CAPTION string No Yes
DIMENSION_TYPE string No Yes
HIERARCHY_CARDINALITY int No Yes
DEFAULT_MEMBER string No Yes
ALL_MEMBER string No Yes
DESCRIPTION string A Human-readable description of the dimension. Yes No
STRUCTURE string No Yes
IS_VIRTUAL boolean No Yes
IS_READWRITE boolean No Yes
DIMENSION_UNIQUE_SETTINGS string No Yes
DIMENSION_MASTER_UNIQUE_NAME string No Yes
DIMENSION_IS_VISIBLE boolean No Yes
HIERARCHY_ORDINAL int No Yes
DIMENSION_IS_SHARED boolean No Yes
HIERARCHY_IS_VISIBLE boolean No Yes
HIERARCHY_ORIGIN No Yes
HIERARCHY_DISPLAY_FOLDER string No Yes
INSTANCE_SELECTION string No Yes

Parameters:

  • options Object

    An object whose properties convey the options for the XML/A a MDSCHEMA_HIERARCHIES request.

Returns:

Xmla.Rowset: The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the MDSCHEMAHIERARCHIES schema rowset. For an asynchronous request, the return value is not defined: you should add a listener (see: addListener()) and listen for the success (see: EVENTSUCCESS) or discoversuccess (see: EVENTDISCOVERSUCCESS) events.

discoverMDLevels

(
  • options
)
Xmla.Rowset

Defined in src/Xmla.js:3822

Invokes the discover() method using as value for the requestType, and retrieves the MDSCHEMA_LEVELS schema rowset. The rowset has the following columns:

Column Name Type Description Restriction Nullable
CATALOG_NAME string The name of the catalog to which this level belongs. NULL if the provider does not support catalogs. No Yes
SCHEMA_NAME string The name of the schema to which this level belongs. NULL if the provider does not support schemas. No Yes
CUBE_NAME string The name of the cube to which this level belongs. No Yes
DIMENSION_UNIQUE_NAME string The unique name of the dimension to which this level belongs. For providers that generate unique names by qualification, each component of this name is delimited. No Yes
HIERARCHY_UNIQUE_NAME string The unique name of the hierarchy. If the level belongs to more than one hierarchy, there is one row for each hierarchy to which it belongs. For providers that generate unique names by qualification, each component of this name is delimited. No Yes
LEVEL_NAME string The name of the level. No Yes
LEVEL_UNIQUE_NAME string The properly escaped unique name of the level. No Yes
LEVEL_GUID string Not supported. No Yes
LEVEL_CAPTION string A label or caption associated with the hierarchy. Used primarily for display purposes. If a caption does not exist, LEVEL_NAME is returned. No Yes
LEVEL_NUMBER int The distance of the level from the root of the hierarchy. Root level is zero (0). No Yes
LEVEL_CARDINALITY int The number of members in the level. No Yes
LEVEL_TYPE int Type of the level:
  • MDLEVEL_TYPE_GEO_CONTINENT (0x2001)
  • MDLEVEL_TYPE_GEO_REGION (0x2002)
  • MDLEVEL_TYPE_GEO_COUNTRY (0x2003)
  • MDLEVEL_TYPE_GEO_STATE_OR_PROVINCE (0x2004)
  • MDLEVEL_TYPE_GEO_COUNTY (0x2005)
  • MDLEVEL_TYPE_GEO_CITY (0x2006)
  • MDLEVEL_TYPE_GEO_POSTALCODE (0x2007)
  • MDLEVEL_TYPE_GEO_POINT (0x2008)
  • MDLEVEL_TYPE_ORG_UNIT (0x1011)
  • MDLEVEL_TYPE_BOM_RESOURCE (0x1012)
  • MDLEVEL_TYPE_QUANTITATIVE (0x1013)
  • MDLEVEL_TYPE_ACCOUNT (0x1014)
  • MDLEVEL_TYPE_CUSTOMER (0x1021)
  • MDLEVEL_TYPE_CUSTOMER_GROUP (0x1022)
  • MDLEVEL_TYPE_CUSTOMER_HOUSEHOLD (0x1023)
  • MDLEVEL_TYPE_PRODUCT (0x1031)
  • MDLEVEL_TYPE_PRODUCT_GROUP (0x1032)
  • MDLEVEL_TYPE_SCENARIO (0x1015)
  • MDLEVEL_TYPE_UTILITY (0x1016)
  • MDLEVEL_TYPE_PERSON (0x1041)
  • MDLEVEL_TYPE_COMPANY (0x1042)
  • MDLEVEL_TYPE_CURRENCY_SOURCE (0x1051)
  • MDLEVEL_TYPE_CURRENCY_DESTINATION (0x1052)
  • MDLEVEL_TYPE_CHANNEL (0x1061)
  • MDLEVEL_TYPE_REPRESENTATIVE (0x1062)
  • MDLEVEL_TYPE_PROMOTION (0x1071)
No Yes
DESCRIPTION string A human-readable description of the level. NULL if no description exists. No Yes
CUSTOM_ROLLUP_SETTINGS int A bitmap that specifies the custom rollup options: MDLEVELS_CUSTOM_ROLLUP_EXPRESSION (0x01) indicates an expression exists for this level. (Deprecated) MDLEVELS_CUSTOM_ROLLUP_COLUMN (0x02) indicates that there is a custom rollup column for this level. MDLEVELS_SKIPPED_LEVELS (0x04) indicates that there is a skipped level associated with members of this level.MDLEVELS_CUSTOM_MEMBER_PROPERTIES (0x08) indicates that members of the level have custom member properties. MDLEVELS_UNARY_OPERATOR (0x10) indicates that members on the level have unary operators. No Yes
LEVEL_UNIQUE_SETTINGS int A bitmap that specifies which columns contain unique values, if the level only has members with unique names or keys. The Msmd.h file defines the following bit value constants for this bitmap: MDDIMENSIONS_MEMBER_KEY_UNIQUE (1) MDDIMENSIONS_MEMBER_NAME_UNIQUE (2)The key is always unique in Microsoft SQL Server 2005 Analysis Services (SSAS). The name will be unique if the setting on the attribute is UniqueInDimension or UniqueInAttribute No Yes
LEVEL_IS_VISIBLE bool A Boolean that indicates whether the level is visible. Always returns True. If the level is not visible, it will not be included in the schema rowset. No Yes
LEVEL_ORDERING_PROPERTY string The ID of the attribute that the level is sorted on. No Yes
LEVEL_DBTYPE int The DBTYPE enumeration of the member key column that is used for the level attribute. Null if concatenated keys are used as the member key column. No Yes
LEVEL_MASTER_UNIQUE_NAME string Always returns NULL. No Yes
LEVEL_NAME_SQL_COLUMN_NAME string The SQL representation of the level member names. No Yes
LEVEL_KEY_SQL_COLUMN_NAME string The SQL representation of the level member key values. No Yes
LEVEL_UNIQUE_NAME_SQL_COLUMN_NAME string The SQL representation of the member unique names. No Yes
LEVEL_ATTRIBUTE_HIERARCHY_NAME string The name of the attribute hierarchy providing the source of the level. No Yes
LEVEL_KEY_CARDINALITY int The number of columns in the level key. No Yes
LEVEL_ORIGIN int A bit map that defines how the level was sourced:MD_ORIGIN_USER_DEFINED identifies levels in a user defined hierarchy.MD_ORIGIN_ATTRIBUTE identifies levels in an attribute hierarchy.MD_ORIGIN_KEY_ATTRIBUTE identifies levels in a key attribute hierarchy.MD_ORIGIN_INTERNAL identifies levels in attribute hierarchies that are not enabled. No Yes

Parameters:

  • options Object

    An object whose properties convey the options for the XML/A a MDSCHEMA_LEVELS request.

Returns:

Xmla.Rowset: The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the MDSCHEMALEVELS schema rowset. For an asynchronous request, the return value is not defined: you should add a listener (see: addListener()) and listen for the success (see: EVENTSUCCESS) or discoversuccess (see: EVENTDISCOVERSUCCESS) events.

discoverMDMeasures

(
  • options
)
Xmla.Rowset

Defined in src/Xmla.js:4048

Invokes the discover() method using as value for the requestType, and retrieves the MDSCHEMA_MEASURES schema rowset. ...todo... The rowset has the following columns:

Column Name Type Description Restriction Nullable
CATALOG_NAME string Name of the catalog Yes No
SCHEMA_NAME string Not supported Yes Yes
CUBE_NAME string Name of the cube. Yes No
MEASURE_NAME string Name of the cube. Yes No
MEASURE_UNIQUE_NAME string Name of the cube. Yes No
MEASURE_CAPTION string Name of the cube. Yes No
MEASURE_GUID string Name of the cube. Yes No
MEASURE_AGGREGATOR string Name of the cube. Yes No
DATA_TYPE string Name of the cube. Yes No
NUMERIC_PRECISION int Name of the cube. Yes No
NUMERIC_SCALE int Name of the cube. Yes No
DESCRIPTION string Name of the cube. Yes No
EXPRESSION string Name of the cube. Yes No
MEASURE_IS_VISIBLE boolean Name of the cube. Yes No
LEVELS_LIST string Name of the cube. Yes No
MEASURE_NAME_SQL_COLUMN_NAME string Name of the cube. Yes No
MEASURE_UNQUALIFIED_CAPTION string Name of the cube. Yes No
MEASUREGROUP_NAME string Name of the cube. Yes No
MEASURE_DISPLAY_FOLDER string Name of the cube. Yes No
DEFAULT_FORMAT_STRING string Name of the cube. Yes No

Parameters:

  • options Object

    An object whose properties convey the options for the XML/A a MDSCHEMA_MEASURES request.

Returns:

Xmla.Rowset: The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the MDSCHEMAMEASURES schema rowset. For an asynchronous request, the return value is not defined: you should add a listener (see: addListener()) and listen for the success (see: EVENTSUCCESS) or discoversuccess (see: EVENTDISCOVERSUCCESS) events.

discoverMDMembers

(
  • options
)
Xmla.Rowset

Defined in src/Xmla.js:4213

Invokes the discover() method using as value for the requestType, and retrieves the MDSCHEMA_MEMBERS schema rowset. The rowset has the following columns:

Column Name Type Description Restriction Nullable
CATALOG_NAME string The name of the catalog Yes No
SCHEMA_NAME string The name of the schema Yes No
CUBE_NAME string The name of the cube Yes No
DIMENSION_UNIQUE_NAME string The unique name of the dimension Yes No
HIERARCHY_UNIQUE_NAME string The unique name of the hierarchy Yes No
LEVEL_UNIQUE_NAME string The unique name of the level Yes No
LEVEL_NUMBERr int Distance of this level to the root Yes No
MEMBER_ORDINAL int Deprecated: always 0 Yes No
MEMBER_NAME string The name of this member Yes No
MEMBER_UNIQUE_NAME string The unique name of this member Yes No
MEMBER_TYPE int An integer constant indicating the type of this member. Can take on one of the following values: Yes No
MEMBER_GUID string The guid of this member Yes No
MEMBER_CAPTION string A label or caption associated with the member. Used primarily for display purposes. If a caption does not exist, MEMBER_NAME is returned. Yes No
CHILDREN_CARDINALITY int The number of childrend for this member Yes No
PARENT_LEVEL int The distance of the member's parent from the root level of the hierarchy. The root level is zero (0). Yes No
DESCRIPTION string This column always returns a NULL value. This column exists for backwards compatibility Yes No
EXPRESSION string The expression for calculations, if the member is of type MDMEMBER_TYPE_FORMULA. Yes No
MEMBER_KEY string The value of the member's key column. Returns NULL if the member has a composite key. Yes No

Parameters:

  • options Object

    An object whose properties convey the options for the XML/A a MDSCHEMA_MEMBERS request.

Returns:

Xmla.Rowset: The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the MDSCHEMAMEMBERS schema rowset. For an asynchronous request, the return value is not defined: you should add a listener (see: addListener()) and listen for the success (see: EVENTSUCCESS) or discoversuccess (see: EVENTDISCOVERSUCCESS) events.

discoverMDProperties

(
  • options
)
Xmla.Rowset

Defined in src/Xmla.js:4372

Invokes the discover() method using as value for the requestType, and retrieves the MDSCHEMA_PROPERTIES schema rowset. ...todo... The rowset has the following columns:

Column Name Type Description Restriction Nullable

Parameters:

  • options Object

    An object whose properties convey the options for the XML/A a MDSCHEMA_PROPERTIES request.

Returns:

Xmla.Rowset: The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the MDSCHEMAPROPERTIES schema rowset. For an asynchronous request, the return value is not defined: you should add a listener (see: addListener()) and listen for the success (see: EVENTSUCCESS) or discoversuccess (see: EVENTDISCOVERSUCCESS) events.

discoverMDSets

(
  • options
)
Xmla.Rowset

Defined in src/Xmla.js:4397

Invokes the discover() method using as value for the requestType, and retrieves the MDSCHEMA_SETS schema rowset. ...todo... The rowset has the following columns:

Column Name Type Description Restriction Nullable

Parameters:

  • options Object

    An object whose properties convey the options for the XML/A a MDSCHEMA_SETS request.

Returns:

Xmla.Rowset: The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the MDSCHEMASETS schema rowset. For an asynchronous request, the return value is not defined: you should add a listener (see: addListener()) and listen for the success (see: EVENTSUCCESS) or discoversuccess (see: EVENTDISCOVERSUCCESS) events.

discoverProperties

(
  • options
)
Xmla.Rowset

Defined in src/Xmla.js:2388

Invokes the discover() method using as value for the requestType, and retrieves the DISCOVER_PROPERTIES schema rowset. This rowset provides information on the properties that are supported by the XML/A provider. The rowset has the following columns:

Column Name Type Description Restriction Nullable
PropertyName string The name of the property Yes (array) No
PropertyDescription string Human readable description of the property No Yes
PropertyType string The property's datatype (as an XML Schema data type) No Yes
PropertyAccessType string How the property may be accessed. Values defined by the XML/A spec are:
  • Read
  • Write
  • ReadWrite
No No
IsRequired boolean true if the property is required, false if not. No Yes
Value string The property's current value. No Yes

Parameters:

  • options Object

    An object whose properties convey the options for the XML/A a DISCOVER_DATASOURCES request.

Returns:

Xmla.Rowset: The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the DISCOVERDATASOURCES schema rowset. For an asynchronous request, the return value is not defined: you should add a listener (see: addListener()) and listen for the success (see: EVENTSUCCESS) or discoversuccess (see: EVENTDISCOVERSUCCESS) events.

discoverSchemaRowsets

(
  • options
)
Xmla.Rowset

Defined in src/Xmla.js:2520

Invokes the discover() method using as value for the requestType, and retrieves the DISCOVERSCHEMAROWSETS schema rowset. This rowset lists all possible request types supported by this provider. The rowset has the following columns:

Column Name Type Description Restriction Nullable
SchemaName string The requestType. Yes No
Restrictions array A list of columns that may be used to filter the schema rowset. No Yes
Description string A human readable description of the schema rowset that is returned when using this requestType No Yes

Parameters:

  • options Object

    An object whose properties convey the options for the XML/A a DISCOVERSCHEMAROWSETS request.

Returns:

Xmla.Rowset: The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the DISCOVERDATASOURCES schema rowset. For an asynchronous request, the return value is not defined: you should add a listener (see: addListener()) and listen for the success (see: EVENTSUCCESS) or discoversuccess (see: EVENTDISCOVERSUCCESS) events.

execute

(
  • options
)
Xmla.Dataset | Xmla.Rowset

Defined in src/Xmla.js:2050

Sends an MDX query to a XML/A DataSource to invoke the XML/A Execute method and obtain the multi-dimensional resultset. Options are passed using a generic options object. Applicable properties of the options object are:

  • url {string} REQUIRED the URL of a XML/A datasource. This should be a value obtained from the URL column of the DISCOVER_DATASOURCES rowset (see: discoverDataSources()).
  • statement - {string} The MDX query to send to the server.
  • properties {Object} XML/A properties. The list of all valid properties can be obtained from the DISCOVER_PROPERTIES schema rowset (see discoverProperties()). Typically, execute() requires these properties:
    DataSourceInfo property
    Identifies a data source managed by the XML/A server. To specify this property, you can use the static final constant PROP_DATASOURCEINFO as key in the properties object of the options object passed to the execute() method. Valid values for this property should be obtained from the DataSourceInfo column of the DISCOVER_DATASOURCES schema rowset (see: discoverDataSources()). Note that the values for the DataSourceInfo property and the url must both be taken from the same row of the DISCOVER_DATASOURCES schema rowset.
    Catalog property
    Identifies a catalog applicable for the datasource. To specify this property, you can use the static final constant PROP_CATALOG as key in the properties object of the options object passed to the execute() method. Valid values for this property should be obtained from the CATALOG_NAME column of the DBSCHEMA_CATALOGS schema rowset (see: discoverDBCatalogs()).
  • async {boolean} Determines how the request is performed:
    • true: The request is performed asynchronously: the call to request() will not block and return immediately. In this case, the return value of the request() method is not defined, and the response must be received by registering a listener (see addListener()).
    • false: The request is performed synchronously: the call to execute() will block until it receives a response from the XML/A server or times out. In this case, a Resultset is returned that represents the multi-dimensional data set. If you registered any REQUEST_XXX and/or EXECUTE_XXX listeners (see addListener()), then these will still be notified.

Parameters:

  • options Object

    An object whose properties convey the options for the XML/A Execute request.

Returns:

Xmla.Dataset | Xmla.Rowset: The result of the invoking the XML/A Execute method. For an asynchronous request, the return value is not defined. For synchronous requests, an instance of a Xmla.Dataset that represents the multi-dimensional result set of the MDX query. If the Format property in the request was set to Tabular, then an instance of the Rowset class is returned to represent the Resultset.

executeMultiDimensional

(
  • options
)

Defined in src/Xmla.js:2130

Sends an MDX query to a XML/A DataSource to invoke the PROPFORMATMULTIDIMENSIONAL as value for the PROPFORMAT property. In this case, the result is available only as XML text or XML document in the responseText and responseXML properties.

Parameters:

  • options Object

    An object whose properties convey the options for the XML/A Execute request.

executeTabular

(
  • options
)
Xmla.Rowset

Defined in src/Xmla.js:2119

Sends an MDX query to a XML/A DataSource to invoke the execute() method using PROPFORMATTABULAR as value for the PROP_FORMAT property. This has the effect of obtaining the multi-dimensional resultset as a Rowset.

Parameters:

  • options Object

    An object whose properties convey the options for the XML/A Execute request.

Returns:

Xmla.Rowset: The result of the invoking the XML/A Execute method. For an asynchronous request, the return value is not defined. For synchronous requests, an instance of a Xmla.Rowset that represents the multi-dimensional result set of the MDX query.

getResponseXML

() DOMDocument

Defined in src/Xmla.js:1555

Returns:

DOMDocument:

request

(
  • options
)
Xmla.Rowset | Xmla.Dataset

Defined in src/Xmla.js:1805

Sends a request to the XML/A server. This method is rather low-level and allows full control over the request by passing an options object. General properties of the options object are:

  • method {string} REQUIRED the XML/A method to invoke. This should be one of the following constants:
    METHOD_DISCOVER

    This method is used to obtain metadata from the XML/A service or XML/A provider. Metadata is returned in a tabular format called Schema Rowsets, which are represented by an instance of the Xmla.Rowset class. For these types of requests, you must pass the requestType option to specify which schema rowset you want to obtain. In addition, you can specify a restrictions object that is used as filter criteria to restrict which rows will be returned in the rowset.

    Instead of explicitly passing METHOD_DISCOVER as the requestType, you can also call the discover() method (which requires you to explictly pass a requestType option). Finally, you can also call one of the discoverXXX() methods in order to request a particular schema rowset.

    METHOD_EXECUTE

    This method is used to send an MDX quey to the XML/A provider. Query results are returned in a multidimentsional format which is represented by an instance of the Xmla.Dataset class. For these types of requests, you must pass the statement option to specify the MDX query.

    Instead of explicitly passing METHOD_EXECUTE as the requestType, you can also call the execute() method.

  • url {string} REQUIRED the URL of XML/A service, or of a XML/A datasource. Typically, you first use the URL of a XML/A service (like http://your.pentaho.server:8080/pentaho/Xmla?userid=joe&password=password) and use that to retrieve the DISCOVER_DATASOURCES rowset. Then, you can connect to a XML/A datasource using the value returned by the URL column of the DISCOVER_DATASOURCES rowset (typically, you also have to set a DataSourceInfo property using the value found in the DataSourceInfo column of the DISCOVER_DATASOURCES rowset).
  • properties {Object} XML/A properties. The appropriate types and values of XML/A properties are dependent upon the specific method and requestType. The XML/A standard defines a set of pre-defined properties. The Xmla class defines a static final property for each of these (see the PROP_XXX constants). The list of all valid properties can be obtained from the DISCOVER_PROPERTIES schema rowset (see discoverProperties()). Each javascript property of the properties object is mapped literally to a XML/A property.
  • async {boolean} Determines how the request is performed:
    • true: The request is performed asynchronously: the call to request() will not block and return immediately. In this case, the return value of the request() method is not defined, and the response must be received by registering a listener. (see addListener()). As an alternative to using listeners, you can also pass success, error and callback callback functions. Callbacks are described in more detail below.
    • false: The request is performed synchronously: the call to request() will block until it receives a response from the XML/A server or times out. In this case, the request() method returns a Rowset (for Discover requests) or a Resultset (for Execute requests). If you registered any listeners (see addListener()), then these will still be notified of any events (such as receiving the response).
  • success (function) A function that is to be called after the requests is executed and a successful response is receieved. Any listeners appropriate for the request are called after this handler is executed.
  • error (function) A function that is to be called after the requests is executed and an error was encountered. Any listeners appropriate for the request are called after this handler is executed.
  • callback (function) A function that is to be called after the requests is executed and the response is receieved, and after calling any listeners that are appropriate for the request. This function will be called both in case of success and of error. If the options also contain a success and/or error handler, then callback will be called after those more specific handlers are called.

Other parts of the options object are method-specific.

  • The following options are applicable in case the method is METHOD_DISCOVER:
    • requestType - {string} Applies to the Discover method and indicates the kind of schema rowset to retrieve. You can use one of the DISCOVER_XXX, DBSCHEMA_XXX or MDSCHEMA_XXX constants for this property. You can also dymically discover which values for requestType are supported by the XML/A provider using the DISCOVER_SCHEMA_ROWSETS rowset (see: discoverMDSchemaRowsets()). See the discover() method for more information.
    • restrictions {Object} XML/A restrictions are used to filter the requested schema rowset. For more information on restrictions, see the discover() method.
  • The following options are applicable in case the method is METHOD_EXECUTE:
    • statement - {string} Applies to the Execute method and specifies the MDX query to send to the server.

Instead of calling this method directly, consider calling discover() (to obtain a schema rowset), execute() (to issue a MDX query), or one of the specialized discoverXXX() methods (to obtain a particular schema rowset).

Parameters:

  • options Object

    An object whose properties convey the options for the request.

Returns:

Xmla.Rowset | Xmla.Dataset: The result of the invoking the XML/A method. For an asynchronous request, the return value is not defined. For synchronous requests, Discover requests return an instance of a Xmla.Rowset, and Execute results return an instance of a Xmla.Dataset.

setOptions

(
  • Object
)

Defined in src/Xmla.js:1563

This method can be used to set a number of default options for the Xmla instance. This is especially useful if you don't want to pass each and every option to each method call all the time. Where appropriate, information that is missing from the parameter objects passed to the methods of the Xmla object may be augmented with the values set through this method. For example, if you plan to do a series of requests pertaining to one particular datasource, you can set the mandatory options like url, async, datasource and catalog just once:

    xml.setOptions({
        url: "http://localhost:8080/pentaho/Xmla",
        async: true,
        properties: {
            DataSourceInfo: "Pentaho Analysis Services",
            Catalog: "Foodmart"
        }
    });

Then, a subsequent

Parameters:

  • Object Object

Properties

DBSCHEMA_CATALOGS

String final static

Defined in src/Xmla.js:775

Can be used as value for the requestType option in the options object passed to the to request() method to invoke the XML/A Discover method on the server to return the DBSCHEMACATALOGS schema rowset. The requestType option applies only to Discover requests. Instead of passing this requestType yourself, consider calling the discoverDBCatalogs() method. The discoverDBCatalogs() method issues a request to invoke the Discover method using DBSCHEMACATALOGS as requestType.

Default: <code>DBSCHEMA_CATALOGS</code>

DBSCHEMA_COLUMNS

String final static

Defined in src/Xmla.js:789

Can be used as value for the requestType option in the options object passed to the to request() method to invoke the XML/A Discover method on the server to return the DBSCHEMACOLUMNS schema rowset. The requestType option applies only to Discover requests. Instead of passing this requestType yourself, consider calling the discoverDBColumns() method. The discoverDBColumns() method issues a request to invoke the Discover method using DBSCHEMACOLUMNS as requestType.

Default: <code>DBSCHEMA_COLUMNS</code>

DBSCHEMA_PROVIDER_TYPES

String final static

Defined in src/Xmla.js:803

Can be used as value for the requestType option in the options object passed to the to request() method to invoke the XML/A Discover method on the server to return the DBSCHEMAPROVIDERTYPES schema rowset. The requestType option applies only to Discover requests. Instead of passing this requestType yourself, consider calling the discoverDBProviderTypes() method. The discoverDBProviderTypes() method issues a request to invoke the Discover method using DBSCHEMAPROVIDERTYPES as requestType.

Default: <code>DBSCHEMA_PROVIDER_TYPES</code>

DBSCHEMA_SCHEMATA

String final static

Defined in src/Xmla.js:817

Can be used as value for the requestType option in the options object passed to the to request() method to invoke the XML/A Discover method on the server to return the DBSCHEMASCHEMATA schema rowset. The requestType option applies only to Discover requests. Instead of passing this requestType yourself, consider calling the discoverDBSchemata() method. The discoverDBColumns() method issues a request to invoke the Discover method using DBSCHEMASCHEMATA as requestType.

Default: <code>DBSCHEMA_SCHEMATA</code>

DBSCHEMA_TABLES

String final static

Defined in src/Xmla.js:831

Can be used as value for the requestType option in the options object passed to the to request() method to invoke the XML/A Discover method on the server to return the DBSCHEMATABLES schema rowset. The requestType option applies only to Discover requests. Instead of passing this requestType yourself, consider calling the discoverDBTables() method. The discoverDBColumns() method issues a request to invoke the Discover method using DBSCHEMATABLES as requestType.

Default: <code>DBSCHEMA_TABLES</code>

DBSCHEMA_TABLES_INFO

String final static

Defined in src/Xmla.js:845

Can be used as value for the requestType option in the options object passed to the to request() method to invoke the XML/A Discover method on the server to return the DBSCHEMATABLESINFO schema rowset. The requestType option applies only to Discover requests. Instead of passing this requestType yourself, consider calling the discoverDBTablesInfo() method. The discoverDBTablesInfo() method issues a request to invoke the Discover method using DBSCHEMATABLESINFO as requestType.

Default: <code>DBSCHEMA_TABLES_INFO</code>

DISCOVER_DATASOURCES

String final static

Defined in src/Xmla.js:691

Can be used as value for the requestType option in the options object passed to the to request() method to invoke the XML/A Discover method on the server to return the DISCOVERDATASOURCES schema rowset. The requestType option applies only to Discover requests. Instead of passing this constant as requestType yourself, consider calling the discoverDataSources() method. The discoverDataSources() method passes DISCOVERDATASOURCES automatically as requestType for Discover requests.

Default: <code>DISCOVER_DATASOURCES</code>

DISCOVER_ENUMERATORS

String final static

Defined in src/Xmla.js:733

Can be used as value for the requestType option in the options object passed to the to request() method to invoke the XML/A Discover method on the server to return the DISCOVERENUMERATORS schema rowset. The requestType option applies only to Discover requests. Instead of passing this requestType yourself, consider calling the discoverEnumerators() method. The discoverSchemaRowsets() method issues a request to invoke the Discover method using DISCOVERSCHEMA_ROWSETS as requestType.

Default: <code>DISCOVER_ENUMERATORS</code>

DISCOVER_KEYWORDS

String final static

Defined in src/Xmla.js:747

Can be used as value for the requestType option in the options object passed to the to request() method to invoke the XML/A Discover method on the server to return the DISCOVERKEYWORDS schema rowset. The requestType option applies only to Discover requests. Instead of passing this requestType yourself, consider calling the discoverKeywords() method. The discoverKeywords() method issues a request to invoke the Discover method using DISCOVERKEYWORDS as requestType.

Default: <code>DISCOVER_KEYWORDS</code>

DISCOVER_LITERALS

String final static

Defined in src/Xmla.js:761

Can be used as value for the requestType option in the options object passed to the to request() method to invoke the XML/A Discover method on the server to return the DISCOVERLITERALS schema rowset. The requestType option applies only to Discover requests. Instead of passing this requestType yourself, consider calling the discoverLiterals() method. The discoverLiterals() method issues a request to invoke the Discover method using DISCOVERLITERALS as requestType.

Default: <code>DISCOVER_LITERALS</code>

DISCOVER_PROPERTIES

String final static

Defined in src/Xmla.js:705

Can be used as value for the requestType option in the options object passed to the to request() method to invoke the XML/A Discover method on the server to return the DISCOVERPROPERTIES schema rowset. The requestType option applies only to Discover requests. Instead of passing this requestType yourself, consider calling the discoverProperties() method. The discoverProperties() method passes DISCOVERPROPERTIES automatically as requestType for Discover requests.

Default: <code>DISCOVER_PROPERTIES</code>

DISCOVER_SCHEMA_ROWSETS

String final static

Defined in src/Xmla.js:719

Can be used as value for the requestType option in the options object passed to the to request() method to invoke the XML/A Discover method on the server to return the DISCOVERSCHEMAROWSETS schema rowset. The requestType option applies only to Discover requests. Instead of passing this requestType yourself, consider calling the discoverSchemaRowsets() method. The discoverProperties() method passes DISCOVER_PROPERTIES automatically as requestType for Discover requests.

Default: <code>DISCOVER_SCHEMA_ROWSETS</code>

EVENT_ALL

String final static

Defined in src/Xmla.js:1232

Unifies all method-specific and non method-specific events. This constant can be used as events array argument for the addListener() method.

Default: <code>[].concat(Xmla.EVENT_GENERAL, Xmla.EVENT_DISCOVER_ALL, Xmla.EVENT_EXECUTE_ALL)</code>

EVENT_DISCOVER

String final static

Defined in src/Xmla.js:1130

Indicates the discover event. This constant can be used as en entry in the events array argument for the addListener() method. The discover event is method-specific, and is fired before submitting a Discover request (see: discover()) to the server, but after firing the request event (see: EVENTDISCOVER). The EVENTDISCOVER event is cancelable: the handler function specified in the listener object passed to addListener should return a boolen, indicating whether the respective operation should be canceled.

Default: <code>discover</code>

EVENT_DISCOVER_ALL

String final static

Defined in src/Xmla.js:1198

Unifies all events specific for the Discover method. This constant can be used as events array argument for the addListener() method, or you can use array concatenation to combine it with other arrays of EVENT_XXX constants.

Default: <code>[EVENT_DISCOVER,EVENT_DISCOVER_SUCCESS,EVENT_DISCOVER_ERROR]</code>

EVENT_DISCOVER_ERROR

String final static

Defined in src/Xmla.js:1164

Indicates the discovererror event. This constant can be used as en entry in the events array argument for the addListener() method. The discovererror is method-specific and fired when an error occurs while sending an Discover request, or receiving a response to an Discoverdiscover()). This is event is not cancelable.

Default: <code>discovererror</code>

EVENT_DISCOVER_SUCCESS

String final static

Defined in src/Xmla.js:1148

Indicates the discoversuccess event. This constant can be used as en entry in the events array argument for the addListener() method. The discoversuccess event is method-specific and fired only after receiving and processing a normal response (that is, a response that does not contain a SoapFault) to an incovation of the XML/A Discover method (see: discover()). This is event is not cancelable.

Default: <code>discoversuccess</code>

EVENT_ERROR

String final static

Defined in src/Xmla.js:1066

Indicates the error event. This constant can be used as en entry in the events array argument for the addListener() method. The error is fired when an error occurs while sending a request or receiving a response. The error event is not method-specific, and fires for errors encountered during both Execute as well as Discover method invocations. This is event is not cancelable.

Default: <code>error</code>

EVENT_EXECUTE

String final static

Defined in src/Xmla.js:1081

Indicates the execute event. This constant can be used as en entry in the events array argument for the addListener() method. The execute event is method-specific, and is fired before submitting an Execute request (see: execute()) to the server, but after firing the request event (see: EVENTREQUEST). The EVENTEXECUTE event is cancelable: the handler function specified in the listener object passed to addListener should return a boolen, indicating whether the respective operation should be canceled.

Default: <code>execute</code>

EVENT_EXECUTE_ALL

String final static

Defined in src/Xmla.js:1215

Unifies all events specific for the Execute method. This constant can be used as events array argument for the addListener() method, or you can use array concatenation to combine it with other arrays of EVENT_XXX constants.

Default: <code>[EVENT_EXECUTE,EVENT_EXECUTE_SUCCESS,EVENT_EXECUTE_ERROR]</code>

EVENT_EXECUTE_ERROR

String final static

Defined in src/Xmla.js:1115

Indicates the executeerror event. This constant can be used as en entry in the events array argument for the addListener() method. The executeerror event is method-specific and fired when an error occurs while sending an Execute request, or receiving a response to an Executeexecute()). This is event is not cancelable.

Default: <code>executeerror</code>

EVENT_EXECUTE_SUCCESS

String final static

Defined in src/Xmla.js:1099

Indicates the executesuccess event. This constant can be used as en entry in the events array argument for the addListener() method. The executesuccess event is method-specific and fired only after receiving and processing a normal response (that is, a response that does not contain a SoapFault) to an incovation of the XML/A Execute method (see: execute()). This is event is not cancelable.

Default: <code>executesuccess</code>

EVENT_GENERAL

String final static

Defined in src/Xmla.js:1180

Unifies all general events, that is, all events that are not method-specific. This constant can be used as events array argument for the addListener() method, or you can use array concatenation to combine it with other arrays of EVENT_XXX constants. This constant is especially intended for asyncronous handling of Schema rowset data.

Default: <code>[EVENT_REQUEST,EVENT_SUCCESS,EVENT_ERROR]</code>

EVENT_REQUEST

String final static

Defined in src/Xmla.js:1028

Indicates the request event. This constant can be used as en entry in the events array argument for the addListener() method. The request event is the first event that is fired before submitting a request (see: request()) to the server, and before firing the method-specific request events (see EVENTEXECUTE and EVENTDISCOVER). The request event itself is not method-specific, and fires for Execute as well as Discover requests. The EVENT_REQUEST event is cancelable: the handler function specified in the listener object passed to addListener should return a boolen, indicating whether the respective operation should be canceled.

Default: <code>request</code>

EVENT_SUCCESS

String final static

Defined in src/Xmla.js:1048

Indicates the success event. This constant can be used as en entry in the events array argument for the addListener() method. The success event is the last event that is fired after receiving and processing a normal response (that is, a response that does not contain an XML/A SoapFault), after firing the method-specific success events (see EVENTEXECUTESUCCESS and EVENTDISCOVERSUCCESS). The success event is not method-specific, and fires for Execute as well as Discover responses. This is event is not cancelable.

Default: <code>success</code>

listeners

Object protected

Defined in src/Xmla.js:1467

This object stores listeners. Each key is a listener type (see the static final EVENT_XXX constants), each value is an array of listener objects that are subscribed to that particular event.

Default: <pre> { &nbsp; "request": [] &nbsp;, "succss": [] &nbsp;, "error": [] &nbsp;, "discover": [] &nbsp;, "discoversuccss": [] &nbsp;, "discovererror": [] &nbsp;, "execute": [] &nbsp;, "executesuccss": [] &nbsp;, "executeerror": [] }</pre>

MDSCHEMA_ACTIONS

String final static

Defined in src/Xmla.js:860

Can be used as value for the requestType option in the options object passed to the to request() method to invoke the XML/A Discover method on the server to return the MDSCHEMAACTIONS schema rowset. The requestType option applies only to Discover requests. Instead of passing this requestType yourself, consider calling the discoverMDActions() method. The discoverMDActions() method issues a request to invoke the Discover method using MDSCHEMAACTIONS as requestType.

Default: <code>MDSCHEMA_ACTIONS</code>

MDSCHEMA_CUBES

String final static

Defined in src/Xmla.js:875

Can be used as value for the requestType option in the options object passed to the to request() method to invoke the XML/A Discover method on the server to return the MDSCHEMACUBES schema rowset. The requestType option applies only to Discover requests. Instead of passing this requestType yourself, consider calling the discoverMDCubes() method. The discoverMDCubes() method issues a request to invoke the Discover method using MDSCHEMACUBES as requestType.

Default: <code>MDSCHEMA_CUBES</code>

MDSCHEMA_DIMENSIONS

String final static

Defined in src/Xmla.js:892

Can be used as value for the requestType option in the options object passed to the to request() method to invoke the XML/A Discover method on the server to return the MDSCHEMADIMENSIONS schema rowset. The requestType option applies only to Discover requests. Instead of passing this requestType yourself, consider calling the discoverMDDimensions() method. The discoverMDDimensions() method issues a request to invoke the Discover method using MDSCHEMADIMENSIONS as requestType.

Default: <code>MDSCHEMA_DIMENSIONS</code>

MDSCHEMA_FUNCTIONS

String final static

Defined in src/Xmla.js:909

Can be used as value for the requestType option in the options object passed to the to request() method to invoke the XML/A Discover method on the server to return the MDSCHEMAFUNCTIONS schema rowset. The requestType option applies only to Discover requests. Instead of passing this requestType yourself, consider calling the discoverMDFunctions() method. The discoverMDFunctions() method issues a request to invoke the Discover method using MDSCHEMAFUNCTIONS as requestType.

Default: <code>MDSCHEMA_FUNCTIONS</code>

MDSCHEMA_HIERARCHIES

String final static

Defined in src/Xmla.js:926

Can be used as value for the requestType option in the options object passed to the to request() method to invoke the XML/A Discover method on the server to return the MDSCHEMAHIERARCHIES schema rowset. The requestType option applies only to Discover requests. Instead of passing this requestType yourself, consider calling the discoverMDHierarchies() method. The discoverMDHierarchies() method issues a request to invoke the Discover method using MDSCHEMAHIERARCHIES as requestType.

Default: <code>MDSCHEMA_HIERARCHIES</code>

MDSCHEMA_LEVELS

String final static

Defined in src/Xmla.js:943

Can be used as value for the requestType option in the options object passed to the to request() method to invoke the XML/A Discover method on the server to return the MDSCHEMALEVELS schema rowset. The requestType option applies only to Discover requests. Instead of passing this requestType yourself, consider calling the discoverMDLevels() method. The discoverMDLevels() method issues a request to invoke the Discover method using MDSCHEMALEVELS as requestType.

Default: <code>MDSCHEMA_LEVELS</code>

MDSCHEMA_MEASURES

String final static

Defined in src/Xmla.js:960

Can be used as value for the requestType option in the options object passed to the to request() method to invoke the XML/A Discover method on the server to return the MDSCHEMAMEASURES schema rowset. The requestType option applies only to Discover requests. Instead of passing this requestType yourself, consider calling the discoverMDMeasures() method. The discoverMDMeasures() method issues a request to invoke the Discover method using MDSCHEMAMEASURES as requestType.

Default: <code>MDSCHEMA_MEASURES</code>

MDSCHEMA_MEMBERS

String final static

Defined in src/Xmla.js:977

Can be used as value for the requestType option in the options object passed to the to request() method to invoke the XML/A Discover method on the server to return the MDSCHEMAMEMBERS schema rowset. The requestType option applies only to Discover requests. Instead of passing this requestType yourself, consider calling the discoverMDMembers() method. The discoverMDMembers() method issues a request to invoke the Discover method using MDSCHEMAMEMBERS as requestType.

Default: <code>MDSCHEMA_MEMBERS</code>

MDSCHEMA_PROPERTIES

String final static

Defined in src/Xmla.js:994

Can be used as value for the requestType option in the options object passed to the to request() method to invoke the XML/A Discover method on the server to return the MDSCHEMAPROPERTIES schema rowset. The requestType option applies only to Discover requests. Instead of passing this requestType yourself, consider calling the discoverMDProperties() method. The discoverMDProperties() method issues a request to invoke the Discover method using MDSCHEMAPROPERTIES as requestType.

Default: <code>MDSCHEMA_PROPERTIES</code>

MDSCHEMA_SETS

String final static

Defined in src/Xmla.js:1011

Can be used as value for the requestType option in the options object passed to the to request() method to invoke the XML/A Discover method on the server to return the MDSCHEMASETS schema rowset. The requestType option applies only to Discover requests. Instead of passing this requestType yourself, consider calling the discoverMDSets() method. The discoverMDSets() method issues a request to invoke the Discover method using MDSCHEMASETS as requestType.

Default: <code>MDSCHEMA_SETS</code>

METHOD_DISCOVER

String final static

Defined in src/Xmla.js:662

Can be used as value for the method option in the options object passed to the request() method to invoke the XML/A Discover method on the server. Instead of explicitly setting the method yourself, consider using the discover() method. The discover() method automatically sets the method option to METHOD_DISCOVER.

Default: <code>Discover</code>

METHOD_EXECUTE

String final static

Defined in src/Xmla.js:674

Can be used as value for the method option property in the options objecct passed to the request() method to invoke the XML/A Execute method on the server. Instead of explicitly setting the method yourself, consider using the execute() method. The execute() method automatically sets the method option to METHOD_EXECUTE.

Default: <code>Discover</code>

PROP_AXISFORMAT

String final static

Defined in src/Xmla.js:1333

Can be used as key in the properties member of the options object passed to the execute() method to specify the XML/A AxisFormat property. The XML/A AxisFormat property specifies how the client wants to receive the multi-dimensional resultset of a MDX query. Valid values for the AxisFormat property are available as the static final properties PROPAXISFORMATTUPLE, PROPAXISFORMATCLUSTER, PROPAXISFORMATCUSTOM.

Default: <code>AxisFormat</code>

PROP_AXISFORMAT_CLUSTER

String final static

Defined in src/Xmla.js:1363

Can be used as value for the AxisFormat XML/A property (see: PROP_AXISFORMAT) in invocations of the Execute method (see: execute()).

Default: <code>ClusterFormat</code>

PROP_AXISFORMAT_CUSTOM

String final static

Defined in src/Xmla.js:1376

Can be used as value for the AxisFormat XML/A property (see: PROP_AXISFORMAT) in invocations of the Execute method (see: execute()).

Default: <code>CustomFormat</code>

PROP_AXISFORMAT_TUPLE

String final static

Defined in src/Xmla.js:1350

Can be used as value for the AxisFormat XML/A property (see: PROP_AXISFORMAT) in invocations of the Execute method (see: execute()).

Default: <code>TupleFormat</code>

PROP_Catalog

String final static

Defined in src/Xmla.js:1265

Can be used as key in the properties member of the options object passed to the execute() method to specify the XML/A Catalog property. The XML/A Catalog spefifies where to look for cubes that are referenced in th MDX statment. Valid values for the Catalog should be obtained by querying the CATALOGNAME of the DBSCHEMACATALOGS rowset (see discoverCatalogs()).

Default: <code>Catalog</code>

PROP_CONTENT

String final static

Defined in src/Xmla.js:1390

Can be used as key in the properties member of the options object passed to the request() method to specify the XML/A Content property. The XML/A Content property specifies whether to return data and/or XML Schema metadata by the Discover and Execute invocations. Valid values for the Content property are available as the static final properties PROPCONTENTDATA, PROPCONTENTNONE, PROPCONTENTSCHEMA, PROPCONTENTSCHEMADATA.

Note: This key is primarily intended for clients that use the low-level request() method. You should not set this property when calling the discover() method, the execute() method, or any of the discoverXXX() methods.

Default: <code>Content</code>

PROP_CONTENT_DATA

String final static

Defined in src/Xmla.js:1413

Can be used as value for the XML/A Content property (see: PROP_CONTENT). This value specifies that the response should contain only data, but no XML Schema metadata.

As the Xmla class relies on the XML Schema metadata to construct Rowset and Resultset instances, this option is primarily useful if you know how to process the XML response directly.

Default: <code>Data</code>

PROP_CONTENT_NONE

String final static

Defined in src/Xmla.js:1428

Can be used as value for the XML/A Content property (see: PROP_CONTENT). This value specifies that the response should contain neither data nor XML Schema metadata. This is useful to check the validity of the request.

Default: <code>None</code>

PROP_CONTENT_SCHEMA

String final static

Defined in src/Xmla.js:1441

Can be used as value for the XML/A Content property (see: PROP_CONTENT). This value specifies that the response should only return XML Schema metadata, but no data.

Default: <code>Schema</code>

PROP_CONTENT_SCHEMADATA

String final static

Defined in src/Xmla.js:1453

Can be used as value for the XML/A Content property (see: PROP_CONTENT). This value specifies that the response should return both data as well as XML Schema metadata.

Default: <code>SchemaData</code>

PROP_DATASOURCEINFO

String final static

Defined in src/Xmla.js:1248

Can be used as key in the properties member of the options object passed to the request() method to specify the XML/A DataSourceInfo property. The XML/A DataSourceInfo, together with the XML/A service URL are required to connect to a particular OLAP datasource. Valid values for the DataSourceInfo as well as the corresponding URL should be obtained by querying the DataSourceInfo and URL columns of the DISCOVER_DATASOURCES rowset respectively (see discoverDataSources()).

Default: <code>DataSourceInfo</code>

PROP_FORMAT

String final static

Defined in src/Xmla.js:1283

Can be used as key in the properties member of the options object passed to the execute() method to specify the XML/A Format property. This property controls the structure of the resultset.

Default: <code>Format</code>

PROP_FORMAT_MULTIDIMENSIONAL

String final static

Defined in src/Xmla.js:1313

Can be used as value for the execute() method. When used, this specifies that the multidimensional resultset should be returned in a multidimensional format. Currently, Xmla4js does not provide a class to represent the resultset in this format. However, you can access the results as xml through the responseText and responseXML properties.

Default: <code>Multidimensional</code>

PROP_FORMAT_TABULAR

String final static

Defined in src/Xmla.js:1296

Can be used as value for the execute() method. When used, this specifies that the multidimensional resultset should be returned in a tabular format, causeing the multidimensional resultset to be represented with an instance of the Xmla.Rowset class.

Default: <code>Tabular</code>

response

Xmla.Rowset | Xmla.Dataset

Defined in src/Xmla.js:1497

This property is set to null right before sending an XML/A request. When a successfull response is received, it is processed and the response object is assigned to this property. The response object is either a Rowset (after a successful invocation of XML/A Discover method, see: discover()) or a Resultset (after a successful invocation of the XML/A Execute method, see: executte()) instance.

If you are interested in processing the raw response XML, see responseXML and responseText.

Note that it is not safe to read this property immediately after doing an asynchronous request. For asynchronous requests, you can read this property by the time the XXX_SUCCESS event handlers are notified (until it is set to null again by a subsequent request).

Default: <code>null</code>

responseText

String

Defined in src/Xmla.js:1517

This property is set to null right before sending an XML/A request. When a successfull response is received, the XML response is stored to this property as plain text.

If you are interested in processing a DOM document rather than the raw XML text, see the responseXML property.

If you are interested in traversing the dataset returned in the XML/A response, see the response property.

Note that it is not safe to read this property immediately after doing an asynchronous request. For asynchronous requests, you can read this property by the time the XXX_SUCCESS event handlers are notified (until it is set to null again by a subsequent request).

Default: <code>null</code>

responseXML

DOMDocument deprecated

Defined in src/Xmla.js:1535

This property is set to null right before sending an XML/A request. When a successfull response is received, the XML response is stored to this property as a DOM Document.

If you are interested in processing the raw XML text rather than a DOM document, see the responseText property.

If you are interested in traversing the dataset returned in the XML/A response, see the response property.

Note that it is not safe to read this property immediately after doing an asynchronous request. For asynchronous requests, you can read this property by the time the XXX_SUCCESS event handlers are notified (until it is set to null again by a subsequent request).

Default: <code>null</code>

soapMessage

String

Defined in src/Xmla.js:1489

The soap message sent in the last request to the server.

Default: <code>null</code>