DimSrv.getAllElements

Syntax

getAllElements(dim: PP.Mb.DimSource, args: Object, callback: Function | PP.Delegate, errorCallback: Function | PP.Delegate);

Parameters

dim. Dictionary.

args. Operation arguments. An object must contain the following fields: selId - selection moniker; filter - element filter.

callback. Callback function.

errorCallback. Callback function on error.

Description

The getAllElements method loads all dictionary elements.

Example

Executing the example requires an instance of the DimSrv class named dimService (see DimSrv constructor). get the number of all dictionary elements:

// Get the number of all dictionary elements
var func = function(sender, args) {
    console.log("Number of elements: " + JSON.parse(args.ResponseText).GetDimElementsResult.totalCount);
}
dimService.getAllElements(dim, {}, func);

As a result the console displays the number of all dictionary elements:

Number of elements: 272

See also:

DimSrv