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

Hyper link in rpe generated document

Hi,

I have given link to a word in an artifact. After Generating the document while clicking on the word it was opening the artifact (redirecting to the browser ) rather than going to the section in the word document.

I want to have an hyperlink once after generating the word document while clicking on the hyper linked word it should go inside the word document.

Can anyone provide the solution.

Thanks in Advance.

Regards,
Sunil

0 votes



One answer

Permanent link

What you see is the default / expected behavior. In the document, you will see external hyperlinks to DNG artifacts. To have internal hyperlinks, you should first a bookmark for each artifact that is linked. You can use the following Script Expression (that gives last part of the linked artifact url) as COntent for Bookmark element in RPE template:
about.substring(about.lastIndexOf("/") + 1);

Use a RPE variable (_dngBase) and set its value as the part of url that corresponds to the DOORS Base URL:
_dngBase = about.substr(0, about.lastIndexOf("/")+1);

When printing the requirement text (div attribute), replace DOORS Base URL with '#' by using the following Script Expression:
div.replace(new RegExp(_dngBase, 'g'), '#');

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
× 7,494
× 1,324

Question asked: Apr 22 '21, 2:43 a.m.

Question was seen: 1,746 times

Last updated: Apr 22 '21, 3:57 a.m.

Confirmation Cancel Confirm