Highlighted
Respected Contributor.
Respected Contributor.
445 views

(LR) Support Tip: How to load 3rd party libraries when using JavaScript language in web protocol

  • lr.require(<module_path>)

Loads the specified JavaScript module. Similar with Node.js’ require.

–All the promise libraries implemented asynchronous functions are not supported, e.g. Bluebird

  • lr.loadLibrary (<file_path>)

Evaluates and runs the specified JavaScript file in the global context.

For details, please check

http://lrhelp.saas.hpe.com/en/12.53/help/function_reference/FuncRef.htm#js_vuser/lrFr_JS_lr_require.htm

http://lrhelp.saas.hpe.com/en/12.53/help/function_reference/FuncRef.htm#js_vuser/lrFr_JS_lr_loadLibrary.htm

Labels (1)
0 Likes
1 Reply
Highlighted
Contributor.
Contributor.

Re: (LR) Support Tip: How to load 3rd party libraries when using JavaScript language in web protocol

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.