" _blank ",new Array( new Array( "ui.object", "") , new Array("", "") ),"execute" ),"" ,"" ,"" ,"" ,"" ,"" ,getCvId() true false ,"" ,"" var f = document.multiDrillForm; f["ui.action"].value = "view"; f["ui.object"].value = "defaultOutput(,\"\",\"\")"; f["ui.action"].value = "execute"; f["ui.object"].value = ""; f["ui.object"].value = ""; f["run.outputFormat"].value = "" f["run.outputLocale"].value = "" f["run.prompt"].value = "true"; var formField; formField = document.createElement("input"); formField.setAttribute("type", "hidden"); formField.setAttribute("name", ""); formField.setAttribute("value", ""); f.appendChild(formField); formField = document.createElement("input"); formField.setAttribute("type", "hidden"); formField.setAttribute("name", ""); formField.setAttribute("value", ""); f.appendChild(formField); var bookMarkFormField = document.createElement("input"); bookMarkFormField.setAttribute("type", "hidden"); bookMarkFormField.setAttribute("name", "bookmark"); bookMarkFormField.setAttribute("value", ""); if (getCvId() != "") { } else {f.submit();} var f = document.multiDrillForm; f.drillTargets.value = "<rvDrillTargets>" + "" + "</rvDrillTargets>"; if (getCvId() != "") { } else {f.submit();} // window.location.href would look similar to the following // http://localhost/ibmcognos/bidev/v1/disp/repository/sid/cm/oid/id68a0f47a5a24cfd98a120bdba15882b/content // we want to get everything from the beginning of the string to /v1 var sPath = window.location.href.substring(0,window.location.href.indexOf("/v1")); // sPath now equals // http://localhost/ibmcognos/bidev // tack on the classic viewer perspective sPath += "/?perspective=classicviewer"; // we want to use the alternative drill path sPath += "&altDrillFlag=true"; // add the format (really for PDF so the perspective can react accordingly) sPath += "&format=" + document.multiDrillForm["run.outputFormat"].value; // add search path so that we can get the rest of the CM info for the perspective sPath += "&searchPath=" + document.multiDrillForm["ui.object"].value; // Give the form a unique name var v_sLabel = document.multiDrillForm.getAttribute("name") + Date.now().toString(); document.multiDrillForm.setAttribute("name", v_sLabel); // store the form (in string form) into the browser storage if (typeof(Storage) !== "undefined") { localStorage.setItem(v_sLabel, document.multiDrillForm.outerHTML); // put this unique identifer into the parameters to pass sPath += "&drillFormLabel=" + v_sLabel; } else { console.log("Sorry! No Web Storage support..."); } var parentWindow = window.parent ? window.parent : window; var __goto_win = parentWindow.open(sPath, "_blank"); // Only do this for legacy portal. Otherwise, let the viewer content view do the restore. if (parent == this || typeof parent.f_restorePDF != "function") { var historyStackIdx = 0; var oCV = null; try { oCV = eval("parent.oCV" + getCvId()); } catch(exception) { oCV = null; } if(oCV != null && typeof oCV.rvMainWnd != "undefined" && typeof oCV.m_viewerFragment == "undefined") { historyStackIdx -= (parent.history.length - oCV.rvMainWnd.m_browserHistoryIndex); } else { historyStackIdx -= 1; } setTimeout('history.go(' + historyStackIdx + ')',1); }