Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Operator menu in pyPortalHeader fails in custom portal



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

  1. Save the pyPortalHeader section to the application ruleset. 
  2. Include this section in a custom harness and reference this in a custom portal. 
  3. Launch the portal.
  4. Click the operator icon.

Root Cause

A defect in Pegasystems’ code or rules


Perform the following local-change:
  1. Add a clickable auto-generated control such as a button in the Inline Dynamic Layout in pyPortalHeader (saved in the application ruleset).
  2. Add a custom When condition to hide the control at runtime.
  3. Select the 'Reserve space when hidden' checkbox.

Published October 10, 2018 - Updated December 2, 2021

Was this useful?

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us