Tagged Questions
1
vote
2answers
67 views
Why is this CAML Query returning all items regardless of the <Where> element definition?
I'm trying to retrieve a list of items where a specific field matches a specific value. There is likely going to be multiple items returned when the query is successful.
Here's what my CAML query ...
0
votes
0answers
24 views
ecmascript check if item exists in lists
I have to check whether _spuserid exists in 10 lists of same structure and columns.
var arrayOfLists=["list1","list2","list3",.......,"list10"];
for(var i=0;i<arrayOfLists.length;i++)
{
var ...
0
votes
0answers
21 views
Put a break in javascript function
Hi I have 10 sharepoint lists.structure,column name,data type all are same.
I need to check whether a particular item is found in any list then do some action using ecmascript.
var ...
0
votes
0answers
18 views
SPServices Search - select first x items using sql type query?
I am using the SPServices library to make search requests in Sharepoint 2010 using this code:
queryText = "<QueryPacket xmlns='urn:Microsoft.Search.Query' Revision='1000'>";
queryText += ...
1
vote
2answers
42 views
How to write a caml query that filters by .pdf or folders?
How can I write a CAML query (for javascript ecma) that filters by only pdf documents or folders in sharepoint 2010?
(this is for document libraries)
Thanks.
3
votes
1answer
95 views
SP2010 JSOM Client Object Model: How to get all documents in libraries including all folders recursively
I have seen a lot of examples and questions about this out there but nothing I have found has helped me accomplish this. I need to be able to grab all the names of the documents within a given ...
0
votes
1answer
121 views
SP 2010 - Client object model (javascript) - How to use get_listItemCollectionPosition for paging?
This is my code:
When I call the function to get the items, it fails (doesn't go to the fail function, it goes into the success function but crashes when I try to get the position object), and I get ...
1
vote
1answer
70 views
How to get only the first x items starting at position y from a list, using CAML query?
In sharepoint 2010 client object model in javascript, I want to create a caml query, that can download items from a list. I have this part working, but I want to download only x items, not the whole ...
0
votes
2answers
45 views
How to check checkboxes in caml query?
In SharePoint 2010 client object model (JavaScript), I am using this caml query to download list items.
There is a column called 'Office' and in it, there are several check boxes (i.e. its a ...
0
votes
2answers
125 views
How to get display name from created by field in sharepoint client object model?
In my sharepoint javascript code, I am retrieving items from a list in my SP 2010 environment. I used a camel query to download specific fields. One of the fields was created by (person who created ...
1
vote
0answers
38 views
getting top X items in each folder with a CAML Query
i'm trying to do a visual representation of a document library using javascript and webservices.
basically i want to present the folders in the library, with a preview of the first few files in each ...
0
votes
2answers
179 views
CSOM list query with JOIN, return tree structure
I have two lists, Parent and Child. The Child list has a lookup field called "Parent", which "looks into" the Parent list, using ID column.
Using CSOM I'm joining the lists with this query
...
0
votes
1answer
432 views
SPServices: How would I add Ascending=False to CAML in GetListItems
How would I use SPServices GetListItems and still be able to add Ascending=False to the CAMLViewFields? I haven't used this for long and I am just wondering if this is possible?
Thanks as always!
2
votes
1answer
4k views
SPService GetListItems with CAML : can't get example to work
enter code hereI am using an example I found on codeplex of SPServices with CamlQuery to try to get list item values with where clause on the ID. For whatever reason this doesn't seem to work for me; ...
0
votes
2answers
664 views
Is <QueryOptions> valid in SP.CamlQuery for meeting work space
I'm trying to query all items in a meeting workspace list. I'm trying a query I think should work, but still only returns items specific to the instanceID. Is there a different flavor for client side ...