Forum Discussion

kingk's avatar
kingk
New Contributor
4 years ago

LoadComplete Data Replacers & "LoadComplete will replace only the first match"

I have form pages where many field names and/or values contain a unique ID which is captured by a Data Selector associated with an earlier request.

On these form pages, I need to replace a portion of X number of field names/values using the value captured by the Data Selector, however the first match is the only one processed.

 

Per the Data Replacer documentation, "LoadComplete will replace only the first match".

Is there some other way to accomplish this replacement?

    • kingk's avatar
      kingk
      New Contributor

      Thank you Alexey for your response.  I don't believe I was specific enough with describing my issue.


      I have a page that has multiple instances of the same string that need replacing.  I have a Correlation Rule generated Data Replacer which works only for the first instance of the string found on the page.  I need to have every instance of the string replaced, not just the first.

       

      Below is an example string excerpt (from request body 147) containing the same value (5323438086533762) repeated ten times (in red) which needs to be replaced by a different value presented in the response body of request 134.

       

      "

      Purpose=Perform&ReadOnly=-1&HarnessPurpose=Perform&FolderKey=&InputEnabled=false&pzCTkn=9c9271f7e03738af735d01ed7ec0f51a&pzBFP=%7Bv1%7D8ff23acf1b0abaddc2b1b534a997bcde&%24PpyWorkPage%24ppyFormPost=&%24PpxRequestor%24ppyLatitude=&%24PpxRequestor%24ppyLongitude=&%24PpyWorkPage%24ppySpecialtyComponentData=&+=CPMContactVerified&+=CAEndInteraction&+=&+=CallerEscalation&ActionMode=&NewAction=false&TaskIndex=1&TaskHTML=&TaskSectionReference=CPMContactVerified&TaskStreamType=Rule-Obj-FlowAction&TaskStatus=CPMContactVerified&TaskInstructions=&TaskHelpPresent=false&TaskHelpType=&TaskInstructionsCaption=Instructions&%24PpyWorkPage%24pFoundationName=28F62CCC-8B36-4425-8437-AEACF4CC3285&%24PpyWorkPage%24pCTICall%24ppyDNIS=97253&%24PpyWorkPage%24pIsInterpreterNeeded=false&%24PpyWorkPage%24pCallerType=1&%24PD_VerificationDetails_pa5323438086533762pz%24ppxResults%24l1%24pIsCustomerVerified=true&%24PD_VerificationDetails_pa5323438086533762pz%24ppxResults%24l1%24pIsCustomerVerified=true&%24PD_VerificationDetails_pa5323438086533762pz%24ppxResults%24l2%24pIsCustomerVerified=true&%24PD_VerificationDetails_pa5323438086533762pz%24ppxResults%24l2%24pIsCustomerVerified=true&%24PD_VerificationDetails_pa5323438086533762pz%24ppxResults%24l3%24pIsCustomerVerified=true&%24PD_VerificationDetails_pa5323438086533762pz%24ppxResults%24l3%24pIsCustomerVerified=true&%24PD_VerificationDetails_pa5323438086533762pz%24ppxResults%24l4%24pIsCustomerVerified=true&%24PD_VerificationDetails_pa5323438086533762pz%24ppxResults%24l4%24pIsCustomerVerified=true&%24PD_VerificationDetails_pa5323438086533762pz%24ppxResults%24l5%24pIsCustomerVerified=false&%24PD_VerificationDetails_pa5323438086533762pz%24ppxResults%24l6%24pIsCustomerVerified=false&EXPANDEDSubSectionPatientVerificationDetailsBBBBBB=&%24PpyDisplayHarness%24pKMSearchText=&D_KMTopArticlesPpxResults1colWidthGBL=&D_KMTopArticlesPpxResults1colWidthGBR=&D_KMNewArticlesPpxResults1colWidthGBL=&D_KMNewArticlesPpxResults1colWidthGBR=&D_KMViewedArticlesPpxResults1colWidthGBL=&D_KMViewedArticlesPpxResults1colWidthGBR=

      " 

      The below Simulated body shows only the first match was replaced.