123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- function init() {
- topparent.openActionPane();
- ContextMenu.initialize(true,false);
-
- 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 = "";
-
- var valuesOption = document.getElementById("values_as_option");
- command += "OV:" + valuesOption[valuesOption.selectedIndex].value + "\t\t";
-
- var currencyOption = document.getElementById("currency_option");
- if (currencyOption)
- command += "OD:" + currencyOption[currencyOption.selectedIndex].value + "\t\t";
-
- var numRowsOption = document.getElementById("numrows_option");
- command += "PR:" + numRowsOption.value + "\t\t";
-
- 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) {
-
-
- 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;
- }
- }
|