If there is a scenario where we need to display employee details (pagelist data) in a non-auto-generated section with custom code. We can make use of the below two JSP directives:
Note:
- <pega:forEach></pega:forEach>
- <pega:reference></pega:reference>
Note:
- Non auto-generated section means in HTML tab of section : "Auto-generated HTML" checkbox is unselected.
- Treat these JSP directives as scriplets embedded into HTML code.
- Using <pega:forEach> we can iterate over the pagelist.
- Using <pega:reference> we can get the value of the single value property.
- In the below example, pages and classes is as below:
EmployeeList => Code-Pega-List
EmployeeList.pxResults=> Data-Employee - Refer to screenshot below on how we can use these JSP tags.
Hi.
ReplyDeleteHow to capture index of the current page being looped? My requirement is to display serial number column.