Utility APIs
cv.api. util
Constructor
Name | Description |
---|---|
new util() | Utility definition for cv.api class. |
Methods
Name | Description |
---|---|
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() |
---|
Utility definition for cv.api class. |
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'. |
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. |
Example
cv.api.util.parseMDXExpression("[Product].[Truck]") // Return Value: "Truck"