1

我正在寻找用于在 Cognos 中启用/禁用两个日期范围/日期提示的 javascript。

有没有人有任何 javascript 来禁用/启用两个日期范围提示?如果我选择 Date1 提示,则 Date2 提示必须变灰,反之亦然。

我正在使用 Cognos 8.3 SP2。

4

2 回答 2

0

First off, I'll admit I usually put jQuery into my Cognos reports nowadays. If you don't have the ability to put it into a local library, you can link to the Google hosting of it. You do this using an HTML Element with a script tag inside it (detailed explanation here).

Second, you can put HTML Element (div or span tags with an id) around the prompts. This gives you a way to easily select them.

Third, you bind a function to each one (using .click() ) which uses the .hide() jQuery function on the other.

于 2010-10-15T12:50:15.067 回答
0

如何根据从单选按钮或组合框中的选择来有条件地呈现一个或另一个日期提示?这样做可以确保只选择一个提示,并且不需要 javascript。

于 2010-03-04T15:56:42.670 回答