Posted: 15 Feb 2019 4:16 EST Last activity: 19 Mar 2019 12:00 EDT
PEGA KYC: Onchange data transform to preset kyctype items has issues in Refreshing screen
We are trying to set or reset some answers to KYCType Items on change of some other kyctype item. We could see the property set on clipboard but does not show up on UI. When a different question's answer is selected, then the previous answer also shows up, as the screen got refershed. Is there any configuration where refersh is managed or do we need to explicitly call some thing for the refresh to happen.
Q1,Q2,Q3 are 3 questions. Q1,Q3 are visible on screen on launch. Select answer for Q1. On change of Q1 made Q2 visible and preset answer for Q2. Q2 is visible on screen but answer is not shown on UI where as the answer property for Q2 has value in clipboard. Select answer for Q3. Now answer for Q2 shows up on UI.
Please let us know if anyone faced this issue and if there is any explicit call we need to make for refreshing screen.
***Edited by Moderator: Pallavi to update platform capability tags***
The engine works on a principle of when the user responds to a question, the user action on the UI evaluates the completion of the question and causes all questions on the form to be reevaluated for visibility, mandatory and read-only conditions by executing the ProcessResponse and ReEvalValidQuestions routines. This in turn triggers the refresh of the relevant questions
In your scenario since the item is being preset procedurally, the system will not execute the above mentioned routines and hence not refresh the question.
To address your requirement You should call ReevalValidQuestions routine from the onchange data transform that you might have configured on Q1.
Please let us know if that addresses your requirement.