Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: SPServices Filter Dropdown

$
0
0
Hi,

I'm having a wee issue with the Filter Dropdown.

I've managed to get the filter working by using a choice field "Project Status" and having my CAML Query as:
"<Eq><FieldRef Name='Projectstatus'/><Value Type='Text'>active</Value></Eq>";
I then tried to filter by "Created By" and getting the current user like:
var userName = $().SPServices.SPGetCurrentUser({ fieldName: "Title" });
        
        var query = "<Eq><FieldRef Name='Created By'/><Value Type='User'>" +userName +"</Value></Eq>";
But when I try that I get the error:

Error in function
SPServices.SPFilterDropdown
Parameter
relationshipListColumn: ProjectNumber
Message
Not found in relationshipList My Projects

Click to continue

I guess it's a problem with using the Created By field, as that's the only thing I changed. But if anyone can give me a kick in the right direction as to where I've gone wrong that would be wonderful.

Cheers...

Big John

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>