Question
Accenture
IN
Last activity: 1 Sep 2017 10:48 EDT
@equalsIgnoreCase not working
Hi,
I have a requirement where user is entering the skill in UI and i am validating it against the skills present in Index-OperatorSkills table.I am fetching the records from Index-OperatorSkills table in a pagelist and looping over all the records to check if any match is found. In the when condition, i am checking @equalsIgnoreCase(.pxSkillName,Param.Skill). But even when there is a match, it is returning false. Can some one help in this regard?
Thanks,
Chiranjeet
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Accenture
IN
Hi,
I have got the solution! Actually the issue was with my RDB-List. The Connect-SQL was returning the property as PXSKILLNAME and in my function, i was checking as pxSkillName because of which it was returning False. Now i have modified my query as: SELECT DISTINCT pxSkillName AS "pxSkillName" from {Class:Index-OperatorSkills}
J.P. Morgan Services India PVT Ltd
IN
Hi,
some useful links regarding the same
https://collaborate.pega.com/discussion/skill-based-routing
https://collaborate.pega.com/question/routing-approval-shape-how-can-i-fix-routing-same-party-case
Accenture
IN
Thanks Neha for the reply! But this requirement is more routing oriented. My scenario is to just loop over the skills list and check for the match. Quite strangely, @equalsIgnoreCase is not working for the matching even when the match is found. I am attaching the screenshots for further reference.
My query is :SELECT DISTINCT pxSkillName AS SkillName from {Class:Index-OperatorSkills}
Pegasystems Inc.
IN
Hi,
Can you with trimming the spaces before/after the input values ?
Thanks,
Santhosh
Vodafone Shared Services India
IN
can you try with this:
@String.equalsIgnoreCase(.pxSkillName,Param.Skill)
Pegasystems Inc.
US
Hello,
Can you try with below syntax,
@(Pega-RULES:String).equalsIgnoreCase(.pxSkillName, Param.Skill)
Regards
Mahesh
Accepted Solution
Accenture
IN
Hi,
I have got the solution! Actually the issue was with my RDB-List. The Connect-SQL was returning the property as PXSKILLNAME and in my function, i was checking as pxSkillName because of which it was returning False. Now i have modified my query as: SELECT DISTINCT pxSkillName AS "pxSkillName" from {Class:Index-OperatorSkills}
Pegasystems Inc.
US
Thanks for posting your solution.