JD_Jinesta Outstanding Contributor.
Outstanding Contributor.

(SM) Support Tip: How to check a capability word for any operator via JavaScript

For tailoring purposes, capability words can be implemented to allow users to perform actions.

Global variable $lo.ucapex contents the current capability word associated to the current logged user however if tailoring a system it's required to check capability words for certain operators it's possible to use function checkPermission( capabilityWord, operatorName )

This function is available from any place inside ScriptLibrary records. Also can be use outside ScriptLibrary referencing record > capability from ScriptLibrary table like lib.capability.checkPermission()

Current function reduces the need to create custom code to check for capability words.

SM Support Engineer

Thank you for using the Micro Focus Community. If you find that this or any post resolves your issue, please be sure to mark it as an "accept as solution".
Labels (1)
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.