Question
Oriental Bank & Trust Inc
PR
Last activity: 22 Jun 2021 4:33 EDT
Using the function IsInPageList but not finding items in the results when they contain char /. Is this wrong?
Hi all:
Hope anyone has gone through this before. I came across a validation logic for a property where the value selected is searched and compared to the results of a data page using the IsInPageList utility function. It works fine for the items that do not have special chars like / or -. Why is there a problem with these chars as they are contained within a string and as such (not being an escape or anything)? Also, tried comparing two strings that contained such chars using the equals function and it worked flawlessly. Thank you for shedding some light. Regards,
-
Likes (1)
varnika gupta -
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 21 Jun 2021 8:12 EDT
Oriental Bank & Trust Inc
PR
@MarissaRogers Hi, The case ID is: INC-175261. The problem was a combination of the results from the report and a trim that was happening when the value was being set to the property and data entry. This caused the validation activity to compare with a string that had an extra space for the specific items. The function was perfect. Hope this helps anyone with similar issue to pin point the problem. Regards,
Oriental Bank & Trust Inc
PR
Update: Reviewed other items in the list that also contained the / char, and where correctly identified. It seems to be happening with certain results where the comparison is not taking place correctly. Has anyone faced this behavior before? Whas it something with the function itself or with the report definition?
Oriental Bank & Trust Inc
PR
The case is being evaluated by the Cloud support team.
EY
IN
Even I am facing this issue, posted the query on community as well. I have Hypen as character and its throwing error as
Invalid expression or reference: Operation "-" is not permitted on types: includedpage and includedpage Invalid expression or reference: No suitable instance found
EY
IN
NO I have to find for one of the Values in Pagelist, but that contains hyphen and hence throwing the error as
Invalid expression or reference: Operation "-" is not permitted on types: includedpage and ...
Pegasystems Inc.
US
Accepted Solution
Updated: 21 Jun 2021 8:12 EDT
Oriental Bank & Trust Inc
PR
@MarissaRogers Hi, The case ID is: INC-175261. The problem was a combination of the results from the report and a trim that was happening when the value was being set to the property and data entry. This caused the validation activity to compare with a string that had an extra space for the specific items. The function was perfect. Hope this helps anyone with similar issue to pin point the problem. Regards,
Pegasystems Inc.
US
Thanks @GerardoS for updating us with not only the Support Case ID but with the resolution and marking it as the Accepted Solution to help others who may have the same question in the future.
I have also linked this post to your Support Case with our Engineers.
Thanks again!