Tagged Questions
0
votes
0answers
19 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 ...
1
vote
2answers
36 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
76 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
31 views
How to apply CAML in SharePoint view
I'm using SharePoint client object model and trying to query specific view but not getting the correct method to do so. Here is my code,
using SP = Microsoft.SharePoint.Client;
using ...
0
votes
1answer
85 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
62 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
1answer
107 views
How to get caml query to return list items created by the current user?
I want a caml query that only retrieves items created by the user currently logged in. I tried this
specifier = "<Eq><FieldRef Name='AssignedTo'/><Value ...
0
votes
2answers
40 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
97 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
2answers
81 views
CAML Query works in my VS2010U, but not on anybody else's computer
I have a list with records uniquely identified by project numbers. This is column 5 - Col05 in my list. It works fine when I run the code, and I am getting the expected record. I can also read the ...
0
votes
0answers
66 views
CSOM expand user / people field
I have a "Contact" person field and want to access the expanded properties of the field, name, account and work email.
With REST, you can use $expand and project fields like this:
...
0
votes
2answers
364 views
Problem with Calendar CAML Query
i have a problem with a CAML Query for a Sharepoint Online(Office365) Calendar. I try to get all Calendar Appointments between two dates. Here is my code:
private void getFreeDays()
{
...
3
votes
1answer
1k views
How to retrieve items from document libraries using client context without performance lag
I need to retrieve items/list items from SharePoint 2010 document library and display it in a list ListView using C#. I have used following CAML query to retrieve list items and its properties.
...
0
votes
3answers
404 views
What is the difference between CamlQuery and SPQuery
Maybe a simple question, when to use CamlQuery and when to use SPQuery ?
I think that SPQuery is used inside a WebPart running on the SharePoint server, and that CamlQuery is part of the Client ...
1
vote
2answers
337 views
comparing and modifying items in a list
Ok, so adding to my previous question here - I want to get certain columns from a sharepoint list, then compare values of those columns to items in my own c# list and, if they're different, modify ...
0
votes
3answers
588 views
how to check CamlQuery results
.I am running below query against a sharepoint list.
How to check the results of below Camlquery? cPop is set with value 'AboutUs'.
Result is always zero records although list has valid matching ...
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; ...
2
votes
4answers
661 views
where clause is ignored when query list
I have a CAML query which returns lists by a lookup field.
here is the query
<Query>
<Where>
<Eq>
<FieldRef ...
0
votes
1answer
479 views
Caml query returning multiple lists
Trying to load a list from library containing two files. The following code when tested in CamlBuilder it is returning single row according to the filename selected. But in the program it is returning ...
0
votes
1answer
366 views
Logical AND ,OR CAML Query not working in External List
I am using ClientContext Class and CAML query to retrieve items from External List in sharepoint 2010.I have built the query with Logical AND Condition in CAML Query like this
string sDataFilter ...
0
votes
2answers
657 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 ...
0
votes
4answers
5k views
Get Items Under Folder CAML
I am trying to retrive all items that are under a certin folder, in a document library.
this is what i have so far
List DocumentsList = clientContext.Web.Lists.GetByTitle(list);
CamlQuery camlQuery ...
1
vote
4answers
3k views
How to check if a folder exists in a list?
I have the following code:
SPFolder oFolder = myList.RootFolder.SubFolders[folderName];
if (oFolder == null)
{
Console.WriteLine("FOLDER NOT FOUND");
...
2
votes
2answers
865 views
How do I test if I will be able to execute a query (does the site exist)
When I run a (CAML based query) executeQuery against Sharepoint, sometimes the site does not exist (it is created by a workflow process which may not have run). When this happens, I get a ...
5
votes
5answers
965 views
When I execute a CAML query, how do I know what ListItem details I can include?
I was querying a SharePoint library, trying to retrieve some file attributes. Apparently some things like FileType and Date are not supported, even though those fields are listed as a built in field. ...
2
votes
1answer
2k views
ClientContext + camlQuery.ViewXml
I use SP Client and want to return ListItemCollection which will be filled with items from specific view which I choose. I get ViewQuery string by sending view index in viewcollection. Problem is in ...