// 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 display options // action pane for PowerPlay Studio. // The functions are Internet Explorer specific. function init() { topparent.openActionPane(); // adjust the size of the action pane to accomodate the display option pane. topparent.setActionPaneHeight("170"); ContextMenu.initialize(true,false); } function applySuppressOptions(forceClose) { if (forceClose) topparent.clearActionPane(); 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 += 1; var suppressDivisionByZero = document.getElementById("dividebyzero"); if( suppressDivisionByZero.checked ) optionsValue += 2; var suppressMissingValues = document.getElementById("missing"); if( suppressMissingValues.checked ) optionsValue += 4; var suppressOverflowValues = document.getElementById("overflow"); if( suppressOverflowValues.checked ) optionsValue += 8; command = "UO:" + optionsValue; //alert( command ); topparent.getXtabFrame().doit(command); } function onOK() { applySuppressOptions(true) }