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

Tabs inside DynamicContainer of a harness not rendered correctly

SA-4662

Summary



User's use-case: 

-> There is a portal, which in turn has a harness. 
-> In this harness, there are 2 sections, the top section has a button (labelled Enable/Disable). On click of this button, an event is configured that refreshes the bottom section as well as calls an activity. 
-> The bottom section has a tab layout. These tabs are harness rules. There are conditions specified on the tab visibility. These tabs need to be visible and invisible when "Enable/Disable" button is clicked. 

Error Messages



No error messages.

Steps to Reproduce

  1. Create a simple text property say ABC. 
  2. Create a Portal. 
  3. In the portal harness, drag a panel set (panel set containing top, centre and bottom panels) 
  4. In the top panel, add a section which has a button "Enable/Disable". 
  5. Create a OnClick action set for the button containing the following 2 actions: -> Refresh other section (the section which contains the tab layout) by executing an activity - activity sets the property to enable or disable depending on what the current value is. The value is made disable if the current value is Enable and vice-versa. 
  6. In the centre panel, add a section containing tabbed layout with all the tabs as harness rules. 
  7. Create a When rule (say M) which has condition pyWorkPage.ABC == "Enable". In the pages and classes tab of the when rule add pyWorkPage and appropriate class. 
  8. Add visibility condition for all the tabs - Visible when rule – M.

Root Cause



In 7.1.0 code changes corresponding to "Browser Refresh" and "High Availability" feature-goals work created this bug.

For above features, data model gets created when the portal's harness having Dynamic Container is being rendered, and data model gets updated with dynamic tabs meta data.

On browser refresh if the data model is available PRPC creates dynamic tabs.



Resolution



To handle this issue, system needs to update:
  1. GenerateTabbedSection function to invoke GenerateElementmodel function.
  2. Dynamic Container JavaScript.
However, this fix is too risky to be incorporated in the current 7.1.6 or 7.1.7 versions. It might end up having adverse effects on the related functionality. Therefore, it is considered to be looked into in PRPC 7.1.8.

Published January 31, 2016 - Updated October 8, 2020

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