Quantcast
Viewing all articles
Browse latest Browse all 6517

New Post: Operation GetListItems is not working when I insert the CAML query to filter the options.

pzcar:

The problem is that the value you are specifiying for the UserName isn't defined. You'll need to have a value. You may be able to use SPGetCurrentUser to obtain it, but it's not totally clear what your UserName column contains. Assuming it's an ID, you should be able to get it to work with something like this for the current user, anyway:

     CAMLQuery: "<Where><Eq><FieldRef Name='UserName'/><Value Type='Integer'>" + $().SPServices.SPGetCurrentUser({fieldName: "ID"}) + "</Value></Eq></Where>",

M.


Viewing all articles
Browse latest Browse all 6517

Trending Articles