Home
Analytics
Hyperlink in BIRT
Jac
Hi Friends,
I am a newbie to BIRT.I am using BIRT 2.3.1.I am displaying a table of records which is retrieved from the query.I need to have hyperlink for the rows that are generated.This hyperlink should be generated dynamically.Can anyone help me to do it?Awaiting for your replies..
Find more posts tagged with
Comments
jhelbling
Hi Jac,
You should be able to use a script similar to this one on the onRender method of your data field object :
""
var myaction = this.createAction();
myaction.setHyperlink("
http://www.actuate.com","_blank")
;
this.action = myaction;
""
If the link where you want to go is the data you get from the database, you should be able to replace the :
"
http://www.actuate.com"
;
by
this.getValue()
Jac
Hi,<br />
<br />
Thanks for your response.I have a report say A,I have created a hyperlink as you have said,It opens a new window with HTTP ERROR: 404.I have to connect to Report B when i click the hyperlink.How should i do that.How to call Report B from Report A.Please let me know.<br />
<br />
<br />
<blockquote class='ipsBlockquote' data-author="jhelbling"><p>Hi Jac,<br />
<br />
You should be able to use a script similar to this one on the onRender method of your data field object :<br />
<br />
""<br />
var myaction = this.createAction();<br />
myaction.setHyperlink("
http://www.actuate.com","_blank");<br
/>
this.action = myaction;<br />
""<br />
<br />
If the link where you want to go is the data you get from the database, you should be able to replace the :<br />
<br />
"
http://www.actuate.com"<br
/>
<br />
by<br />
<br />
this.getValue()</p></blockquote>
jhelbling
If you want to create a link to another report you will have either to ensure that the URL you use is correct or you will have to use the Drill-Through hyperlink type available when you select the properties of your data field.