Hi Guys,
I want to create a report which displays the Access group and their respective Portals. Here I want all the portals not the current one. I checked in clipboard the portal details stored in .pyUserPortals().pyPortalLayout. I tried to include the pagelist property in Report. Normally when I want to use Pagelist property in report I will optimise the property and I will include in Report using Index Join. Here I cannot able to do this.

Please suggest best approach.

Thanks in advance.

Vinoth
This does not seem to be a realistic reporting requirement in Pega. By default, Pega would have exposed pyPortal in Data-Admin-Operator-AccessGroup which holds the primary portal name associated with an access group.

This is a kind of security restriction in Pega and we would strongly suggest you go ahead with showing access-group along with its primary portal name in the report.

Note:
Exposing pyPortalLayout in pyUserPortals list is not straight forward as this property has linked property reference with Rule-Portal class.

Let us know if you are ok with this explanation. If you still want to achieve it as part of your reporting, then let us know. We will work on finding some optimal solution to expose the required data and guide you with the implementation.

    Yes this is our requirement. Please suggest optimal solution to implement this.

    Vinoth

    Can you perform an obj-open of the class: Data-Admin-Operator-AccessGroup and provide the property: pyAccessgroup with the required access-group name. Then get the pyPortalLayout of the pyUserPortals page list and set it to the required page list to display the portals.
    or try
    #Sharing
    create report in Data-Admin-Operator-AccessGroup class and join with Index-pyUserPortals class on .pzInsKey of Data-Admin-Operator-AccessGroup equal to pxInsIndexedKey of Index-pyUserPortals . For reference, you can refer to declare index on by skill.

      @Mukkram What you have suggested works for skill, but for portals, Pega has used linked property reference and hence we are not able to create index rule to expose the portal list.

      Vinoth
      Try the below approach and let us know if it works.

      1) Write a data page to lookup the access group and concatenate all the portals available in the access group.

      2) Create a custom property in the Data-Admin-Operator-AccessGroup class and disable it from the database save.

      3) Define a declare expression for the property created in step 2 as shown below

      Yeah, we are done. Refer the property created in step 2 in the report to show the list of portals for any given access group. The property fetches the list of portals at run time using expression and this property will never be persisted in the database.

      Let us know of any issues.

        Thank you guys !!!!

          Write a Reply...

          -An Initiative Of OneStopPega- Love our work? Support Us🖤