If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Value Prompt hide header and separator

Started by luka80, 23 Apr 2009 09:36:11 AM

Previous topic - Next topic

luka80

Hello Guys,

I have create a value prompt for select a year for report.
Example

Select Year                               
----------                                 
2006
2007
2008


Is possible hide 'Select Year' and '---------' ?

Thanks very muck :)

luca



bloggerman



bloggerman

document.forms["formWrapRequest"].elements["_oLstChoicesYear"].remove(0);
document.forms["formWrapRequest"].elements["_oLstChoicesYear"].remove(0);

luka80

I found this solutions:
Javascript: Removing first 2 items from a value prompt in Cognos 8.3.

http://www-01.ibm.com/support/docview.wss?rs=0&uid=swg21342899

<script language="javascript">
var f = getFormWarpRequest();
var list = f._oLstChoicesPrompt1;

list.remove(1);
list.remove(0);
list.removeAttribute("hasLabel");
</script>

This code is correct and work in report but don't work when report is in a Page or in a Multi-Page.

There is a solutions? Thank's very much.

Luca



sushmachowdary