12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- // Licensed Materials - Property of IBM
- //
- // IBM Cognos Products: pps
- //
- // (C) Copyright IBM Corp. 2005, 2017
- //
- // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- // This forms the javascript functions used for the Suppression options
- // action pane for PowerPlay Studio - generic UI.
- // The functions handle any minor browser differences.
- var SUPPRESS_ZERO_VALUES = 1;
- var SUPPRESS_DIVISION_BY_ZERO = 2;
- var SUPPRESS_MISSING_VALUES = 4;
- var SUPPRESS_OVERFLOW_VALUES = 8;
- var isSplitPane = parent.parent.getWindow().name == "FX1" ;
- function getParentFX() {
- if (isSplitPane) {
- return parent.FX2;
- } else {
- return parent.FX;
- }
- }
- function closeit() {
- getParentFX().doit('MD');
- }
- function onOK() {
- applySuppressOptions(true)
- }
- function applySuppressOptions(forceClose)
- {
- var optionsValue = 0;
- // Zero values - 1
- // Division by zero - 2
- // Missing values - 4
- // Overflow values - 8
- var suppressZeroValues = document.getElementById("zero");
- if( suppressZeroValues.checked )
- optionsValue += SUPPRESS_ZERO_VALUES;
- var suppressDivisionByZero = document.getElementById("dividebyzero");
- if( suppressDivisionByZero.checked )
- optionsValue += SUPPRESS_DIVISION_BY_ZERO;
- var suppressMissingValues = document.getElementById("missing");
- if( suppressMissingValues.checked )
- optionsValue += SUPPRESS_MISSING_VALUES;
- var suppressOverflowValues = document.getElementById("overflow");
- if( suppressOverflowValues.checked )
- optionsValue += SUPPRESS_OVERFLOW_VALUES;
-
- command = "UO:" + optionsValue;
-
- if( forceClose )
- command += "\t\tMD";
- getParentFX().doit( command );
- }
|