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

Can Javascript be re-used in RRDG?

A javascript code element can be defined as a "Library script" in RPE to provide re-use of javascript code in RPE.  Is there any way to do this in the RRDG or does the javascript have to be placed in each element?

0 votes


Accepted answer

Permanent link

RPE/RRDG 2.1 added support for Javascript reuse. If DNG/RQM/RTC you're using has RRDG 2.1 and above, you could reuse Javascript. For more details, see https://rpeactual.com/2016/06/15/new-in-rpe-2-1-reuse-javascript-functions-in-template/

Jonathon Atchley selected this answer as the correct answer

1 vote

Comments

It doesn't look like any DNG is using RRDG 2.1, unless 6.0.4 moved to it

CLM 6.0.4 adopted RRDG 2.1.2. Hence, it should be available. It is better to create independent function and re-use it everywhere. If you want to re-use javascript variable with value, it won't work. Use RPE variable for such cases.

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

Question asked: Jun 28 '18, 11:00 a.m.

Question was seen: 1,813 times

Last updated: Jun 28 '18, 10:35 p.m.

Confirmation Cancel Confirm