It's all about the answers!

Ask a question

Can Javascript be re-used in RRDG?


Jonathon Atchley (31216) | asked Jun 28 '18, 11:00 a.m.

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?

Accepted answer


permanent link
Kumaraswamy Gowda (39115) | answered Jun 28 '18, 12:01 p.m.

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

Comments
Jonathon Atchley commented Jun 28 '18, 12:22 p.m.

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


Kumaraswamy Gowda commented Jun 28 '18, 10:35 p.m.

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 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.