Question
Atos Syntel
IN
Last activity: 4 Oct 2018 13:54 EDT
Have anyone used IsPageListEmpty() function ?
I need to create a when condition which would check if a pagelist is empty or not. i can see there is a function named IsPageListEmpty which has three arguments.
does anyone know what values should we have to pass to these arguments.
@Utilities.IsPageListEmpty(tools,aPageListRef,aPropName)
tools - ?
aPageListRef - ?
aPropName - ?
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Atos Syntel
IN
Updated: 30 Apr 2016 2:01 EDT
Pegasystems Inc.
IN
@Utilities.IsPageListEmpty(tools,aPageListRef,aPropName)
- tools - Current Exceution Context
- aPageListRef - name of page list property
- aPropName - property name of interest in the the pagelist
also please refer if be of use/help. RULE-UTILITY-FUNCTION UTILITIES PXREMOVEEMPTYPAGESFROMPAGELIST
Instead you can use this RUF to get the size of the pagelist @(Pega-RULES:Utilities).LengthOfPageList(pagelistpropertyname)
It should return 0 if its empty.
Atos Syntel
IN
i used @(Pega-RULES:Utilities).LengthOfPageList(pagelistpropertyname) in a when rule and mentioned it in an activity. it throwed the below error when it tried to evaluate the when rule.
The Flow Action pre-processing activity "activity name" failed: cannot be null or blank. page: "page list name".
Details: Invalid value for aReference passed to com.pega.pegarules.data.internal.clipboard.ClipboardPageImpl.getProperty(String, char).
Process 360
IN
If it is a top level page, mention pxResults like below
@(Pega-RULES:Utilities).LengthOfPageList(Testing.pxResults)
Boeing Employees Credit Union
US
I used this to check if PageList is empty.
@(Pega-RULES:Utilities).LengthOfPageList(.PageListName) == 0
Hope it helps.
-
kughakkumari v Mahesh Solanke
Atos Syntel
IN
Is there any other way to check if a page list is empty ?
Pegasystems
US
It sounds like it would be useful to track down why you are getting the error you reported. If you paste some snapshots showing both your design and the tracer clipboard values, we can take a look. /Eric
Pegasystems Inc.
US
Hi Dilipan,
I would take a look at the OOTB activity pzGetApplicationCompletionPercentage, which does use the utility function in the when rule pyDoBusinessObjectivesExist in step 5.
Accepted Solution
Atos Syntel
IN