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 مع الإسناد
لا تنتمي إلى sharepoint.stackexchange
scroll top