1
vote
0answers
40 views

How do I make a dynamically created SPList read-only in browser, but editable in code?

In code, I create a SPList. I write to this list programatically, but I would like the list to appear read-only for all users (perhaps excluding admins only) in browser only, i.e. I don't want to ...
1
vote
2answers
38 views

SharePoint2010 is it possible to set an alert on change to column?

I have a user that would like alerts when specific columns in a list are changed. Is this possible OOTB or does it require some C#? If it requires some custom code, does anyone have resources to use ...
0
votes
1answer
23 views

Sharepoint list to XML including the headings?

We store data regarding Scrum sprint retrospectives in a SharePoint list. I have to create a chart for visualizing this information (which is not part of this topic/problem), so I need to somehow ...
2
votes
1answer
25 views

How can I know from list id that it is a list or a library?

I want to know whether the current list which I have is Custom list or a document library. How cant I check this programmatically?
0
votes
1answer
37 views

Getlistservice.asmx ignoring caml query

I am using Sharepoint 2013 Online. I have the following code using the /_vti_bin/lists.asmx web service XmlDocument camlDocument = new XmlDocument(); XmlNode camlNode = ...
0
votes
1answer
41 views

ListData.svc not getting managed metadata

I have written a C# agent that pulls data from SharePoint using the ListData.svc web method, parses the XML data, then puts it in SQL and it works great, however ListData.svc does not appear to expose ...
3
votes
2answers
83 views

Where to store data needed by a custom timer job?

I have a custom ribbon button in each document library and when a user clicks it, I'd like to store some library-related data (URL, id ...) in a way that would make it available to a custom timer job. ...
1
vote
2answers
112 views

Why does SPList.GetItems(string fields[]) return more fields than specified?

I'm using SPList.GetItems(string fields[]) to obtain only specific item fields from a document library: SPListItemCollection items = list.GetItems("UniqueId", "Name"); However, iterating the items ...
0
votes
2answers
77 views

Import File from SharePoint and Link this file with SharePoint (File- Excel File)

I am using SharePoint 2013 and Microsoft Office 2007 or above. Scenario: I upload a Excel file to a SharePoint 2013 list. Now, I want to import this Excel file from this SharePoint list back to ...
0
votes
1answer
63 views

Get Items from limited list by providing username and password - C#

I'm using this code in order to get items from SharePoint list. I have a SharePoint list that limited to certain users. How can I provide by this code (or else) a username and password and login as a ...
0
votes
0answers
253 views

clientContext.ExecuteQuery() giving an error: The remote server returned an error: (403) Forbidden

I'm trying to connect to SP site programmatically and get List data (external list) But getting an error: The remote server returned an error: (403) Forbidden. At clientContext.ExecuteQuery(); ...
0
votes
2answers
42 views

Automatically add tasks to list Task from another list

I have 4 lists: and Project Tasks which contains Items (content type:Summary Task). When I add new Item in Project Tasks I need to add all Tasks (content type:Task) from my list ...
0
votes
1answer
2k views

How to get a document library URL from c# in visual web part?

I'm making a visual webpart in a sp2010 environment. I am trying to get the document library URL. I have this code so far: My variables are not getting the right values. Like the libraryURL, ...
0
votes
0answers
67 views

Content Iterator does not work

I'm trying to query listitems beyond the threshold limits using contentiterator class and yet the below code seems to hit the threshold levels. What am I missing ? using (SPSite site = new ...
0
votes
1answer
163 views

SharePoint Lists Web Service Proxy Unauthorized Error

I am trying to get data from a SharePoint list by using SharePoint Lists Web service. I have a MS Office Excel Add-In with a WPF User Control inside it. I used the following code to make a proxy ...
0
votes
0answers
18 views

How to add to Sharepoint list editing mode false after value change

I have got a list with a lot of elements. I want to add to sharepoint list date which block editing when the date expired. When the date not equal the selected Value.
1
vote
1answer
163 views

Looping through all the document libraries and modify the items

