Filter a List Based on User Office

Coordinator
Jan 20, 2012 at 1:34 PM
ionut_huma Wed at 12:14 PM

Hi, how can I filter a sharepoint list based on user Office
var thisUserName = $().SPServices.SPGetCurrentUser({
fieldName: "Office",
debug: false
});

Coordinator
Jan 20, 2012 at 1:35 PM

ionut_huma:

You can use the thisUserName in your CAMLQuery with the GetListItems operation or filter in the DOM based on the value. You haven't given any specifics, so it's hard to know what to recommend.

M.