Xmla Class
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).
The optional options parameter sets standard options for this Xmla instnace.
If ommitted, a copy of the defaultOptions will be used.
Constructor
Xmla
-
options
Parameters:
-
optionsObjectObject standard options
Item Index
Methods
- addListener
- discover
- discoverDataSources
- discoverDBCatalogs
- discoverDBColumns
- discoverDBProviderTypes
- discoverDBSchemata
- discoverDBTables
- discoverDBTablesInfo
- discoverEnumerators
- discoverKeywords
- discoverLiterals
- discoverMDActions
- discoverMDCubes
- discoverMDDimensions
- discoverMDFunctions
- discoverMDHierarchies
- discoverMDLevels
- discoverMDMeasures
- discoverMDMembers
- discoverMDProperties
- discoverMDSets
- discoverProperties
- discoverSchemaRowsets
- execute
- executeMultiDimensional
- executeTabular
- getResponseXML
- getXmlaSoapMessage
- request
- setOptions
Properties
- DBSCHEMA_CATALOGS static
- DBSCHEMA_COLUMNS static
- DBSCHEMA_PROVIDER_TYPES static
- DBSCHEMA_SCHEMATA static
- DBSCHEMA_TABLES static
- DBSCHEMA_TABLES_INFO static
- defaultOptions static
- DISCOVER_DATASOURCES static
- DISCOVER_ENUMERATORS static
- DISCOVER_KEYWORDS static
- DISCOVER_LITERALS static
- DISCOVER_PROPERTIES static
- DISCOVER_SCHEMA_ROWSETS static
- EVENT_ALL static
- EVENT_DISCOVER static
- EVENT_DISCOVER_ALL static
- EVENT_DISCOVER_ERROR static
- EVENT_DISCOVER_SUCCESS static
- EVENT_ERROR static
- EVENT_EXECUTE static
- EVENT_EXECUTE_ALL static
- EVENT_EXECUTE_ERROR static
- EVENT_EXECUTE_SUCCESS static
- EVENT_GENERAL static
- EVENT_REQUEST static
- EVENT_SUCCESS static
- listeners
- MDSCHEMA_ACTIONS static
- MDSCHEMA_CUBES static
- MDSCHEMA_DIMENSIONS static
- MDSCHEMA_FUNCTIONS static
- MDSCHEMA_HIERARCHIES static
- MDSCHEMA_LEVELS static
- MDSCHEMA_MEASURES static
- MDSCHEMA_MEMBERS static
- MDSCHEMA_PROPERTIES static
- MDSCHEMA_SETS static
- METHOD_DISCOVER static
- METHOD_EXECUTE static
- PROP_AXISFORMAT static
- PROP_AXISFORMAT_CLUSTER static
- PROP_AXISFORMAT_CUSTOM static
- PROP_AXISFORMAT_TUPLE static
- PROP_Catalog static
- PROP_CONTENT static
- PROP_CONTENT_DATA static
- PROP_CONTENT_NONE static
- PROP_CONTENT_SCHEMA static
- PROP_CONTENT_SCHEMADATA static
- PROP_DATASOURCEINFO static
- PROP_FORMAT static
- PROP_FORMAT_MULTIDIMENSIONAL static
- PROP_FORMAT_TABULAR static
- response
- responseText
- responseXML deprecated
- soapMessage
Methods
addListener
-
listener
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:
eventsstring|string[]REQUIRED. The event or events to listen to. You can specify a single event by using one of theEVENT_XXXstring constant values. You can specify multiple events by using an array ofEVENT_XXXstring constant values. You can also use one of the predefinedEVENT_XXXarray constant values, or use array concatenation and compose a custom list of event names. To listen to all events, either useEVENT_ALL, or otherwise thestringvalue"all". Below is the list of constants that may be used for the events or events property:- EVENT_ALL - All events. As a convenience, the string alias
"all"may also be used. - EVENT_DISCOVER - Fires before issueing a discover() request.
- EVENT_DISCOVER_ALL - All events related to discover() requests, including EVENT_DISCOVER, EVENT_DISCOVER_SUCCESS and EVENT_DISCOVER_ERROR.
- EVENT_DISCOVER_ERROR - Fired when an error occurred while servicing a discover() request.
- EVENT_DISCOVER_SUCCESS - Fired when a discover() request completes successfully.
- EVENT_ERROR - Fired when an error occurred while servicing any request.
- EVENT_EXECUTE - Fires before issueing a execute() request.
- EVENT_EXECUTE_ALL - All events related to execute() requests, including EVENT_EXECUTE, EVENT_EXECUTE_SUCCESS and EVENT_EXECUTE_ERROR.
- EVENT_EXECUTE_ERROR - Fired when an error occurred while servicing a execute() request.
- EVENT_EXECUTE_SUCCESS - Fired when a execute() request completes successfully.
- EVENT_GENERAL - All non-method specific events, including EVENT_DISCOVER, EVENT_SUCCESS and EVENT_ERROR.
- EVENT_REQUEST - Fires before issueing any request.
- EVENT_SUCCESS - Fires to indicate a request was successful.
- EVENT_ALL - All events. As a convenience, the string alias
eventstring|string[]Alias foreventshandlerfunction|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 thescopeproperty of the listener object. If noscopeis specified, a global function is assumed. Thehandlerfunction has the following arguments:eventNamestringThe 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 theEVENT_XXXconstants to check theeventName.eventDataObjectAn object that conveys event-specific data.xmlaXmlaA reference to thisXmlainstance 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 multipleXmlainstances without managing the context manually.
boolean. If the handler returnsfalsethe 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, andEVENT_REQUEST.handlersfunction|function[]Alias forhandlerscopeObjectOPTIONAL When specified, this object is used as thethisobject when calling the handler. When not specified, the globalwindowis used.
Parameters:
-
listenerObject | ArrayAn object that defines the events and the notification function to be called, or an array of such objects.
discover
-
options
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:DISCOVER_DATASOURCESDISCOVER_ENUMERATORSDISCOVER_KEYWORDSDISCOVER_LITERALSDISCOVER_PROPERTIESDISCOVER_SCHEMA_ROWSETS
DBSCHEMA_CATALOGSDBSCHEMA_COLUMNSDBSCHEMA_PROVIDER_TYPESDBSCHEMA_SCHEMATADBSCHEMA_TABLESDBSCHEMA_TABLES_INFO
MDSCHEMA_ACTIONSMDSCHEMA_CUBESMDSCHEMA_DIMENSIONSMDSCHEMA_FUNCTIONSMDSCHEMA_HIERARCHIESMDSCHEMA_MEASURESMDSCHEMA_MEMBERSMDSCHEMA_PROPERTIESMDSCHEMA_SETS
requestTypeare supported by the XML/A provider. To do that, refer to theSchemaNamecolumn of theDISCOVER_SCHEMA_ROWSETSrowset (see:discoverMDSchemaRowsets()).url{string} REQUIRED the url of the XML/A service or XML/A datasource. If the value for therequestTypeoption is one of the predefined XML/ADISCOVER_XXXconstants, 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 asrequestType. The XML/A standard defines a set of pre-defined properties. TheXmlaclass defines a static final property for each of these (see thePROP_XXXconstants). The list of all valid properties can be obtained from theDISCOVER_PROPERTIESschema rowset (seediscoverProperties()). Each javascript property of thepropertiesobject 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 therestrictionsobject 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 theRestrictionscolumn of theDISCOVER_SCHEMA_ROWSETSschema rowset. For a number of schema rowsets, the available restrictions are pre-defined. These are documented together with each particulardiscoverXXX()method. async{boolean} Determines how the request is performed:true: The request is performed asynchronously: the call torequest()will not block and return immediately. In this case, the return value of therequest()method is not defined, and the response must be received by registering a listener (seeaddListener()).false: The request is performed synchronously: the call toexecute()will block until it receives a response from the XML/A server or times out. In this case, aResultsetis returned that represents the multi-dimensional data set. If you registered anyREQUEST_XXXand/orEXECUTE_XXXlisteners (seeaddListener()), then these will still be notified.
discoverXXX() methods to obtain a particular schema rowset.
Parameters:
-
optionsObjectAn object whose properties convey the options for the XML/A
Discoverrequest.
Returns:
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: EVENT_SUCCESS) or discoversuccess (see: EVENT_DISCOVER_SUCCESS) events.
discoverDataSources
-
options
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:
|
Yes | No |
| AuthenticationMode | string |
Type of security offered by the provider
The following values are defined by the XML/A specification:
|
Yes | No |
Parameters:
-
optionsObjectAn object whose properties convey the options for the XML/A a
DISCOVER_DATASOURCESrequest.
Returns:
The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the DISCOVER_DATASOURCES 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: EVENT_SUCCESS) or discoversuccess (see: EVENT_DISCOVER_SUCCESS) events.
discoverDBCatalogs
-
options
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:
-
optionsObjectAn object whose properties convey the options for the XML/A a
DBSCHEMA_CATALOGSrequest.
Returns:
The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the DBSCHEMA_CATALOGS 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: EVENT_SUCCESS) or discoversuccess (see: EVENT_DISCOVER_SUCCESS) events.
discoverDBColumns
-
options
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 |
Parameters:
-
optionsObjectAn object whose properties convey the options for the XML/A a
DBSCHEMA_COLUMNSrequest.
Returns:
The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the DBSCHEMA_COLUMNS 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: EVENT_SUCCESS) or discoversuccess (see: EVENT_DISCOVER_SUCCESS) events.
discoverDBProviderTypes
-
options
Invokes the discover() method using
as value for the requestType,
and retrieves the DBSCHEMA_PROVIDER_TYPES 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:
-
optionsObjectAn object whose properties convey the options for the XML/A a
DBSCHEMA_PROVIDER_TYPESrequest.
Returns:
The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the DBSCHEMA_PROVIDER_TYPES 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: EVENT_SUCCESS) or discoversuccess (see: EVENT_DISCOVER_SUCCESS) events.
discoverDBSchemata
-
options
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:
-
optionsObjectAn object whose properties convey the options for the XML/A a
DBSCHEMA_SCHEMATArequest.
Returns:
The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the DBSCHEMA_SCHEMATA 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: EVENT_SUCCESS) or discoversuccess (see: EVENT_DISCOVER_SUCCESS) events.
discoverDBTables
-
options
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:
-
optionsObjectAn object whose properties convey the options for the XML/A a
DBSCHEMA_TABLESrequest.
Returns:
The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the DBSCHEMA_TABLES 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: EVENT_SUCCESS) or discoversuccess (see: EVENT_DISCOVER_SUCCESS) events.
discoverDBTablesInfo
-
options
Invokes the discover() method using
as value for the requestType,
and retrieves the DBSCHEMA_TABLES_INFO schema rowset.
...todo...
The rowset has the following columns:
| Column Name | Type | Description | Restriction | Nullable |
|---|
Parameters:
-
optionsObjectAn object whose properties convey the options for the XML/A a
DBSCHEMA_TABLES_INFOrequest.
Returns:
The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the DBSCHEMA_TABLES_INFO 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: EVENT_SUCCESS) or discoversuccess (see: EVENT_DISCOVER_SUCCESS) events.
discoverEnumerators
-
options
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:
-
optionsObjectAn object whose properties convey the options for the XML/A a
DISCOVER_ENUMERATORSrequest.
Returns:
The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the DISCOVER_ENUMERATORS 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: EVENT_SUCCESS) or discoversuccess (see: EVENT_DISCOVER_SUCCESS) events.
discoverKeywords
-
options
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:
-
optionsObjectAn object whose properties convey the options for the XML/A a
DISCOVER_KEYWORDSrequest.
Returns:
The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the DISCOVER_ENUMERATORS 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: EVENT_SUCCESS) or discoversuccess (see: EVENT_DISCOVER_SUCCESS) events.
discoverLiterals
-
options
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:
-
optionsObjectAn object whose properties convey the options for the XML/A a
DISCOVER_LITERALSrequest.
Returns:
The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the DISCOVER_LITERALS 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: EVENT_SUCCESS) or discoversuccess (see: EVENT_DISCOVER_SUCCESS) events.
discoverMDActions
-
options
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:
-
optionsObjectAn object whose properties convey the options for the XML/A a
MDSCHEMA_ACTIONSrequest.
Returns:
The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the MDSCHEMA_ACTIONS 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: EVENT_SUCCESS) or discoversuccess (see: EVENT_DISCOVER_SUCCESS) events.
discoverMDCubes
-
options
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:
-
optionsObjectAn object whose properties convey the options for the XML/A a
MDSCHEMA_CUBESrequest.
Returns:
The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the MDSCHEMA_CUBES 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: EVENT_SUCCESS) or discoversuccess (see: EVENT_DISCOVER_SUCCESS) events.
discoverMDDimensions
-
options
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 |
|
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:
-
optionsObjectAn object whose properties convey the options for the XML/A a
MDSCHEMA_DIMENSIONSrequest.
Returns:
The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the MDSCHEMA_DIMENSIONS 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: EVENT_SUCCESS) or discoversuccess (see: EVENT_DISCOVER_SUCCESS) events.
discoverMDFunctions
-
options
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:
-
optionsObjectAn object whose properties convey the options for the XML/A a
MDSCHEMA_FUNCTIONSrequest.
Returns:
The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the MDSCHEMA_FUNCTIONS 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: EVENT_SUCCESS) or discoversuccess (see: EVENT_DISCOVER_SUCCESS) events.
discoverMDHierarchies
-
options
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:
-
optionsObjectAn object whose properties convey the options for the XML/A a
MDSCHEMA_HIERARCHIESrequest.
Returns:
The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the MDSCHEMA_HIERARCHIES 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: EVENT_SUCCESS) or discoversuccess (see: EVENT_DISCOVER_SUCCESS) events.
discoverMDLevels
-
options
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:
| 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:
-
optionsObjectAn object whose properties convey the options for the XML/A a
MDSCHEMA_LEVELSrequest.
Returns:
The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the MDSCHEMA_LEVELS 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: EVENT_SUCCESS) or discoversuccess (see: EVENT_DISCOVER_SUCCESS) events.
discoverMDMeasures
-
options
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 | The name of the measure. | Yes | No |
| MEASURE_UNIQUE_NAME | string | The Unique name of the measure. For providers that generate unique names by qualification, each component of this name is delimited. | Yes | No |
| MEASURE_CAPTION | string | A label or caption associated with the measure. Used primarily for display purposes. If a caption does not exist, MEASURE_NAME is returned. | Yes | No |
| MEASURE_GUID | string | Not supported. | Yes | No |
| MEASURE_AGGREGATOR | int | An enumeration that indicates how the measure was derived. See http://msdn.microsoft.com/en-us/library/ms126250.aspx | Yes | No |
| DATA_TYPE | int | The data type of the measure. See: http://msdn.microsoft.com/en-us/library/windows/desktop/ms711251(v=vs.85).aspx | Yes | No |
| NUMERIC_PRECISION | int | The maximum precision of the property if the measure object's data type is exact numeric. NULL for all other property types. | Yes | No |
| NUMERIC_SCALE | int | The number of digits to the right of the decimal point if the measure object's type indicator is DBTYPE_NUMERIC or DBTYPE_DECIMAL. Otherwise, this value is NULL. | Yes | No |
| MEASURE_UNITS | int | Not supported. | Yes | No |
| DESCRIPTION | string | A human-readable description of the measure. NULL if no description exists. | Yes | No |
| EXPRESSION | string | An expression for the member. | Yes | No |
| MEASURE_IS_VISIBLE | boolean | A Boolean that always returns True. If the measure is not visible, it will not be included in the schema rowset. | Yes | No |
| LEVELS_LIST | string | A string that always returns NULL. | Yes | No |
| MEASURE_NAME_SQL_COLUMN_NAME | string | The name of the column in the SQL query that corresponds to the measure's name. | Yes | No |
| MEASURE_UNQUALIFIED_CAPTION | string | The name of the measure, not qualified with the measure group name. | Yes | No |
| MEASUREGROUP_NAME | string | The name of the measure group to which the measure belongs. | Yes | No |
| MEASURE_DISPLAY_FOLDER | string | The path to be used when displaying the measure in the user interface. Folder names will be separated by a semicolon. Nested folders are indicated by a backslash (). | Yes | No |
| DEFAULT_FORMAT_STRING | string | The default format string for the measure. | Yes | No |
Parameters:
-
optionsObjectAn object whose properties convey the options for the XML/A a
MDSCHEMA_MEASURESrequest.
Returns:
The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the MDSCHEMA_MEASURES 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: EVENT_SUCCESS) or discoversuccess (see: EVENT_DISCOVER_SUCCESS) events.
discoverMDMembers
-
options
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:
-
optionsObjectAn object whose properties convey the options for the XML/A a
MDSCHEMA_MEMBERSrequest.
Returns:
The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the MDSCHEMA_MEMBERS 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: EVENT_SUCCESS) or discoversuccess (see: EVENT_DISCOVER_SUCCESS) events.
discoverMDProperties
-
options
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:
-
optionsObjectAn object whose properties convey the options for the XML/A a
MDSCHEMA_PROPERTIESrequest.
Returns:
The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the MDSCHEMA_PROPERTIES 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: EVENT_SUCCESS) or discoversuccess (see: EVENT_DISCOVER_SUCCESS) events.
discoverMDSets
-
options
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:
-
optionsObjectAn object whose properties convey the options for the XML/A a
MDSCHEMA_SETSrequest.
Returns:
The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the MDSCHEMA_SETS 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: EVENT_SUCCESS) or discoversuccess (see: EVENT_DISCOVER_SUCCESS) events.
discoverProperties
-
options
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:
|
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:
-
optionsObjectAn object whose properties convey the options for the XML/A a
DISCOVER_DATASOURCESrequest.
Returns:
The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the DISCOVER_DATASOURCES 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: EVENT_SUCCESS) or discoversuccess (see: EVENT_DISCOVER_SUCCESS) events.
discoverSchemaRowsets
-
options
Invokes the discover() method using as value for the requestType,
and retrieves the DISCOVER_SCHEMA_ROWSETS 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:
-
optionsObjectAn object whose properties convey the options for the XML/A a
DISCOVER_SCHEMA_ROWSETSrequest.
Returns:
The result of the invoking the XML/A Discover method. For synchronous requests, an instance of a Xmla.Rowset that represents the DISCOVER_DATASOURCES 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: EVENT_SUCCESS) or discoversuccess (see: EVENT_DISCOVER_SUCCESS) events.
execute
-
options
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 theURLcolumn of theDISCOVER_DATASOURCESrowset (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 theDISCOVER_PROPERTIESschema rowset (seediscoverProperties()). Typically,execute()requires these properties:DataSourceInfoproperty- Identifies a data source managed by the XML/A server.
To specify this property, you can use the static final constant
PROP_DATASOURCEINFOas key in thepropertiesobject of theoptionsobject passed to theexecute()method. Valid values for this property should be obtained from theDataSourceInfocolumn of theDISCOVER_DATASOURCESschema rowset (see:discoverDataSources()). Note that the values for theDataSourceInfoproperty and theurlmust both be taken from the same row of theDISCOVER_DATASOURCESschema rowset. Catalogproperty- Identifies a catalog applicable for the datasource.
To specify this property, you can use the static final constant
PROP_CATALOGas key in thepropertiesobject of theoptionsobject passed to theexecute()method. Valid values for this property should be obtained from theCATALOG_NAMEcolumn of theDBSCHEMA_CATALOGSschema rowset (see:discoverDBCatalogs()).
async{boolean} Determines how the request is performed:true: The request is performed asynchronously: the call torequest()will not block and return immediately. In this case, the return value of therequest()method is not defined, and the response must be received by registering a listener (seeaddListener()).false: The request is performed synchronously: the call toexecute()will block until it receives a response from the XML/A server or times out. In this case, aResultsetis returned that represents the multi-dimensional data set. If you registered anyREQUEST_XXXand/orEXECUTE_XXXlisteners (seeaddListener()), then these will still be notified.
Parameters:
-
optionsObjectAn object whose properties convey the options for the XML/A
Executerequest.
Returns:
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
Sends an MDX query to a XML/A DataSource to invoke the <a href="#method_execute method using PROP_FORMAT_MULTIDIMENSIONAL as value for the PROP_FORMAT property. In this case, the result is available only as XML text or XML document in the responseText
and responseXML properties.
Parameters:
-
optionsObjectAn object whose properties convey the options for the XML/A
Executerequest.
executeTabular
-
options
Sends an MDX query to a XML/A DataSource to invoke the execute() method using PROP_FORMAT_TABULAR as value for the PROP_FORMAT property. This has the effect of obtaining the multi-dimensional resultset as a Rowset.
Parameters:
-
optionsObjectAn object whose properties convey the options for the XML/A
Executerequest.
Returns:
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
Returns:
getXmlaSoapMessage
-
options
Create a XML/A SOAP message that may be used as message body for a XML/A request
Parameters:
-
optionsObjectAn object representing the message. The object can have these properties:
Returns:
The SOAP message.
request
-
options
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.Rowsetclass. For these types of requests, you must pass therequestTypeoption to specify which schema rowset you want to obtain. In addition, you can specify arestrictionsobject that is used as filter criteria to restrict which rows will be returned in the rowset.Instead of explicitly passing
METHOD_DISCOVERas therequestType, you can also call thediscover()method (which requires you to explictly pass arequestTypeoption). Finally, you can also call one of thediscoverXXX()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.Datasetclass. For these types of requests, you must pass thestatementoption to specify the MDX query.Instead of explicitly passing
METHOD_EXECUTEas therequestType, you can also call theexecute()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 (likehttp://your.pentaho.server:8080/pentaho/Xmla?userid=joe&password=password) and use that to retrieve theDISCOVER_DATASOURCESrowset. Then, you can connect to a XML/A datasource using the value returned by theURLcolumn of theDISCOVER_DATASOURCESrowset (typically, you also have to set aDataSourceInfoproperty using the value found in theDataSourceInfocolumn of theDISCOVER_DATASOURCESrowset).-
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. TheXmlaclass defines a static final property for each of these (see thePROP_XXXconstants). The list of all valid properties can be obtained from theDISCOVER_PROPERTIESschema rowset (seediscoverProperties()). Each javascript property of thepropertiesobject is mapped literally to a XML/A property. async{boolean} Determines how the request is performed:true: The request is performed asynchronously: the call torequest()will not block and return immediately. In this case, the return value of therequest()method is not defined, and the response must be received by registering a listener. (seeaddListener()).As an alternative to using listeners, you can also pass <code>success</code>, <code>error</code> and <code>callback</code> callback functions. Callbacks are described in more detail below. </li> <li><code>false</code>: The request is performed synchronously: the call to <code>request()</code> will block until it receives a response from the XML/A server or times out. In this case, the <code>request()</code> method returns a <code>Rowset</code> (for <code>Discover</code> requests) or a <code>Resultset</code> (for <code>Execute</code> requests). If you registered any listeners (see <code><a href="#method_addListener">addListener()</a></code>), then these will still be notified of any events (such as receiving the response). </li> </ul> </li> <li><code>success</code> (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. </li> <li><code>error</code> (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. </li> <li><code>callback</code> (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 <code>success</code> and/or <code>error</code> handler, then <code>callback</code> will be called after those more specific handlers are called. </li>
optionsobject are method-specific.- The following options are applicable in case the
methodisMETHOD_DISCOVER:requestType- {string} Applies to the Discover method and indicates the kind of schema rowset to retrieve. You can use one of theDISCOVER_XXX,DBSCHEMA_XXXorMDSCHEMA_XXXconstants for this property. You can also dymically discover which values forrequestTypeare supported by the XML/A provider using theDISCOVER_SCHEMA_ROWSETSrowset (see:discoverMDSchemaRowsets()). See thediscover()method for more information.-
restrictions{Object} XML/A restrictions are used to filter the requested schema rowset. For more information on restrictions, see thediscover()method.
- The following options are applicable in case the
methodisMETHOD_EXECUTE:statement- {string} Applies to the Execute method and specifies the MDX query to send to the server.
discover()(to obtain a schema rowset),execute()(to issue a MDX query), or one of the specializeddiscoverXXX()methods (to obtain a particular schema rowset).
Parameters:
-
optionsObjectAn object whose properties convey the options for the request.
Returns:
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
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:
-
ObjectObject
Properties
DBSCHEMA_CATALOGS
String
final
static
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 DBSCHEMA_CATALOGS 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 DBSCHEMA_CATALOGS as requestType.
Default: DBSCHEMA_CATALOGS
DBSCHEMA_COLUMNS
String
final
static
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 DBSCHEMA_COLUMNS 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 DBSCHEMA_COLUMNS as requestType.
Default: DBSCHEMA_COLUMNS
DBSCHEMA_PROVIDER_TYPES
String
final
static
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 DBSCHEMA_PROVIDER_TYPES 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 DBSCHEMA_PROVIDER_TYPES as requestType.
Default: DBSCHEMA_PROVIDER_TYPES
DBSCHEMA_SCHEMATA
String
final
static
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 DBSCHEMA_SCHEMATA 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 DBSCHEMA_SCHEMATA as requestType.
Default: DBSCHEMA_SCHEMATA
DBSCHEMA_TABLES
String
final
static
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 DBSCHEMA_TABLES 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 DBSCHEMA_TABLES as requestType.
Default: DBSCHEMA_TABLES
DBSCHEMA_TABLES_INFO
String
final
static
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 DBSCHEMA_TABLES_INFO 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 DBSCHEMA_TABLES_INFO as requestType.
Default: <code>DBSCHEMA_TABLES_INFO</code>
defaultOptions
Object
static
These are the default options used for new Xmla instances in case no custom properties are set. It sets the following properties:
requestTimeoutint: 30000 - number of milliseconds before a request to the XML/A server will timeoutasyncboolean: false - determines whether synchronous or asynchronous communication with the XML/A server will be used.addFieldGettersboolean: true - determines whether Xml.Rowset objects will be created with a getter method for each column.forceResponseXMLEmulationboolean: false - determines whether to parse responseText or to use the native responseXML from the xhr object.
DISCOVER_DATASOURCES
String
final
static
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 DISCOVER_DATASOURCES 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 DISCOVER_DATASOURCES automatically as requestType for Discover requests.
Default: DISCOVER_DATASOURCES
DISCOVER_ENUMERATORS
String
final
static
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 DISCOVER_ENUMERATORS 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 DISCOVER_SCHEMA_ROWSETS as requestType.
Default: DISCOVER_ENUMERATORS
DISCOVER_KEYWORDS
String
final
static
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 DISCOVER_KEYWORDS 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 DISCOVER_KEYWORDS as requestType.
Default: DISCOVER_KEYWORDS
DISCOVER_LITERALS
String
final
static
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 DISCOVER_LITERALS 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 DISCOVER_LITERALS as requestType.
Default: DISCOVER_LITERALS
DISCOVER_PROPERTIES
String
final
static
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 DISCOVER_PROPERTIES 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 DISCOVER_PROPERTIES automatically as requestType for Discover requests.
Default: DISCOVER_PROPERTIES
DISCOVER_SCHEMA_ROWSETS
String
final
static
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 DISCOVER_SCHEMA_ROWSETS 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: DISCOVER_SCHEMA_ROWSETS
EVENT_ALL
String
final
static
Unifies all method-specific and non method-specific events.
This constant can be used as events array argument for the addListener() method.
Default: [].concat(Xmla.EVENT_GENERAL, Xmla.EVENT_DISCOVER_ALL, Xmla.EVENT_EXECUTE_ALL)
EVENT_DISCOVER
String
final
static
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: EVENT_DISCOVER).
The EVENT_DISCOVER 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: discover
EVENT_DISCOVER_ALL
String
final
static
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: [EVENT_DISCOVER,EVENT_DISCOVER_SUCCESS,EVENT_DISCOVER_ERROR]
EVENT_DISCOVER_ERROR
String
final
static
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: discovererror
EVENT_DISCOVER_SUCCESS
String
final
static
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: discoversuccess
EVENT_ERROR
String
final
static
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: error
EVENT_EXECUTE
String
final
static
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: EVENT_REQUEST).
The EVENT_EXECUTE 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: execute
EVENT_EXECUTE_ALL
String
final
static
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: [EVENT_EXECUTE,EVENT_EXECUTE_SUCCESS,EVENT_EXECUTE_ERROR]
EVENT_EXECUTE_ERROR
String
final
static
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: executeerror
EVENT_EXECUTE_SUCCESS
String
final
static
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: executesuccess
EVENT_GENERAL
String
final
static
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: [EVENT_REQUEST,EVENT_SUCCESS,EVENT_ERROR]
EVENT_REQUEST
String
final
static
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 EVENT_EXECUTE
and EVENT_DISCOVER).
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: request
EVENT_SUCCESS
String
final
static
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 EVENT_EXECUTE_SUCCESS
and EVENT_DISCOVER_SUCCESS).
The success event is not method-specific, and fires for Execute as well as Discover responses.
This is event is not cancelable.
Default: success
listeners
Object
protected
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> { "request": [] , "succss": [] , "error": [] , "discover": [] , "discoversuccss": [] , "discovererror": [] , "execute": [] , "executesuccss": [] , "executeerror": [] }</pre>
MDSCHEMA_ACTIONS
String
final
static
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 MDSCHEMA_ACTIONS 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 MDSCHEMA_ACTIONS as requestType.
Default: MDSCHEMA_ACTIONS
MDSCHEMA_CUBES
String
final
static
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
MDSCHEMA_CUBES 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
MDSCHEMA_CUBES as requestType.
Default: MDSCHEMA_CUBES
MDSCHEMA_DIMENSIONS
String
final
static
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
MDSCHEMA_DIMENSIONS 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
MDSCHEMA_DIMENSIONS as requestType.
Default: MDSCHEMA_DIMENSIONS
MDSCHEMA_FUNCTIONS
String
final
static
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
MDSCHEMA_FUNCTIONS 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
MDSCHEMA_FUNCTIONS as requestType.
Default: MDSCHEMA_FUNCTIONS
MDSCHEMA_HIERARCHIES
String
final
static
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
MDSCHEMA_HIERARCHIES 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
MDSCHEMA_HIERARCHIES as requestType.
Default: MDSCHEMA_HIERARCHIES
MDSCHEMA_LEVELS
String
final
static
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
MDSCHEMA_LEVELS 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
MDSCHEMA_LEVELS as requestType.
Default: MDSCHEMA_LEVELS
MDSCHEMA_MEASURES
String
final
static
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
MDSCHEMA_MEASURES 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
MDSCHEMA_MEASURES as requestType.
Default: MDSCHEMA_MEASURES
MDSCHEMA_MEMBERS
String
final
static
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
MDSCHEMA_MEMBERS 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
MDSCHEMA_MEMBERS as requestType.
Default: MDSCHEMA_MEMBERS
MDSCHEMA_PROPERTIES
String
final
static
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
MDSCHEMA_PROPERTIES 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
MDSCHEMA_PROPERTIES as requestType.
Default: MDSCHEMA_PROPERTIES
MDSCHEMA_SETS
String
final
static
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
MDSCHEMA_SETS 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
MDSCHEMA_SETS as requestType.
Default: MDSCHEMA_SETS
METHOD_DISCOVER
String
final
static
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: Discover
METHOD_EXECUTE
String
final
static
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: Discover
PROP_AXISFORMAT
String
final
static
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
PROP_AXISFORMAT_TUPLE,
PROP_AXISFORMAT_CLUSTER,
PROP_AXISFORMAT_CUSTOM.
Default: AxisFormat
PROP_AXISFORMAT_CLUSTER
String
final
static
Can be used as value for the AxisFormat XML/A property
(see: PROP_AXISFORMAT)
in invocations of the Execute method
(see: execute()).
Default: ClusterFormat
PROP_AXISFORMAT_CUSTOM
String
final
static
Can be used as value for the AxisFormat XML/A property
(see: PROP_AXISFORMAT)
in invocations of the Execute method
(see: execute()).
Default: CustomFormat
PROP_AXISFORMAT_TUPLE
String
final
static
Can be used as value for the AxisFormat XML/A property
(see: PROP_AXISFORMAT)
in invocations of the Execute method
(see: execute()).
Default: TupleFormat
PROP_Catalog
String
final
static
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 CATALOG_NAME of the DBSCHEMA_CATALOGS
rowset (see discoverCatalogs()).
Default: Catalog
PROP_CONTENT
String
final
static
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
PROP_CONTENT_DATA,
PROP_CONTENT_NONE,
PROP_CONTENT_SCHEMA,
PROP_CONTENT_SCHEMADATA.
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: Content
PROP_CONTENT_DATA
String
final
static
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: Data
PROP_CONTENT_NONE
String
final
static
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: None
PROP_CONTENT_SCHEMA
String
final
static
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: Schema
PROP_CONTENT_SCHEMADATA
String
final
static
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: SchemaData
PROP_DATASOURCEINFO
String
final
static
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: DataSourceInfo
PROP_FORMAT
String
final
static
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: Format
PROP_FORMAT_MULTIDIMENSIONAL
String
final
static
Can be used as value for the
<a href="#property_PROP_FORMAT>PROP_FORMAT key of the
properties member of the
options object passed to 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: Multidimensional
PROP_FORMAT_TABULAR
String
final
static
Can be used as value for the
<a href="#property_PROP_FORMAT>PROP_FORMAT key of the
properties member of the
options object passed to 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: Tabular
response
Xmla.Rowset | Xmla.Dataset
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: execute())
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: null
responseText
String
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: null
responseXML
DOMDocument
deprecated
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: null
soapMessage
String
The soap message sent in the last request to the server.
Default: null
