copyInstance(dim: PP.Mb.DimSource, callback: Function | PP.Delegate);
dim. Dictionary.
callback. Callback function.
The copyInstance method copies a dictionary.
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: