It's all about the answers!

Ask a question

Drill-Down from Reports


Bharanidharan Giridharan (2631) | asked Mar 19 '10, 4:28 a.m.
HI,

I have created reports where I display Work Item ID's. I want to enable drill down from the report to open up these Work Item ID's if the user so chooses. How do i go about that.

regards
Bharani

10 answers



permanent link
Rafik Jaouani (5.0k16) | answered Mar 19 '10, 10:57 p.m.
JAZZ DEVELOPER
Use the same URL that is used to open work items in the WEB UI.

permanent link
Bharanidharan Giridharan (2631) | answered Mar 26 '10, 6:01 a.m.
Use the same URL that is used to open work items in the WEB UI.


Hi Rafik,

Where do i specify the url so that an automatic link is created.

regards
Bharani

permanent link
Rafik Jaouani (5.0k16) | answered Mar 26 '10, 9:55 a.m.
JAZZ DEVELOPER
Click the report item that you want to behave like a link (a table cell is an example); then click the tab named Hyperlinks in BIRT's property editor and input javascript similar to this:

var serverURL = reportContext.getAppContext().get("SERVER_URL");
if (serverURL == null) serverURL = "";
serverURL + "#action=com.ibm.team.workitem.viewWorkItem&id="+row

permanent link
Bharanidharan Giridharan (2631) | answered Apr 05 '10, 12:56 a.m.
Sorry to get back late on this.

Where do I find the hyperlink in property editor. Could not find it in my report. i have attached a screenshot.





permanent link
Rafik Jaouani (5.0k16) | answered Apr 05 '10, 9:59 a.m.
JAZZ DEVELOPER
You will need to click the table cell that is going to contain the hyperlink. Then the property editor will show the hyperlink property.

permanent link
James Moody (3.3k24) | answered Apr 07 '10, 8:16 a.m.
JAZZ DEVELOPER
On 4/5/2010 10:07 AM, rjaouani wrote:
You will need to click the table cell that is going to contain the
hyperlink. Then the property editor will show the hyperlink property.


You also may need to replace the Data element with a Dynamic Text element.

james
RTC Reports Team Lead

permanent link
Mohan K M (1111511) | answered May 10 '10, 3:35 a.m.
On 4/5/2010 10:07 AM, rjaouani wrote:
You will need to click the table cell that is going to contain the
hyperlink. Then the property editor will show the hyperlink property.


You also may need to replace the Data element with a Dynamic Text element.

james
RTC Reports Team Lead

Hi James,
I have a similar requirement. I managed to establish the hyperlinks and it works fine. But I need to pass a report parameter from report A to report B to refine the query on the second report. Was under the impression that the the URL will change based on a parameter I send from report A and URL needs to manipulated to have that parameter included n the URL. It does not seem to be so in my case (URL of the target report remains same irrespective of parameter sent). Any suggestions/pointers in that direction would be of great help.

Thanks & Regards,
Mohan.

permanent link
James Moody (3.3k24) | answered May 13 '10, 9:24 a.m.
JAZZ DEVELOPER
On 5/10/2010 3:38 AM, mmksri76 wrote:
jmoodywrote:
On 4/5/2010 10:07 AM, rjaouani wrote:
You will need to click the table cell that is going to contain the
hyperlink. Then the property editor will show the hyperlink
property.


You also may need to replace the Data element with a Dynamic Text
element.

james
RTC Reports Team Lead


Hi James,
I have a similar requirement. I managed to establish the hyperlinks
and it works fine. But I need to pass a report parameter from report A
to report B to refine the query on the second report. Was under the
impression that the the URL will change based on a parameter I send
from report A and URL needs to manipulated to have that parameter
included n the URL. It does not seem to be so in my case (URL of the
target report remains same irrespective of parameter sent). Any
suggestions/pointers in that direction would be of great help.

Thanks& Regards,
Mohan.


You can construct the URL using Javascript, which should have access to
the param[] objects for the report. Does that help?

james
RTC Reports Team Lead

permanent link
Mohan K M (1111511) | answered May 18 '10, 7:30 a.m.

You can construct the URL using Javascript, which should have access to
the param[] objects for the report. Does that help?

james
RTC Reports Team Lead


Hi James,
Was away from office for some time.

I have Java script written something like below in the URI field of hyperlink section on first report (as explained in the previous posting of this thread.


var serverURL = reportContext.getAppContext().get("SERVER_URL");
if (serverURL == null) serverURL = "";
serverURL + "#action=com.ibm.team.reports.viewQuery&queryUUID=_mVyU4F2mEd-W45bJdtcjpA&name=User%20Assigment%20details%20-%20by%20user%20v2"


I do not see any place holder in the URL to manipulate / replace the parameter in the URL, as explained in WI_ID case. I think am missing something here. Requesting you to elaborate a bit on making param[] object accessible to the java script.

Thanks,
Mohan.

permanent link
James Moody (3.3k24) | answered May 20 '10, 9:30 a.m.
JAZZ DEVELOPER
On 5/18/2010 7:38 AM, mmksri76 wrote:

You can construct the URL using Javascript, which should have access
to
the param[] objects for the report. Does that help?

james
RTC Reports Team Lead

Hi James,
Was away from office for some time.

I have Java script written something like below in the URI field of
hyperlink section on first report (as explained in the previous
posting of this thread.


var serverURL =
reportContext.getAppContext().get("SERVER_URL");

if (serverURL == null) serverURL = "";
serverURL +
"#action=com.ibm.team.reports.viewQuery&queryUUID=_mVyU4F2mEd-W45bJdtcjpA&name=User%20Assigment%20details%20-%20by%20user%20v2"

I do not see any place holder in the URL to manipulate / replace the
parameter in the URL, as explained in WI_ID case. I think am missing
something here. Requesting you to elaborate a bit on making param[]
object accessible to the java script.

Thanks,
Mohan.


If you want to use, for example, a data set row, then you just use
row as part of the construction of the URL. If you want to use
a report parameter you can use params. If you want to
use a javascript variable, just use it as normal.

So for example, in your case you'd probably want the last line to be:

serverURL + "#action=com.ibm.team.workitem.viewWorkItem&id=" + row;

james
RTC Reports Team Lead

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.