Question

18
Replies
422
Views
Close popover
Satyanarayana Murthy P (Murthy.1303)
Capgemini

Capgemini
CA
Murthy.1303 Member since 2015 12 posts
Capgemini
Posted: June 16, 2019
Last activity: July 20, 2019
Closed

pzTransactionId not updated after pega.u.d.asyncRequest which calls DoSave activity

We are trying to achieve auto safe feature, which would be responsible to Save user in progress data every few mins if the page is stale.

Below is the code I am using. MyActivity calls DoSave activity. Which means a commit is performed and new transaction id is generated.

The first call is successful, however subsequent calls are not. Because the new transaction id is not update on client UI.

This is a high priority client requirement. Any advise on how to resolve this would be greatly appreciated!!


setInterval(function(){ 
   InitiateAutoSave();       
}, 60000);
  
 
  function InitiateAutoSave()
  {
    if(window.parent.ValStudioDirtyCheck==true)
    {
      var callback = {success: SuccessSave, failure: FailureSave};
      var oSafeUrl = null;
      var postData = "";
          
      oSafeUrl = SafeURL_createFromURL("pyActivity=MyActivity&pzPrimaryPageName=pyWorkPage");

      pega.u.d.asyncRequest('POST',oSafeUrl,callback,postData); 
    }
    
  }

***Edited by Moderator Marissa to update platform capability tags; update SR Details****

Data Integration Java and Activities User Experience Support Case Exists
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.