Discussion
Last activity: 16 Feb 2020 22:56 EST
How to check a value in value list in when rule?
Use the function -@Utilities.IsInPropertyList("abcde",OperatorID.pyAccessGroupsAdditional)


Pegasystems Inc.
IN
Hi
Could you try "PropertyListContains" function to check value in valuelist.
Syntax: @Default.PropertyListContains(strListReference,strScalarValue,insActivity)
Example: @PropertyListContains("pxThread.pxApplicationRuleSets", "PegaKPI", this)
Thanks
Value list can be converted to a CSV with a function 'pxStringCSVFromValueList' and can be used.
To iterate over a value list in Data transform, we can Convert the valuelist to CSV with above function, and call pxIsinListofValues function to check whether a value is present in value list or not.
@pxIsInListOfValues(Param.Parameter,@pxStringCSVFromValueList(pyWorkPage.pxCoveredInsKeys)) is the overall syntax to 'IsinValueList' functionality to obtain from DT
Value list can be converted to a CSV with a function 'pxStringCSVFromValueList' and can be used.
To iterate over a value list in Data transform, we can Convert the valuelist to CSV with above function, and call pxIsinListofValues function to check whether a value is present in value list or not.
@pxIsInListOfValues(Param.Parameter,@pxStringCSVFromValueList(pyWorkPage.pxCoveredInsKeys)) is the overall syntax to 'IsinValueList' functionality to obtain from DT
Updated: 16 Feb 2020 22:56 EST
instead of @pxIsInListOfValues , @contains can be used
the overall syntax is : @contains(@pxStringCSVFromValueList(.pxCoveredInsKeys),Param.lookforstring)
Hi @Pavanir6,
Thanks for sharing this on PSC!
Regards,