/**************************************************************** ** Licensed Materials - Property of IBM ** ** BI and PM: qs ** ** (C) Copyright IBM Corp. 2001, 2015 ** ** US Government Users Restricted Rights - Use, duplication or ** disclosure restricted by GSA ADP Schedule Contract with IBM Corp. *****************************************************************/ // Copyright (C) 2008 Cognos ULC, an IBM Company. All Rights Reserved. // Cognos and the Cognos logo are trademarks of Cognos ULC (formerly Cognos Incorporated) in the United States and/or other countries. IBM and the IBM logo are trademarks of International Business Machines Corporation in the United States, or other countries, or both. Other company, product, or service names may be trademarks or service marks of others. var cfgValues = new Array(); function showMeTheValues(event) { if (typeof event != "undefined") { if (goApplicationManager.get("debugDumpAllowed") == true && event.shiftKey && event.ctrlKey) { switch (event.keyCode) { case 67: if (typeof showConfigValues == "function") showConfigValues(false); break; case 68: if (typeof showDialogValues == "function") showDialogValues(); break; case 69: if (typeof showConfigValues == "function") showConfigValues(true); break; case 82: if (typeof recordCommandsToggle == "function") recordCommandsToggle(); break; case 81: if (typeof pushCommandsToggle == "function") pushCommandsToggle(); break; } } else keydown(event); } }; function updateReportHasChanged(bChanged) { if (bChanged == null) { bChanged = false; } if (bChanged && typeof leavingQS === "function") { window.onbeforeunload = leavingQS; } else { window.onbeforeunload = null; } goApplicationManager.add("reportHasChanged", bChanged); }; function cfgSet(n, v) { cfgValues[n] = v; } function cfgGet(n) { return cfgValues[n]; } function cfgRemove(n) { delete cfgValues[n]; } function cfgIsArray(a) { return isArray(cfgValues[a]); }; function cfgIsValid(n) { return ( !(typeof cfgValues[n] == "undefined" || cfgValues[n] == null) ); }; function cfgPush(a, v) { if (!cfgIsArray(a)) cfgValues[a] = cfgMakeArray(a); addToArray(cfgValues[a], v); }; function cfgSetDefaultAt(i) { cfgSetAt("ColFormat", i, new Array("none")); }; function cfgSetAt(a, i, v) { if (!cfgIsArray(a)) cfgValues[a] = cfgMakeArray(a); insertInArrayAt(cfgValues[a], i, v); }; function cfgGetAt(a, i) { if (!cfgIsArray(a)) return null; return cfgValues[a][i]; }; function cfgPop(a, v) { if (!cfgIsArray(a)) return; var bRemoved=false; var size=cfgValues[a].length; for (var i=0;i 1) { var aNameValuePairs = sCookieValues.split('|'); for (var j = 0; j < aNameValuePairs.length; j++) { var aSplitPairs = aNameValuePairs[j].split(':'); if (aSplitPairs.length === 1) { var sName = aSplitPairs[0]; var sValue = sName; } else { var sName = aSplitPairs[0]; var sValue = aSplitPairs[1]; } retval[sCookieType][sName] = sValue; } } else { retval[sCookieType][sCookieType] = null; } } return retval; }; function AddCamInfo( sUrlParams ) { if ( typeof getConfigFrame == "function" ) { var cf = getConfigFrame(); if ( cf ) { var sCAMNS = cf.cfgGet("CAMNamespace"); if ( sCAMNS && typeof sUrlParams == "string" ) { sUrlParams += "&CAMNamespace=" + encodeURIComponent( sCAMNS ); } } } return sUrlParams; };