So here is a small script to help set the Font.
<script>
var fW = (typeof getFormWarpRequest == "function" ?getFormWarpRequest() : document.forms["formWarpRequest"]);
if ( !fW || fW == undefined)
{ fW = ( formWarpRequest_THIS_ ?formWarpRequest_THIS_ : formWarpRequest_NS_ );
}
var FromDateTextBox = fW.txtDateFromDate;
FromDateTextBox.style.fontFamily = 'Arial';
FromDateTextBox.style.fontSize = '8pt';
</script>
where the date prompt is named as FromDate.
Note: This technique uses JavaScript against underlying report objects in a IBM Cognos 8 BI report. For this reason, there is no guarantee that reports created using this technique will migrate or upgrade successfully to future versions without requiring modifications. Any such modifications are the responsibility of the report designer.
2 comments:
Hi , i am using 8.4 and the above JS is not working for me.
Sudhir
Hi Sudhir, Couple of things you would need to check:
Ensure that you are using the Name of the prompt not the parameter name in your JS.
You have placed the JS after the object or way below the report. Basically not before the date prompt.
Post a Comment