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
Can be hidden using Java script
Tnx bloggerman,
can u send me an example code?
i find this:
http://www-01.ibm.com/support/docview.wss?rs=0&q1=code+to+remove+the+first+two+lines+in+a+value+prompt&uid=swg21376360&loc=en_US&cs=utf-8&cc=us&lang=all (http://www-01.ibm.com/support/docview.wss?rs=0&q1=code+to+remove+the+first+two+lines+in+a+value+prompt&uid=swg21376360&loc=en_US&cs=utf-8&cc=us&lang=all)
but is wrong. Can u help me? Tnx very much.
Luca
document.forms["formWrapRequest"].elements["_oLstChoicesYear"].remove(0);
document.forms["formWrapRequest"].elements["_oLstChoicesYear"].remove(0);
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 (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
Thanks a lot luka80