Tag Info

Hot answers tagged

3

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 ...


2

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: ...


1

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' ...


1

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({ ...


1

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'];


1

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];


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