Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

when i updated any other column, its repeating and apend same values and showing in list version code below.

$
0
0


Hi I am using the following below code but for Getting 2 columns versions from SharePoint list . But when i updated any other column, its repeating/Appending and showing like below image  

function getAllnotesList(requestId){
$().SPServices({
  operation: "GetVersionCollection",
  async: false,
  strlistID: "2A5C55F1-EFF9-46B9-AC00-1325AD325FA8",
  strlistItemID: requestId,
  strFieldName: "InternalWorkerNotes",
  completefunc: function (xData, Status) { 
    $(xData.responseText).find("Version").each(function(i) {// debugger;
    //alert("Name: " + $(this).attr("AdditionComments"));
      internalNotesList.push($(this).attr("InternalWorkerNotes"));
    });  
  }
}); 
}


Shiv Sharma



Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>