Question

2
Replies
395
Views
Kirk Holbrook (KirkH944)
Wells Fargo Bank N A
CSSA
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
Posted: 14 Mar 2017 19:55 EDT
Last activity: 6 Apr 2017 9:55 EDT
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, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.