movePrivateDim(report: PP.Exp.EaxDocument, metadata: Object, callback: PP.Delegate);
report. Express report document.
metadata. Operation metadata.
callback. Callback function.
The movePrivateDim method moves private dimension up/down.
This method is intended for internal use.
The metadata parameter contains an object with the following fields:
metadata = { sourceKey: 10206, // Source key dimKey: 10200, // Private dimension key indexFrom: 1, // Index of position, with which dimension is moved indexTo: 0, // Index of position, to which dimension is moved swap: false // Indicates whether dimensions change places }
Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). At least two data sourced and two private dimensions must be set for express report.
// Get private dimension panel var items = expressBox.getPropertyBarView().getDimBarMasterView().getItems(); var dimBarPrivateMP = null; for (var i in items) { if (items[i].getTypeName() == "EaxDimBarPrivateMP") { dimBarPrivateMP = items[i]; } }; if (dimBarPrivateMP != null) { // Get dimension and source key var dim = eaxAnalyzer.getSourcePrivateDims(1)[1]; var key = dim.k; var sKey = eaxAnalyzer.getSourceKey(); // Move private var metadata = { sourceKey: sKey, dimKey: key, indexFrom: 1, indexTo: 0, swap: false }; // Initialize query of private dimension change eaxMbService.movePrivateDim(eaxAnalyzer, metadata); };
After executing the example express report private dimension is shifted to other place.
See also: