Question

2
Replies
324
Views
KirkH944 Member since 2017 7 posts
Wells Fargo Bank N A
Posted: 3 years ago
Last activity: 3 years 6 months ago
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 Interface
Moderation Team has archived post
Share this page LinkedIn