Can a BIRT report check for Eclipse v Web client
I wish to generate a hyperlink to open a work item from a BIRT report.. In the Eclipse client, the following works fine (inside an "a" tag): href="#action=com.ibm.team.workitem.viewWorkItem&id=12345" In a web client, I wish to open the work item in a new tab, by using: target="_blank" href="#action=com.ibm.team.workitem.viewWorkItem&id=12345" However, this doesn't work in the Eclise client - it re-runs the report in a browser window! Can I detect whether a report has been invoked from the Eclipse client or a web client? Also, it would help if I could detect whether a report has been invoked from a widget. |
Accepted answer
Hi Bill,
You can check whether or not a report was invoked via the Eclipse client by using the following expression in your BIRT report: reportContext.getAppContext().get('RCP_CALL') If it returns true, then the report is being run from the Eclipse client; otherwise, it's from the web. Unfortunately, I don't believe there's a way to tell if the report was invoked via a dashboard widget. Bill Taylor selected this answer as the correct answer
Comments
Bill Taylor
commented Mar 19 '15, 3:18 p.m.
So simple when you know :-) - many thanks for a prompt reply |
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.