Tag Info

Hot answers tagged


Since you mentioned SPServices, below is demonstrated how to query list item by file name using GetListItems operation: function fileExists(webUrl,listName,fileName,result) { $().SPServices({ operation: "GetListItems", webURL: webUrl, listName: listName, CAMLQuery: "<Query><Where><Eq><FieldRef ...


Without knowing more information about your code, it's hard to make a suggestion. But what I would do is create a query to ListData.svc with the following filter: var queryString = "?$filter=Name eq '" + provisdionalName + "'"; var listUrl = "_vti_bin/Listdata.svc/YourList/$count" + queryString; $.ajax({ type: "GET", url: ...


Have you tried something like this? <Query> <Where> <Eq> <FieldRef Name='ID' /> <Value Type='Number'>{YourIdGoesHere}</Value> </Eq> </Where> <OrderBy><FieldRef Name='FileLeafRef' /></OrderBy> </Query> <ViewFields> <FieldRef Name='ID' ...


I think you will have to try another way. SPCascadeDropdowns can use a CAML Query, but a CAML Query can not return the unique items the way you want. There are a number of options discussed on the SPServices Discussion Forums for getting unique items from a list. I like Frederik's option of returning the HTML for a dropdown from the filter.aspx $.ajax({ ...


Since SPServices.SPGetCurrentUser() function returns an associative array where the keys are mapped to fieldNames you could access it as: var name = thisUserValues.Name; or var name = thisUserValues['Name'];


Instead of using fieldNames, just use fieldname. $().SPServices.SPGetCurrentUser({ fieldName: "Name", debug: false }); Or using your current function it'd be this I believe: var thisUsersValues = $().SPServices.SPGetCurrentUser({ fieldNames: ["ID", "Name", "SIP Address"], debug: false }); var name = thisUsersValues[1];


Your CAMLQuery: "<Where><Eq><FieldRef Name='Employee' /><Value Type='Lookup'>" + thisUserAccount + "</Value></Eq></Where>" should have "<Query>" tags: CAMLQuery: "<Query><Where><Eq><FieldRef Name='Employee' /><Value Type='Lookup'>" + thisUserAccount + ...

Only top voted, non community-wiki answers of a minimum length are eligible