Posted: 17 May 2020 12:44 EDT Last activity: 18 May 2020 12:44 EDT
How to source dropdown with pagelist properties
I have a requirement to populate the dropdown from the pagelist properties of clipboard that too, pagelist inside a pagelist. (pagelist inside a pagelist).
E,g: Dropdwn property is Marks.
In my clipboard, I've a pagelist properties which is inside a another pagelist.
e.g: Universities is a pagelist which contains another pagelist called Students which contains the single property Marks.
Now I've a 4 Pages in Universities - Universities(4) and in those each page, I've another 2 Pages called Students - Students(2). Now I've fetch the single property marks from all those pages and populate in a single dropdown.
In the source of that Dropdown, given source as Clipboard page and page as "pyWorkPage.Universities().Students()" and source value/column as .Marks.
In the pre-processing Data Transform, loop through the Universities Pagelist and inside it, loop through Students and append and map Marks property to the new pagelist(or TempPage.pxResults) and use this as the source for dropdown.
Please find the below screenshot for more details.