Question

2
Replies
338
Views
Close popover
Kirk Holbrook (KirkH944)
Wells Fargo Bank N A

Wells Fargo Bank N A
US
KirkH944 Member since 2017 7 posts
Wells Fargo Bank N A
Posted: March 14, 2017
Last activity: April 6, 2017
Closed
Solved

SizeOfPropertyList in an HTML fragment

Hi,

I',m working on a Pega application that has been upgraded several times from Pega 4.x to Pega 7.2.2. I need to access an Amount property on an Occurrence page, but Occurrence is sometimes a single page and other times a page list.

I've tried this:
<pega:when java="pega_rules_utilities.SizeOfPropertyList(.Occurrence)<=0;">{.Occurrence.Amount}</pega:when>
<pega:when java="pega_rules_utilities.SizeOfPropertyList(.Occurrence)>0;">{.Occurrence(1).Amount}</pega:when>

And this:
<pega:when test="@(Pega-RULES:Utilities)SizeOfPropertyList(.Occurrence)<=0">{.Occurrence.Amount}</pega:when>
<pega:when test="@(Pega-RULES:Utilities)SizeOfPropertyList(.Occurrence)>0">{.Occurrence(1).Amount}</pega:when>

Neither one works. I know I'm close, but can anyone point me in the right direction?

Clearly fixing the clipboard to have the Occurance be a Page List (in all instances) would be preferred, but I'm afraid I'll break something else in the process.

Thanks in advance,
Kirk

Case Management User Experience
Moderation Team has archived post