Tuesday, April 26, 2011

Control the Size of Dashboard Prompt EditBox in 10g

There's no way to change that feature in the front end of OBIEE. It seems to default to 10.

However, using Javascripts, one can update the HTML before it's displayed to the user.

The following piece of code can be used to increase the size of the input box:

<script type="text/javascript">
var aElm=document.getElementsByTagName('input');

for (var i =0; i <aElm.length;i++){
if( aElm\[i\].getAttribute('type') == 'text' || aElm\[i\].getAttribute('type') == 'TEXT') {
aElm\[i\].size=100; //change 100 to what you want
} // end if
} // end for
</script>

Put that inside a static text block in your dashboard, check the html checkbox and it should resize your text prompts (edit boxes) to 100. If that's too big, just change the value 100 to what ever suits your needs.

Good luck!

No comments:

Post a Comment