我已将报告从 Cognos 10.2.2 迁移到 Cognos“11.0.13.1 LTS”版本。迁移到 11 后,管理提示页面的 java 脚本当前已损坏。这在 10.2.2 上运行良好且良好。在 Cognos 11 上是否进行了某些更改,或者我们正在使用的某些功能已被弃用或类似的东西。任何绳索都对诊断问题非常有用。我们还向 IBM 开了一张票,以确定发生了什么
我们尝试编辑代码并以不同的方式格式化代码,但仍然得到相同的行为。
var fW = (typeof getFormWarpRequest == "function" ? getFormWarpRequest() : document.forms["formWarpRequest"]);
if ( !fW || fW == undefined) { fW = ( formWarpRequest_THIS_ ? formWarpRequest_THIS_ : formWarpRequest_NS_ );}
var form = fW;
var ID=fW.elements["_oLstChoicesID"];
var SID=fW.elements["_oLstChoicesSID"];
ID.attachEvent("onclick", m_click);
function m_click()
{
for(i=0;i<fW._oLstChoicesID.length;i++)
{
fW._oLstChoicesID[i].selected=false;
fW._oLstChoicesID[i].disabled=true;
}
for(i=0;i<fW._oLstChoicesSID.length;i++)
{
fW._oLstChoicesSID[i].disabled=false;
}
}
我希望在选择 ID 中的任何元素时禁用第二个列表“SID”。