Using SPServices to retrieve duplicates (e.g. Same title) of items in a SharePoint 2007 List?

sharepoint.stackexchange https://sharepoint.stackexchange.com//questions/22959

  •  06-12-2019
  •  | 
  •  

From what I know, we can use SPServices to query all the list, store it into a javascript array and then make comparison to find duplicates items (using Javascript) in a SharePoint 2007 List.

(I am looking for a command in SPServices that can immediately identify duplicates without having to store into a array and identify the duplicates items.)

有帮助吗?

解决方案

I'm not aware of such an awesome SPServices function...

SPServices is querying a list to get values. Caml is used for querying and you can't specify not getting duplicates. The only way is to get it in an array and check clientside for duplicates.

What's the problem with storing the values in an array and check afterwards for duplicates?

其他提示

You didn't specify where this is going to be used. There is a function, SPRequireUnique that you can use on the New/Editforms to ensure unique values are submitted.

许可以下: CC-BY-SA归因
scroll top