Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.

0 votes


Accepted answer

Permanent link
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

0 votes

Comments

So simple when you know :-) - many thanks for a prompt reply

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,019

Question asked: Mar 19 '15, 4:52 a.m.

Question was seen: 3,264 times

Last updated: Mar 19 '15, 3:18 p.m.

Confirmation Cancel Confirm