Utility APIs
Last updated
Was this helpful?
The utility system definition for cv.api class (cv.api.util). Contains all utility related API calls.
new util()
Utility definition for cv.api class. Contains all utility related API calls.
parseMDXExpression(formula, escapeHTML) : string
Given an MDX formula, parseMDXExpression returns the last token in the formula. For example, [Product].[Trucks] would return 'Trucks'.
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
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.
string
This is the MDX formula parsed as a string.
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.
Last updated
Was this helpful?
Was this helpful?
```
