DimSrv.copyInstance

Syntax

copyInstance(dim: PP.Mb.DimSource, callback: Function | PP.Delegate);

Parameters

dim. Dictionary.

callback. Callback function.

Description

The copyInstance method copies a dictionary.

Example

Executing the example requires an instance of the DimSrv class named dimService (see DimSrv constructor). Get identifier of the copied dictionary moniker:

// Get identifier of a new dictionary moniker
var func = function(sender, args) {
    console.log("New moniker identifier: " + JSON.parse(args.ResponseText).ChangeDimSelectionResult.id);
}
dimService.copyInstance(dim, func);

New moniker identifier:

BEOPPLHHCLIHEOAELCMBNAMOHGFMOHMELJFGGDLLHLMFPGGH!M!S!SAHFHLDNLCLIHEOAEIACNMHOKCKPMJBFEDIGEBIPLEOCKHNEM

See also:

DimSrv