COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: sg24 on 13 Jan 2011 07:21:54 AM

Title: Remove Red Dotted Line below the value prompt
Post by: sg24 on 13 Jan 2011 07:21:54 AM
Hi,

I have a java script to remove the title and red dotted line in cognos 8.2 and above version. Below is the script.

<script language="javascript">
var firstTime;
var fW = (typeof getFormWarpRequest == "function" ? getFormWarpRequest() : document.forms["formWarpRequest"]);
if ( !fW || fW == undefined) { fW = ( formWarpRequest_THIS_ ? formWarpRequest_THIS_ : formWarpRequest_NS_ );}
var list = fW._oLstChoicesprompt1;
list.remove(1);
list.remove(0);
list.removeAttribute("hasLabel");
if (firstTime != 1)
{
self.setTimeout("promptAction( 'reprompt' );", 10 ); // set a timeout to ensure the page has time to load.
firstTime=1;
}
</script>

can anybody give me the script that removes the dotted line below the value prompt in Cognos 8 version??

Please let me know.

Thanks,
Sg