Question

how to fetch all the portals related to an access group in a report?

how to fetch all the portals related to an access group in a report?

active and inacitve portals both to be displayed in report..Report displays all the access groups along with their portals (Active and Inactive)..Pls give your thoughts..

***Edited by Moderator Marissa to update platform capability tags****

Comments

Keep up to date on this post and subscribe to comments

October 3, 2019 - 4:57am

Hello,

Maybe you should create a Report Definition on Data-Admin-Operator-AccessGroup and get pyUserPortals details.

October 3, 2019 - 5:22am
Response to MarcLasserre_GCS

Hi Marc,
I have created report in  Data-Admin-Operator-AccessGroup  but pyUserPortals didn't work..Thanks for your thoughts..Any alternative solutions..! 

Pega
October 3, 2019 - 6:44am

Hi Harsha45,

pyUserPortals  is list property. In order to get use in reporting create declare-index on pyUserPortals property. 

Let say Index-pyUserPortals  class is created to store indexed instances of pyUserPortals.
Now 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 declare index on pySkill.

Thanks and Regards,

Dhananjay

Pega
October 3, 2019 - 9:05am

Hi Harsha,

Thanks for posting the query.

You can 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 required page list to display the portals.