Cognos Report Studio:HTML标记问题

时间:2012-08-23 18:11:59

标签: javascript html cognos cognos-8

我正在使用cognos report studio,我在提示页面上出现错误。我让我的编码正常工作(我在空白页面上进行了测试),但我注意到左下方有一个黄色的解释点,这使我无法继续我想要做的事情。{{0} }

以下是截图:

错误似乎来自我在提示页面中的html标记。

这是我的编码:

<script type="text/javascript"> 
var theSpan = document.getElementById("FiscalYear"); 
var theSelect = theSpan.getElementsByTagName("select"); 
theSelect[0].options[2].selected=true; //This will make default value in prompt to be the first item after line, change the value '2' for other item 
theSelect[0].options[0].text = 'Fiscal Year'; 
listBoxBusinessDate.checkData(); 

</script>

我的错误应该来自那里,我无法弄清楚原因。关于它可能是什么的任何想法?感谢。

1 个答案:

答案 0 :(得分:1)

这是一个JavaScript错误。您尝试使用“listBoxBusinessDate”的变量为null / undefined,因此当您尝试在其上调用方法(.checkData())时,会出现此错误。

这个变量在哪里定义(它不在你提供的代码片段中,但可以在文件的前面定义)......?