How to Access value-List property in HTML/Paragraph/Correspondence

How to Access Value list property in HTML rule or Correspondence or Paragraph?

I have below piece of code in paragraph rule and refering that in HTML to generate PDF.

at run time it is failing for referring pyTextValue(1) value list.

Please let me know how to refer value list property in HTML ?

<table border="1" cellpadding="1" cellspacing="1" style="width:1200px;">

    <tbody>

        <tr>

            <th><strong><span style="font-size:18px;"><span style="font-family:Century Gothic;">Covered Person</span></span></strong></th>

            <th><strong><span style="font-size:18px;"><span style="font-family:Century Gothic;">Minimum Amounts</span></span></strong></th>

            <th><strong><span style="font-size:18px;"><span style="font-family:Century Gothic;">Guaranteed Issue Amounts</span></span></strong></th>

        </tr>

        <tr>

            <td style="vertical-align:top;"><span style="font-family:Century Gothic;font-size:18px;"><pega:reference name="$THIS.pyLabel"></pega:reference> </span></td>

            <td style="vertical-align:top;"><span style="font-family:Century Gothic;font-size:18px;"><pega:reference name="$THIS.pyTextValue(1)"></pega:reference> </span></td>

            <td style="vertical-align:top;"><span style="font-family:Century Gothic;font-size:18px;"><pega:reference name="$THIS.pyTextValue(2)"></pega:reference> </span></td>

        </tr>

    </tbody>

</table>

@SatyaGodavarthi To access a value list property in an HTML rule Correspondence or Paragraph you can use the pega:forEach tag to iterate over the value list. Here is an example of how you can achieve this in an HTML rule: html body style

:warning: This is a GenAI-powered tool. All generated answers require validation against the provided references.

Refer Pagelist in Correspondence or Paragraph

How to display page list in HTML using Pega?

@MarijeSchillern
Yes, for pagelist we can use forEach and inside forEach we can access property belongs to that page list.

Which is like <pega:reference name=“$THIS.pyID” />

Here

  • $THIS refers to Page context of foor loop

  • pyID is my property.

For Value list we don’t have a property to refer inside page so how to refer property inside for loop ?

@SatyaGodavarthi
I got the solution
Inside for loop property can reference as
<pega:reference name=“$THIS.pyTextValue(1)”></pega:reference>