COGNOiSe.com - The IBM Cognos Community

IBM Cognos Analytics Platform => Cognos Analytics => Reporting => Topic started by: Kiran Kandavalli on 06 Aug 2017 03:47:23 PM

Title: Removing parameter name and Dotted Line from the value prompt
Post by: Kiran Kandavalli on 06 Aug 2017 03:47:23 PM
Team,

I have built a Report in Cognos 11.0.5 Version and with Report Styles 11.4 (Attached)

I wanted to remove the Parameter Name & Dotted Line from the Value prompt and I have used the below code, but it is not working.

Problem

The Value prompt is in the Report Page and it has Auto submit Property. The client doesn't want to use to Prompt button. So when the user select the 'Parameter Name / Dotted Line" the Page is refreshed, which should not be. Please let me know if anyone has implemented the Javascript in 11.0.5 Version


<script>

var list=document.getElementsByTagName("SELECT")[0];

list.remove(1);
list.remove(0);
list.removeAttribute("hasLabel");
list.options[0].selected = true;

canSubmitPrompt();
</script>
Title: Re: Removing parameter name and Dotted Line from the value prompt
Post by: aussieadam on 07 Aug 2017 08:03:53 AM
This is possible without javascript, you just have to change the default text for Header Property to blank.
Title: Re: Removing parameter name and Dotted Line from the value prompt
Post by: dougp on 07 Aug 2017 10:11:43 AM
I agree with Adam, but this feature is broken.

In 10.2.1, setting the Header Text property to blank would do the trick.  In 11.0.4 and 11.0.6, this only works if the "Run with full interactivity" property is set to No.  IBM claims this will be fixed in 11.0.7.
http://www-01.ibm.com/support/docview.wss?crawler=1&uid=swg1PI77362 (http://www-01.ibm.com/support/docview.wss?crawler=1&uid=swg1PI77362)

Title: Re: Removing parameter name and Dotted Line from the value prompt
Post by: Kiran Kandavalli on 13 Aug 2017 01:02:25 AM
Thank you! I have changed Report Interactive behavior and it solved the Problem