/**************************************************************** ** Licensed Materials - Property of IBM ** ** IBM Cognos Products: drill ** ** (C) Copyright IBM Corp. 2001, 2010 ** ** 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 (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated). function metaLogonWindow(parentWin) { var theURL = cfgGet("SCRIPT_ENGINE") + "?b_action=xts.run&m=portal/close.xts"; var expWnd = window.open(theURL,"LoginWnd","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=630,height=310"); cfgSet("expWnd", expWnd); cfgSet("winHdl", parentWin); setTimeout(mLPWindow, 1000); } function mLPWindow(){ var expWnd = cfgGet("expWnd"); if (expWnd && !expWnd.closed) setTimeout(mLPWindow, 1000); else { var winHdl = cfgGet("winHdl"); if (winHdl && winHdl.location) { // Use the current stored request that happened just before the login. doMetadataRequest(cfgGet("CURRENT_REQUEST")); } cfgRemove("winHdl"); cfgRemove("expWnd"); } } function metaErrorPage(error) { var errmessage = error[1] var errdetail = ""; for( i=2; i < error.length; i++) { errdetail += error[i].substring((error[i].indexOf(",")) + 1) + '\n'; } document.pform.m.value = prod_dir + "/tree_error.xts"; document.pform.errorText.value= errmessage.substring((errmessage.indexOf(",")) + 1); document.pform.errorDetail.value = errdetail; document.pform.ps_nav_op.value = "maintain"; document.pform.submit(); }