I have here a piece of code which loops through the all site collections and webs and lists to find particular and modify some items: foreach (SPSite site in webApp.Sites) { ...
0
votes
1answer
21 views

COM ListItem not updating

ClientContext cl = new Microsoft.SharePoint.Client.ClientContext("http://" + "mysharepoint" + "/" + SubWeb); System.Net.NetworkCredential cred = new System.Net.NetworkCredential("myuser", "mypass", ...
0
votes
1answer
42 views

Developing a custom NewForm

I have created a custom layout in _layours/PhoneBook/createform.aspx and then wrote the following code to run upon activation: private void newAddFormForMembers(SPWeb web) { SPList ...
0
votes
0answers
23 views

Site definition with workflow

i need advice on how to implement workflows inside a specific situation. We have a list of projects. When someone adds a new project we need to create a subsite for this project (with the proper ...
6
votes
2answers
445 views

Anonymous access: Add an Item to List without allowing to View the List

I'm creating a 'Contact Us' webpart with form to allow anonymous user to send a message which will be added to a SharePoint List. However I cannot grant the anonymous user the permission to Add ...
0
votes
0answers
418 views

How to filter list in sharepoint by another webpart(dropdown list) in C# code?

I wanna filter list in sharepoint by using dropdown list in visual studio, And view in sharepoint can't serve me in that , And i searched a lot but i didn't reach any thing
1
vote
2answers
633 views

Listdata.svc via REST refuses to return data

I'm trying to pull down some list data from listdata.svc using the standard method as documented in the msdn: var listUrl = 'http://development.contoso.com/_vti_bin/ListData.svc/Contacts'; $.ajax({ ...
1
vote
1answer
322 views

In a SharePoint List I cannot see items that are in a folder

I have a sharepoint list (Not Library), where I am programatically adding in a folder: SPList list = web.Lists[ListID]; SPFolder parent = list.RootFolder; SPFolder child = ...
0
votes
1answer
66 views

Change .aspx on a SPView

I'd like to create a SPView for my list that points to a complete custom aspx page. And I need to do that through c# code. Even if I could just override the AllItems.aspx in a Visual Project Project, ...
1
vote
1answer
299 views

Customizing discussions list in SP2013 with JsLink

I'm working on a community site and was looking at ways to modify UI of the discussion list that is presented to the user (and possibly more going forward). It is my understanding according to the ...
0
votes
1answer
86 views

List with Page_Load event

For a project I'm working on, I'd like to get a Page_Load C# method behind a Document Library, but I've been unable to achieve this, so far. Any help would be greatly appreciated! Some details on ...
0
votes
1answer
44 views

Link to document library

I have a small issue, basically i have an instance of document library / list, now, how can i get a link to that list / document library? I'm working with sp 2007 To clarify, here is the code: ...
0
votes
1answer
125 views

Appropriate List permissions and read/write using visual webpart

I am learning SharePoint and just learned how to develop Visual Webparts and read data through CAML and write data also. I have a portal where I have one site collection and under that site collection ...
0
votes
3answers
75 views

On ItemUpdating modify property

I have an issue, with this event. What my purpose is: i want to update one of the properties based on few criterias, so i want do fill a field A if field A is empty and the field B is not empty and ...
2
votes
2answers
740 views

Sharepoint 2013 Community site: Unable to reply on a post

Im working on Sharepoint 2013 Community site template. When I manually create a discussion in discussions list liking and replying features are working fine, but when I programmatically add a ...
4
votes
2answers
132 views

ListItem[“Property Name”] VS ListItem.Properties[“Property Name”]

When we try to get list item properties, three ways of getting property I remember are, ListItem["Property Name"] //always work fine ListItem.Properties["Property Name"] // works fine unless I ...
6
votes
3answers
288 views

Filter out folders from a user alert against a list

I have created an alert for a user against a list (more specifically, a document library). I want the user to be notified of all changes regarding list items (documents) and not any sub folders. ...
0
votes
1answer
67 views

Entering data into SharePoint lists via Silverlight forms

Morning all, Can anyone advise me if it's possible to enter data into a SharePoint list via a Silverlight Application? if so, are there any basic steps that someone making thier steps into ...
0
votes
2answers
88 views

Sorting out lookup values while getting them

I have two lists, List A [Document Number, Name, Title,...] (document library) List B [Information Number, Name, Title, Document Number] (simple list) Now List B is getting all documents from List ...
0
votes
1answer
30 views

Checking if a list is consuming lookup value column or not

I have two lists, List A [Document Number, Name, Title,...] (document library) List B [Information Number, Name, Title, Document Number] (simple list) Now List B is getting all documents from List ...
0
votes
0answers
33 views

GetList with a Library

I'm relatively new to SharePoint 2010 development and I recently rediscovered the DataContext class. Of particular interest right now is the GetList method. I've seen examples and sample code around ...
2
votes
1answer
198 views

rootFolder.ContentTypeOrder throws unexpected error for sandbox solution

I'm trying to add content types into a library list, in order to make "Visible on New" option ticked. Firstly I enabled contenttypes in the library, then I want to do this: SPFolder rootFolder = ...
2
votes
2answers
4k views

how to give Role permission to list programmatically?

I have set my web permission to Inherit Permissions as well as Lists.and programmatically i have add SPUSER to web with assigned 'Restricted Read' access Role. and also associate SPUSER to List1 ...
2
votes
2answers
346 views

Item Updated through different forms runs Item Updated event receiver

Simple but mind blowing question it is. Basically I am updating a specific list items through two different ways, one is using ASP.NET web forms and one is using default list forms provided by ...
4
votes
1answer
132 views

Add a Three-State Workflow by Code?

I want to add a three-state-workflow to a list. I know how to add this via Designer but - to keep manual works low - I want to achieve the same goal by Code. This is what I need: Add a ...
0
votes
1answer
73 views

Adding EventReceiver to Dynamic List

I am trying to add a Event Receiver to a list that is dynamically created (by code). So i cannot add a event receiver on the list directly. I found a way to attach a Event Receiver to the list by ...
1
vote
1answer
226 views

SPList.Delete() vs. SPWeb.Lists.Delete(SPList)

Assuming I already have the list object, is there some difference between calling its Delete extension as opposed to removing it from the Lists collection? Why would I ever choose the latter?
4
votes
2answers
2k views

JQuery Accordion with SharePoint 2010 Custom List

I have a FAQ custom list in Sharepoint 2010 with two columns: Question (title column renamed) and Answer. I want to display the questions and answers from the sharepoint list in JQuery Accordion. ...
0
votes
2answers
94 views

Does Pages in SharePoint 12 hive have code behind files

I am not sure if we call them application pages or something else but am talking about standard sharepoint forms like "NewForms.aspx" or "EditForm.aspx" for lists in 12 hive. Does they have any code ...
2
votes
1answer
2k views

How to add a registration button to a calendar list / list form?

my use case is: I want to create an event management system without using meeting workspaces (sadly I/We can't use them, at least the senior dev. told me). There shall be: One Calendar List, ...
2
votes
2answers
2k views

How to get item count for a List's View?

I have a Sharepoint List called "Tracker" that represents customer-submitted defects. I have a View on this list that only shows the items created in the last 7 days. This view works just fine when ...
0
votes
1answer
46 views

How to make faster readable elements from the list?

I have an ASP Calendar, which shows elements from the list. If I try to bind the elements to the list, there are a lot of elements for example 35 429 elements. It takes up to 4 minutes to load this ...
1
vote
2answers
209 views

Is it possible to programmatically write to 2 different lists at the same time?

So heres a conceptual question that I can't really find in any books. Is it possible to programmatically write to 2 different lists a the same time. I mean I think it is, but my code is not working ...
0
votes
1answer
31 views

How to backap a list with a dates older than a half of Year

I want to backup a list when a dates are longer then one half of year. How can I do it on list? I have got a list: Contract | Worker | Day | Percent ...