I have to count the embedded page inside a page list.
First of all I have a Single Page (Fill Details) and sourced with database and also some fields/ Columns are defined like company name, BenCount & RegCount. In This Single page I have two different Page List (Beneficial Control No & Registered Control No) and both are also sourced with database . in both page list I added one one field also. So that I can take multiple Beneficial Control No & Registered Control No and I can store to their respective Data Page.
My Requirement is if I add 3 Beneficial Control No & 2 Registered Control No. Then 3 should be added in BenCount fields/ Column and 2 should be stored in RegCount field/ Column which is in Single Page (Fill Details). JFYI you all already know and I add 3 / 4 / 5 control no then 3 / 4 / 5 embedded page with be created inside page list. So I have to count all embedded page.
In short I have to count all embedded page liked with page list and then store it in data page. I'm adding some photo for your reference. Please explain all steps in details. What are all methods, expression and functions I need to add. I tried with @LenghtOf Pagelist method (@LengthOfPageList(.FillDetails.BeneficialControlNo) ) but I could not achieved it , may be because of I used in wrong way or functions is not suitable.
***Edited by Moderator Marissa to change type from Pega Academy to Product, update Product details and Capability tags****