| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 | 
							- // 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();
 
- 	ContextMenu.initialize(true,false);
 
- 	// adjust the size of the action pane to accomodate the display option pane.
 
- 	topparent.setActionPaneHeight("220");
 
- }
 
- function applyDisplayOptions (forceClose) {
 
- 	var hiddenForm = topparent.getXtabFrame().document.getElementById("fhidden");
 
- 	if(!hiddenForm) {
 
- 		return;
 
- 	}
 
- 	disableButton(document.getElementById("applyButton"));
 
- 	disableButton(document.getElementById("okButton"));
 
- 	var htmlToAppend = "";
 
- 	var command = "";
 
- 	// Show Values As...
 
- 	var valuesOption = document.getElementById("values_as_option");
 
- 	command += "OV:" + valuesOption[valuesOption.selectedIndex].value + "\t\t";
 
- 	// Currency....
 
- 	var currencyOption = document.getElementById("currency_option");
 
- 	if (currencyOption)
 
- 	command += "OD:" + currencyOption[currencyOption.selectedIndex].value + "\t\t";
 
- 	// Number of Rows....
 
- 	var numRowsOption = document.getElementById("numrows_option");
 
- 	command += "PR:" + numRowsOption.value + "\t\t";
 
-   	// Number of Columns....
 
- 	var numColsOption = document.getElementById("numcols_option");
 
- 	command += "PC:" + numColsOption.value + "\t\t";
 
- 	var hideCalcCats = document.getElementById("HideCalcs");
 
- 	var result; 
 
- 	if(hideCalcCats.checked)
 
- 	result = 1;
 
- 	else 
 
- 	result = 0;
 
- 	if(hiddenForm.PPS_CC == null) {
 
- 		if (result)
 
- 			command += "OPPS_CC" + "\t\t";			
 
- 	} else {
 
- 		if (result != hiddenForm.PPS_CC.value)
 
- 			command += "OPPS_CC" + "\t\t";			
 
- 	}
 
- 	var shortNames = document.getElementById("ShortNames");
 
- 	if(shortNames.checked)
 
- 	result = 1;
 
- 	else 
 
- 	result = 0;
 
- 	var dimTreeFrame = topparent.getDimTreeFrame();
 
- 	if(hiddenForm.SHN == null) {
 
- 	if (result){
 
- 		command += "OSHN";
 
- 		dimTreeFrame.toggleNames(result);
 
- 	}
 
- 	} else {
 
- 	if (result != hiddenForm.SHN.value) {
 
- 		command += "OSHN";
 
- 		dimTreeFrame.toggleNames(result);
 
- 	}
 
- 	}
 
- 	if(htmlToAppend.length > 0) {
 
- 	// set the form's display style to "none" to avoid the xtab shifting downwards. For some unknown reason, IE adjusts the view for this new
 
- 	// input object even though it is hidden.
 
- 	hiddenForm.style.display = "none";
 
- 	hiddenForm.innerHTML += htmlToAppend;
 
- 	}
 
- 	if (command != "")
 
- 	{
 
- 	if (forceClose)
 
- 		topparent.clearActionPane();
 
- 	topparent.getXtabFrame().doit(command);
 
- 	}
 
- 	
 
- 	return true;
 
- }
 
- function onOK() {
 
- 	applyDisplayOptions(true)
 
- }
 
- function processInput(hw) {
 
- 	if ((chartType == 1) || (chartType == 6)) {
 
- 	
 
- 	  if (hw == "h")
 
- 	    document.getElementById("WidthScaling").value = document.getElementById("HeightScaling").value;
 
- 	  else
 
- 	    document.getElementById("HeightScaling").value = document.getElementById("WidthScaling").value;
 
- 	}
 
- }
 
 
  |