Discussion
IN
Last activity: 14 Oct 2024 10:49 EDT
How to check a value in value list in when rule?
Use the function [email protected]("abcde",OperatorID.pyAccessGroupsAdditional)
-
Reply
-
Subba Reddy K Pankaj Roy -
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
IN
Bits In Glass
GB
Hi
Could you try "PropertyListContains" function to check value in valuelist.
Syntax: @Default.PropertyListContains(strListReference,strScalarValue,insActivity)
Example: @PropertyListContains("pxThread.pxApplicationRuleSets", "PegaKPI", this)
Thanks
Pegasystems Inc.
IN
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
Pegasystems Inc.
IN
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
Acel Solutions Pvt Ltd
IN
instead of @pxIsInListOfValues , @contains can be used
the overall syntax is : @contains(@pxStringCSVFromValueList(.pxCoveredInsKeys),Param.lookforstring)
Infosys
IN
Hi,
We can use @IsInPropertyList function to check value in valuelist.
For example,if your Node level data page having valuelist property like Dummy(1)=="abc' ,Dummy(2)=="efg" and Dummy(3)=="as".
In a when condition if we want to check value from valuelist is having abc value,then u can refer as below,
@IsInPropertyList("abc",D_Dummypage.Dummy)
Instaed of harcoding "abc" if we want to refer clipboard page,we can do that also.
Thanks.