This project has moved. For the latest updates, please go here.
1

Closed

CAMLViewName not working?

description

From https://spservices.codeplex.com/discussions/565044

I am sucesssfully using the SPGetListItemsJson function, but it seems to ignore the CAMLViewName parameter. I'm taking that this parameter should limit the columns and the sorting to whatever is specified in the specified SharePoint list view.

For instance, I've created a list view named "Recent", where only the columns "Title" and "Created" are selected, and set the default sorting to "Created" in reverse order, but when setting the CAMLViewName parameter to either "Recent" or its GUID "{C1A43BDF-4F07-42ED-A101-CC28AECF65D0}", but the output does not change, it displays the items in the default order and with all the regular columns.
Closed Dec 16, 2014 at 6:34 PM by sympmarc
Fixed/deployed in 2014.02

comments

sympmarc wrote Oct 24, 2014 at 4:21 AM

There were several places where I had used CAMLViewName instead of viewName, which was causing this issue (and perhaps others).

Fixed in 2014.02ALPHA6.

sympmarc wrote Oct 24, 2014 at 4:23 AM

BTW, note that it should be viewName and not CAMLViewName