// 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 edit title // action pane for PowerPlay Studio. // The functions handle any minor browser differences. var caretPos; function onOK() { topparent.clearActionPane(); var userTitle = new String(getUserEditTitle()); //remove any tabs var rExp = new RegExp("\t", "gi"); userTitle = userTitle.replace(rExp, " "); userTitle = translateVariables(userTitle, true); var command = 'IP:"' + userTitle + '"'; topparent.getXtabFrame().doit(command); } function translateVariables(titleText, toInternal) { var selectBox = document.getElementById("Variable_select"); for (i=0;i= 0) { text = localizedVars[selectBox.selectedIndex]; } if (textArea.createTextRange && textArea.caretPos) { textArea.caretPos.text = text; } else { textArea.value = textArea.value + text; } if (textArea.caretPos) { textArea.caretPos.select(); } textArea.focus(); storeCaret(); } function init() { if (window.name == "ActionPane") topparent.openActionPane(); ContextMenu.initialize(true,false); // adjust the size of the action pane to accomodate the display option pane. if (topparent.getGlobal("nn7")) topparent.setActionPaneHeight("283"); else topparent.setActionPaneHeight("270"); if (parent.isXtabStillLoading()) { setTimeout('initEditTitle()', 50); return; } var textArea = document.getElementById("Title_textarea"); textArea.value = translateVariables(textArea.value, false); var selectBox = document.getElementById("Variable_select"); if (document.getElementById("Title_radio").checked) { textArea.focus(); storeCaret(); } else { selectBox.focus(); } selectBox.options[0].selected = true; } function updateRadioButtons() { document.getElementById("Title_radio").checked = true; } function editTitleArrowMouseOver(table) { document.getElementById("insertVarArrowImg").className = "customSubsetsArrowButtonRollover"; document.getElementById("insertVarArrowLink").className = "editTitleLinksRollover"; } function editTitleArrowMouseOut(table) { document.getElementById("insertVarArrowImg").className = "customSubsetsArrowButton"; document.getElementById("insertVarArrowLink").className = "editTitleLinks"; } function editTitleArrowMouseDown(table) { document.getElementById("insertVarArrowImg").className = "customSubsetsArrowButtonPressed"; document.getElementById("insertVarArrowLink").className = "editTitleLinksRollover"; } function editTitleArrowMouseUp(table) { document.getElementById("insertVarArrowImg").className = "customSubsetsArrowButtonRollover"; document.getElementById("insertVarArrowLink").className = "editTitleLinksRollover"; }