For the complete documentation index, see llms.txt. This page is also available as Markdown.

Utility APIs

The utility system definition for cv.api class (cv.api.util). Contains all utility related API calls.

Constructor

Name
Description

new util()

Utility definition for cv.api class. Contains all utility related API calls.

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.

  • Source

## 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.

Name
Description

string

This is the MDX formula parsed as a string.

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.

Last updated

Was this helpful?