Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
change the border color in script
Jackie
Hi,
I want to change the border color in the onCreate method. but don't know how to realize. Could someone give some advice, thanks in advance.
The attach is my report design file. one page for one color, when change the page, font color has changed, but the underline border color is always black, I want change it too.
Regards
Jackie
Find more posts tagged with
Comments
kclark
You can change the border color in the onPrepare() with some code like this<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
this.getStyle().borderBottomColor = "Red";
this.getStyle().borderBottomStyle = "Solid";
this.getStyle().borderBottomWidth = "1pt"; // If you want to set the width
</pre>