1
vote
1answer
37 views

How to embed SPList to a custom application page?

I have a custom central admin list and would like to insert it to a custom application page in a way that would make it look exactly like it does if you access the list via its URL - i.e. it should ...
0
votes
0answers
54 views

How can I change a list item's user permissions programmatically?

In my SharePoint list, there are different users in different list items. By using C#, I want to change the users' permissions to "Read", but I couldn't find an exact solution for this. If you can ...
0
votes
0answers
17 views

SP13: Extracting Data from List to External Devices

I am not sure if this is possible, but it's worth asking. SP13 allows data to be exporting to Excel and other applications. However, is there a way to extract data from a list or document library to ...
0
votes
0answers
21 views

SP13: List Item Modified Indicator

When I create a new item in a list a "green" indicator appears next to the item. The "green" indicator appears signaling that it's a new item. Is there a way in SP13 that when an existing item on ...
0
votes
2answers
26 views

numeric column to autofill

I created a column for a number and I selected default value and populated the box with 180. I does not fill the field with the default. How do I autofill?
1
vote
0answers
77 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
85 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
76 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
30 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
90 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
64 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
153 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
180 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
557 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
72 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
299 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
53 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
3k 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
1answer
180 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
28 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
239 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
22 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
46 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 ...
7
votes
2answers
705 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
491 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
986 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
531 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
85 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, ...
2
votes
1answer
471 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
118 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
45 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
146 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
87 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
1k 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
159 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
348 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
74 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
93 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
36 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
244 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 = ...
3
votes
2answers
5k 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
383 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
153 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
95 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
283 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
3k 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
102 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
3k 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 ...