Can not use JavaScript Library funcion in RPE template
Accepted answer
This is a design limitation in RPE. A library script cannot use variables or data properties. If so, RPE will not use the script as library.
You should see the following message logged in console:
CRRPE3615E The script with id xx has data or variable references and cannot be used as a library.
Though you could use the library script function within try catch block, it is as good as calling a function that is not defined and hence it will be caught.
Comments
Yes Prasad, it is the limitation.
>>> I ran a quick test. Though I could use the library script function within try catch block, the output does not contain what is expected from the function.
Are the data properties evaluated correctly during document generation? or is just during the "Test script"?
Yes, thanks
2 other answers
Did you check the "library script" property?
Thanks,
Kumar
Comments
Yes, exactly!
I'm working with RPE v6.0.5!