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

Hyperlinks within a generated (doc) report

When I generate a report out of a module into a Word document, the hyperlinks in the module keep on pointing

to the DNG database, i.e. clicking on a hyperlink line opens a browser (Chrome) window and leads to the relevant
artifact. I would expect the report builder to generate hyperlink to the relevant line within the document. Can it be done? Thanx in advance.

0 votes



One answer

Permanent link

Yes this can be done using RPE


We achieved it as follows

1) Ensure that a bookmark is added for any artifact that is linked to that contains the last part of the url of the artifact
about.substring(about.lastIndexOf("/") + 1);

2) When outputting the 'text' of the referencing requirement, remove the part of url that corresponds to the DOORS NG root
div.replace(new RegExp(_dngRoot, 'g'),"#");

where _dngRoot = about.substr(0, about.lastIndexOf("/")+1);

Any link within the document should work fine.

If the link is to an artifact in a different document, the hyperlink will not work.,  Instead it will just go to the top of the current document

0 votes

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
× 21

Question asked: Jan 13 '19, 5:14 a.m.

Question was seen: 2,382 times

Last updated: Jan 13 '19, 4:50 p.m.

Confirmation Cancel Confirm