Support Article
Dynamic tabbed layouts do not work in Pega Web Mashup
Summary
Work objects do not open in the configured tabbed layout. This occurs when using Pega Web Mashup to display a user portal.
Error Messages
Not Applicable
Steps to Reproduce
- Configure a section with tabbed layout
- Add the section in a harness.
- Add the harness in the Mashup code
- Run the Mashup code
Mashup code:
<script src ='https://<prpc_url>/prweb/PRServlet?pyActivity=pzIncludeMashupScripts'>
</script>
<div
data-pega-gadgetname ='PegaGadget'
data-pega-action ='display'
data-pega-action-param-classname ='Data-Portal'
data-pega-action-param-harnessname ='<End_User_Portal>'
data-pega-action-param-model =''
data-pega-isdeferloaded ='false'
data-pega-applicationname ='<appName>'
data-pega-threadname ='STANDARD'
data-pega-systemid ='pega'
data-pega-resizetype ='stretch'
data-pega-url ='https://<prpc_url>/prweb/PRServlet' ></div>
The harness displayed is the harness used in a composite portal definition.
Root Cause
Display action is not sufficient to initialize the user portal.
Resolution
Use the below data-pega-action to initialize and display the user portal.
<script src ='https://<prpc_url>/prweb/PRServlet?pyActivity=pzIncludeMashupScripts'>
</script>
<div
data-pega-gadgetname ='PegaGadget'
data-pega-action ='OpenWorkByURL'
data-pega-action-param-query ='pyActivity=Data-Portal.ShowDesktop'
data-pega-action-param-model =''
data-pega-isdeferloaded ='false'
data-pega-applicationname ='<appName>'
data-pega-threadname ='STANDARD'
data-pega-systemid ='pega'
data-pega-resizetype ='stretch'
data-pega-url ='https://<prpc_url>/prweb/PRServlet' ></div>
Published July 23, 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.