Support Article

Properties are not syncing on a delay of one screen

SA-36832

Summary



In an Android mobile application, properties are set on the ClientCache via post Javascript of Simple Questions from PegaSurvey.

Submitting the Simple Questions synchronizes back to the server, but the properties set by post Javascript are not updated right away.

Only after user does submit the second screen that the values set on the first screen's post Javascript appear on the clipboard.


Error Messages



Not applicable


Steps to Reproduce

  1. Set up a case type with offline enabled and have PegaSurvey installed.
  2. In your flow, set up a series of at least 3 Simple Questions using the simple question smart shapes.
  3. Note that smart shape for the first question should have both a POST activity and a POST javascript function. POST javascript and POST activity should set the same properties EXCEPT for 1 property that will only be set in the POST js
  4. Create a case and assign it to an operator that will access the case from the Mobile device.
  5. Submit the first survey question.
  6. On the Mobile device, submit the second survey question.


Root Cause



A defect in Pegasystems’ code or rules is identified as root cause of this issue.

Resolution



Follow the below steps:
  1. Apply HFix-33461 and HFix-33800.
  2. Clear the Pega Temp Directory, and delete the Extract Marker file and restart the Pega application server.
  3. Check the "Only perform post-processing on client” option present in General Settings for the case type in Case Designer.
  4. Private edit the following function and generate function and library
    a. PZHASONLYCLIENTPOSTPROCESSING
    b. CASETYPEMETHODBODY
  5. Save the case type rule form to make sure java is regenerated.
  6. Discard the private edits once done.
  7. Restart the Pega application server again.

Published April 20, 2017 - Updated May 8, 2017

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.