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.
Thanks for your reply SantanuBhattacherje. I'm was trying to use the function directly in tags in an HTML Fragment rule.
I've figured out a solution. No matter how I tried using the SizeOfPropertyList function within a tag, it always threw an error when the page list did not exist and was checking for Occurrence(1). I have created a separate block of Java code to check for the existence of the first page in the page list: Occurrence(1) and wrapped it in a try/catch block [And BTW attempting to insert a try/catch block directly within the tag does not work.] :