Discussion
New jersey Courts
US
Last activity: 2 May 2018 15:20 EDT
IndexInPageList function is not working with Parameterised data page list
Here is an exmaple of such expression, It working for non Partametersied data Page
@(Pega-RULES:Utilities).IndexInPageList("RC0037","key",D_GetAppCodes[Application:"PSA",CodeTable:"PSA_RECOMMENDATION"].GetAppCodesParametersResponse.getAppCodesReturn.ACTSKeyValueEntry)
Data page successfully populated with values, but always returning "-1".
Does any one tried searching in Parameterised data page List?
Update :
It worked after trimming the specific property Key in response Data Transform.
No issue with parameterised data pages.
I believe code syntax is not correct. You should provide ".key" instead of "key"
@(Pega-RULES:Utilities).IndexInPageList("RC0037",".key",D_GetAppCodes[Application:"PSA",CodeTable:"PSA_RECOMMENDATION"].GetAppCodesParametersResponse.getAppCodesReturn.ACTSKeyValueEntry)
OOTB Example: @IsInPageList(.pyMOId, ".pyNote", pyFlowActionsList.pxResults)
Please check if this helps.