Utility APIs
The utility system definition for cv.api class (cv.api.util). Contains all utility related API calls.
Constructor
new util()
Utility definition for cv.api class. Contains all utility related API calls.
Methods
parseMDXExpression(formula, escapeHTML) : string
Given an MDX formula, parseMDXExpression returns the last token in the formula. For example, [Product].[Trucks] would return 'Trucks'.
Constructor Details
new util()
## Methods Details
parseMDXExpression(formula, escapeHTML) : string
Given an MDX formula, parseMDXExpression returns the last token in the formula. For example,[Product].[Trucks] would return 'Trucks'.- Since
5.4
Source
javascript/scripts/cv_api_util.js, line 317
Parameters
Returns
Example
cv.api.util.parseMDXExpression("[Product].[Truck]")
// Return Value: "Truck"
Name
Default Value
Summary
formula : string
This is the MDX formula to be parsed by the function.
escapeHTML : boolean
This is an optional parameter. If provided, the string parsed from the MDX expression will be returned with HTML reserved characters as escaped.
Name
Description
string
This is the MDX formula parsed as a string.
Last updated
Was this helpful?

