Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hide column name in drop down?

Status
Not open for further replies.

NEAR

Programmer
May 20, 2003
63
US
Does anyone know where the atrribute is set to dispable the column name from displaying in a drop down control?

C8

Thanks
 
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.
 
Thanks! But I'm pretty sure there is a settings perhaps in a XML file that can be set to eliminate the column name. I'll look further into it.

Thanks anyway for the prompt reply!!!

 
Please post back if you find such a setting, I would be very interested and think others would too.
 
<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>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top