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).
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
- request
- setOptions
Properties
- DBSCHEMA_CATALOGS static
- DBSCHEMA_COLUMNS static
- DBSCHEMA_PROVIDER_TYPES static
- DBSCHEMA_SCHEMATA static
- DBSCHEMA_TABLES static
- DBSCHEMA_TABLES_INFO 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".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.
Instead of calling this method directly, consider calling
or one of the specialized discoverXXX() methods to obtain a particular schema rowset.
Parameters:
-
optionsObjectAn object whose properties convey the options for the XML/A
Discoverrequest.
Returns:
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
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:
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
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:
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
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:
-
optionsObjectAn object whose properties convey the options for the XML/A a
DBSCHEMA_COLUMNSrequest.
Returns:
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
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:
-
optionsObjectAn object whose properties convey the options for the XML/A a
DBSCHEMAPROVIDERTYPESrequest.
Returns:
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
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:
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
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:
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
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:
-
optionsObjectAn object whose properties convey the options for the XML/A a
DBSCHEMATABLESINFOrequest.
Returns:
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
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:
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
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:
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
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:
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
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:
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
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:
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
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:
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
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:
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
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:
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
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:
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
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:
-
optionsObjectAn object whose properties convey the options for the XML/A a
MDSCHEMA_MEASURESrequest.
Returns:
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
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:
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
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:
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
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:
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
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:
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
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:
-
optionsObjectAn object whose properties convey the options for the XML/A a
DISCOVERSCHEMAROWSETSrequest.
Returns:
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
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:
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 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:
-
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 PROPFORMATTABULAR 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:
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:
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 passsuccess,errorandcallbackcallback functions. Callbacks are described in more detail below.false: The request is performed synchronously: the call torequest()will block until it receives a response from the XML/A server or times out. In this case, therequest()method returns aRowset(forDiscoverrequests) or aResultset(forExecuterequests). If you registered any listeners (seeaddListener()), 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 asuccessand/orerrorhandler, thencallbackwill 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
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.
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:
-
optionsObjectAn object whose properties convey the options for the request.
Returns:
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 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
The soap message sent in the last request to the server.
Default: <code>null</code>
