Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
Truncate URL text but keep the hyperlink
Migrateduser
[previously posted in the Designing BIRT reports forum but reposting here as no responses there]<br />
<br />
Hello all. I'm very much a BIRT novice.<br />
<br />
I'm using the following code in the 'onRender' section of the script page to set the hyperlink in a column of my report:<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>var myaction = this.createAction();
myaction.setHyperlink(this.getValue(),"_blank");
this.action = myaction;</pre>
<br />
This works nicely. <br />
<br />
However, I'd like to truncate the text representation of the URL when its exceeds a given character count, and yet retain the hyperlink itself.<br />
<br />
Can anyone give me a pointer how to do it, please?
Find more posts tagged with
Comments
There are no comments yet