Support Article
Operator menu in pyPortalHeader fails in custom portal
SA-61350
Summary
Operator menu fails after saving pyPortalHeader to the application ruleset.
Error Messages
Uncaught TypeError: Cannot read property 'showContextMenu' of undefined
at pega.control.Actions.showMenu (pzpega_ui_harnesscontext_13405383939!pzevalharnessjson_13618607379.js!pzpega_ui_lib_provider_1191955478!pega_yui_12813728239!desktopwrapper_12681084965!pzautomationscripts_1782107713!pzpega_portal_13192522937!pzpega_ui_jquery_1876020879!pega_ui_harness_1254042684!pzpega_ui_harness_actions_11967870250!pzpega_ui_messaging_1861668468!pzpega_ui_jstree_1221119030!pzpega_ui_inspector_bundle_1404366545!!.js:2874)
at S (pzpega_ui_harness_deferred_ts_1534122990!!.js:3)
at F (pzpega_ui_harness_deferred_ts_1534122990!!.js:3)
at G (pzpega_ui_harness_deferred_ts_1534122990!!.js:3)
at Object.H.schedule (pzpega_ui_harness_deferred_ts_1534122990!!.js:3)
at L (pzpega_ui_harness_deferred_ts_1534122990!!.js:3)
at I (pzpega_ui_harness_deferred_ts_1534122990!!.js:3)
at G (pzpega_ui_harness_deferred_ts_1534122990!!.js:3)
at Object.F.processBehavior (pzpega_ui_harness_deferred_ts_1534122990!!.js:3)
at M (pzpega_ui_harness_deferred_ts_1534122990!!.js:3)
Steps to Reproduce
- Save the pyPortalHeader section to the application ruleset.
- Include this section in a custom harness and reference this in a custom portal.
- Launch the portal.
- Click the operator icon.
Root Cause
A defect in Pegasystems’ code or rules
Resolution
Perform the following local-change:
- Add a clickable auto-generated control such as a button in the Inline Dynamic Layout in pyPortalHeader (saved in the application ruleset).
- Add a custom When condition to hide the control at runtime.
- Select the 'Reserve space when hidden' checkbox.
Published October 10, 2018 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.