Tagged Questions
0
votes
0answers
10 views
Why does SharePoint 2010 convert “qty01” to %5Fx0071%5Fty01
I have been using the SharePoint 2010 client object model to create a list in sharepoint. When it gets to adding a field called "qty01" it replaces it with "%5Fx0071%5Fty01". Is qty01 reserved or ...
2
votes
2answers
56 views
Get list properties via JCOM
How do I get list properties like BaseTemplate, ItemCount, ListItemDeletedDate etc. via Javascript Client Object Model for SharePoint 2013?
4
votes
1answer
202 views
Error using javascript to retrieve a SharePoint list's items
I am trying to use this method to query items of a column of a list in my SP site via javascript (the reason I am doing this is to display that info on the page by modifying the html tags in the DOM), ...
1
vote
0answers
65 views
Filter Calendar view by Title in SharePoint 2010
i want to filter calendar view using title field. Is it possible to filter calendar view without make changes in modify view ?
1
vote
1answer
483 views
List item validation using .NET Client Object Model
On a SharePoint Foundation 2010 installation, I have a list defined and have set some simple validation rules on a couple of the fields:
Text field (required)
Number field (required, min: 50, max: ...
0
votes
1answer
417 views
Get the parent of a List Item
Given the following information;
string webUrl, Guid listId, int itemIdInList
I'm trying to retrieve the parent of this item, whether that is a List or another ListItem (i.e. a folder).
Can anyone ...
0
votes
1answer
920 views
How to retrieve all items from a list (with custom fields) by javascript object model
I need to get all my custom fields from my list by Javascript Object Model..
The code I wrote down is this:
var items;
$(document).ready(function () {
...
1
vote
2answers
328 views
Disable List Event Handler in the Client Object Model
I have a client windows application that is uploading many rows of data to a list. However, I don't want the event handler on the list to fire while rows are being added via the windows application.
...
1
vote
2answers
1k views
Try Get Field with client object model without error
Question regarding the client object model. I wrote some client script for a procedure, but i don't know, how can I determine if the list or item has the field available or not?
For example:
...
0
votes
0answers
165 views
How set Default-Values of Choice by the Creation of new Lists via (JavaScript) CSOM
Im trying to create a list by using the JavaScript CSOM, but Im stuck at a certain point.
In this example I use the Template "SP.ListTemplateType.issueTracking" to create and enhance a list,
in this ...
0
votes
2answers
535 views
Batch update with javascript client object model?
Anybody know how to do batch list updates with the javascript client object model in Sharepoint 2010? I'm putting the list into an array right now and then a kendo grid is reading it. I can update ...
0
votes
3answers
947 views
Object doesn't support property or method 'get_item'
When i try with this code i got error
Object doesn't support property or method 'get_item' . Please help me to resolve
function showTitles(urlColumnName) {
var selectedItemIds = ...
0
votes
1answer
2k views
The property or field has not been initialized. It has not been requested or the request has not been executed
I am getting this error and from what I understand this is when you try and access columns from the list item. I have tried various things including the line below:
clientContext.Load(items, eachItem ...
4
votes
2answers
215 views
Can you call SPSite on a different machine to SharePoint setup?
I'm trying to call SharePoint from within a standard .NET class library. This will probably be hosted on a different server to SharePoint.
I just need to return an item from a list, and wondered if I ...
1
vote
2answers
331 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
1answer
65 views
compare values in list and change if necessary
So guys, I have a sharepoint list with and fields like "webID, url, rating" and a c# list with more or less the same fields. My task is to compare the lists by webID and if the row's "rating" field is ...
1
vote
3answers
731 views
How to verify in Javascript Object Model if a List Exists
How can I verify if the list I'm trying to retrieve in Javascript really exists?
My code is:
function Search() {
var context = SP.ClientContext.get_current();
this.site = context.get_site();
...
6
votes
3answers
3k views
How to get the ID of the list item just inserted using ecmascript
I am stuck at a place where I have to update a list which has a Lookup column. For example I am using this code to update my normal list
var clientContext = SP.ClientContext.get_current();
...
1
vote
0answers
208 views
Validate list item with javascript API
I want to develop a custom datasheet view to edit a list.
I add item through the javascript API. The problem is that the service doesn't control fields value. For example :
- I add an item with a ...
0
votes
2answers
1k views
How to get List Name from JS Object Model - List Name from URL problem
I'm trying to connect Ribbon to Pages.. This works, javascript get what I need and pass as parameter to my page.. I pass the URL and the SelectedItemsID..
I'm facing a problem:
If I had a List ...
0
votes
2answers
887 views
Specify item fields to Load using Sharepoint 2010 Client OM
How can I dinamically generate/specify a list of item fields I want to load when querying a list using the Client OM?
This is possible to do using the tag on the CAML query, but this loads additional ...
0
votes
2answers
358 views
client object model and jquery not loading — sort of
I'm getting some data from a list via the client object model. After I get the list data, and the page loads, I want to use a little jquery to add a hover effect. Easy enough, right? Well ...
0
votes
2answers
2k views
How to get Item from ListItem with Client Object model
I'm trying to printOut some items from a ListItem. But when run the code I get following exception:
"Invalid usage of query execution. The query should be executed by using ExecuteQuery method on ...
1
vote
2answers
299 views
Selecting single user from User Information List
I've got a problem with not being able to select a single list item from the User Information List,
I have used U2U CAMLbuilder to build a query that extracts an entry with the ID = 1
When run in the ...
0
votes
1answer
466 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 ...
2
votes
2answers
262 views
Clear list data from code
I need to clear the data contained in a list programmatically.
I know I can iterate through every single item to delete it, but that takes forever.
Any suggestion?
(I'm with the client object ...
7
votes
1answer
349 views
JavaScript Client Object Model functionality to get all the non hidden lists of current web and listing them
We have requirement to get all the non hidden lists of current web using JavaScript Client Object Model(JSOM). I have tried the below code but failed to get the desired result.
function ...
0
votes
1answer
128 views
Error while downloading Lists in a spweb
Here is the code
private void downloadList(SPObjectData objectData)
{
using (SPWeb currentWeb = objectData.Web)
{
foreach (SPList list in currentWeb.Lists)
...
4
votes
1answer
1k views
How to create SharePoint list with custom template using Managed Client Object Model?
Creating lists in SharePoint using Managed Client Object Model is rather easy task. Here's how to create a list with SharePoint's custom list template:
ListCreationInformation lci;
List list;
lci = ...
7
votes
3answers
1k views
How to add list web part to the SharePoint page using Managed Client Object Model?
I am trying to add new web part to the SharePoint page using Managed Client Object Model that will display a list. I can't seem to be able to figure out the code of the web part's XML that is ...
1
vote
1answer
175 views
Cannot cast to clientContext.CastTo<T> (Managed Client Object Model)
I am writing a method that is supposed to create a SharePoint list field. I want to be able to make my method return the newly created field. The problem that I am facing is that ...
2
votes
2answers
1k views
How to add new item in Links list using Managed Client Object Model?
I have created a standard SharePoint Links list, using Managed Client Object Model (for Silverlight). Here's the code:
ClientContext clientContext = new ClientContext(sitePath);
...
6
votes
1answer
2k views
How to Impersonate Users Via Client Object Model?
I want to insert new SP List items -- blog comments, to be exact -- on behalf of other users.
Ideally, I'd just pass a SharepointID for the user, but that doesn't seem to be possible. I think that ...
1
vote
1answer
1k views
Setting User column value via Client Object Model
I'm trying and failing to set the value of a User column via the SharePoint client model:
int userID;
string displayName;
/*
Look up userID and displayName from Web Service here
*/
...
1
vote
1answer
505 views
How to Union 2 Lists Using ClientContext?
I have 2 lists which both contain identically-named fields that I'm trying to access using C#. Using ClientContext, how can I perform something that does the same thing as a SQL Union to give me one ...
0
votes
2answers
2k views
How to read from a list using Silverlight and the SharePoint 2010 Client Object Model?
I am attempting to write a simple Silverlight webpart that reads information from a list and then outputs it to a data grid. I can get all of the lists, their titles and their field titles fine but ...
3
votes
2answers
1k views
Can I use the SharePoint 2010 Client Object Model with Sharepoint 2007?
Any workarounds or alternatives that work on both SP2010 & 2007.
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b4579045-b183-4ed4-bf61-dc2f0deabe47

