SPServices icon indicating copy to clipboard operation
SPServices copied to clipboard

SPUpdateMultipleListItems does not work in the document library

Open MickVazovsky opened this issue 7 years ago • 3 comments

Tell me why SPServices does not work in the document library, there are no problems in the list, but the library does not work out either, the Russian language name, tried both GUID and by name...it's still useless... script type="text/javascript" src="/SiteAssets/jquery.SPServices-2014.02.min.js" $().SPServices.SPUpdateMultipleListItems({ listName: "Office", CAMLQuery: "<Query><Where><IsNotNull><FieldRef Name='ID' /></IsNotNull></Where></Query>", batchCmd: "Update", valuepairs: [["ValueItem", 'Update']], debug: false, completefunc: null });

MickVazovsky avatar Sep 05 '17 08:09 MickVazovsky

  • What have you done to debug?
  • are there any errors in the console? If so: follow the stack tree to find the root cause calling code.
  • is the API call made? And if so, any errors returned by Sharepoint?
  • what version of SPServices are you using?
  • What version of Sharepoint?
  • MOST IMPORTANT: what are you trying to do? The code snippet you posted makes no sense.

I don't think anyone here can tell you what might be wrong just based on your initial post - but it sounds like you already made up your mind - library is "useless". If you really want help, let me suggest more constructive dialog here other that short words that really provide no help.

Being that SPServices broadly used by many, I would bet, that the problem is probably all on your side - but that's just a guess.

And: on a final note: remember that the use of FOSS is a privilege and not a right. We should all be thankful to folks like Marc for sharing their tools with the rest of the world.

Paul

-- sent from mobile

purtuga avatar Sep 05 '17 12:09 purtuga

Does not work in the 'project documents library' where a collection of documents is organized.

MickVazovsky avatar Sep 07 '17 11:09 MickVazovsky

Are you also referencing jQuery? See the General Instructions. Also, like @purtuga, I can't tell what it is you're trying to do. Could you explain your goals?

sympmarc avatar Sep 07 '17 15:09 sympmarc