Question
ING Belgium SA NV
BE
Last activity: 9 Sep 2024 11:47 EDT
Refer to property on embedded pagelist in correspondence
Hi,
I currently have a structure like:
Mainpage
- ListItems
- ListItems(1)
- FirstProperty
- DetailList
- DetailList(1)
- SecondProperty
- DetailList(2)
- DetailList(3)
- DetailList(1)
- ListItems(2)
- ListItems(3)
- ....
- ListItems(1)
I want to use a Datapage in a correspondence rule taking params, so I need to store the values of the properties in parameter page before accessing my Datapage.
I loop ListItems with a <pega:forEach>, in this, I set a first parameter like
<pega:withReference name="$this.FirstProperty"> <% tools.getParameterPage().putParamValue("FirstParam",tools.getActive().toString()); %> </pega:withReference>
I try to set the second param like
<pega:withReference name="$this.DetailList(1).SecondProperty"> <% tools.getParameterPage().putParamValue("SecondParam",tools.getActive().toString()); %></pega:withReference>
But it's always setting my param to blanks.
Hi,
I currently have a structure like:
Mainpage
- ListItems
- ListItems(1)
- FirstProperty
- DetailList
- DetailList(1)
- SecondProperty
- DetailList(2)
- DetailList(3)
- DetailList(1)
- ListItems(2)
- ListItems(3)
- ....
- ListItems(1)
I want to use a Datapage in a correspondence rule taking params, so I need to store the values of the properties in parameter page before accessing my Datapage.
I loop ListItems with a <pega:forEach>, in this, I set a first parameter like
<pega:withReference name="$this.FirstProperty"> <% tools.getParameterPage().putParamValue("FirstParam",tools.getActive().toString()); %> </pega:withReference>
I try to set the second param like
<pega:withReference name="$this.DetailList(1).SecondProperty"> <% tools.getParameterPage().putParamValue("SecondParam",tools.getActive().toString()); %></pega:withReference>
But it's always setting my param to blanks.
I also gave it a try with the <pega:withEmbedded> tag, but this results in an error where it states <pega:withEmbedded name="$this.DetailList(1)"> <pega:withReference name="$this.SecondProperty"> <% tools.getParameterPage().putParamValue("SecondProperty",tools.getActive().toString()); %> </pega:withReference> </pega:withEmbedded>