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