There is no attribute, you need a piece of javascript in an html item to modify or delete what Cognos puts in the control. This is a fairly FAQ so search this forum or others and you should find what you need.
<script>
function init(){
var x = document.getElementsByTagName('select');
var RN_SelectName = "_oLstChoices";
var RN_SelectClass = "clsSelectControl";
var is_Required;
var par1;
var par2;
for (var i=0;i<x.length;i++)
{
if (x.className != RN_SelectClass) continue;
eval('is_Required=listBox'.concat(x.name.substr(RN_SelectName.length,x.name.length).concat('.isRequired();')));
for (var j=0;j<x.length;j++)
{
if (x.options(j).value == "") {
x.remove(j);
}
}
if (is_Required) {
x.remove(0);
eval('listBox'.concat(x.name.substr(RN_SelectName.length,x.name.length).concat('.checkData()')));
}else {
x.options(0).text = '';
x.options(0).value = '';
}
}
}
</script>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.