SPList represents a list on a Microsoft SharePoint Foundation Web site.

learn more… | top users | synonyms

1
vote
2answers
76 views

Enable versioning on SPList programmatically

I might be missing something obvious, but I am trying to enable version history on a regular task list programmatically. It is definitely possible from the UI, but how can this be achieved in code? I ...
1
vote
1answer
31 views

Is there a setting that determines the default root folder of a freshly-created SPList?

I noticed that when I create lists on my development site(s), they're created right in the site's root (in other words, URLs look like xxx/sites/DEV/DocLibX). The last time I looked (a few days ago), ...
0
votes
1answer
13 views

Calculated field formula

When I tried this, it didn't work... =IF([Circuit Type]="ISDN",(([len_26] + [bt_26] + [dlen_26] + [dbt_26]) * 2.81) + (([len_24] + [bt_24] + [dlen_24] + [dbt_24]) * 2.03) + (([len_22] + [bt_22] + ...
0
votes
1answer
40 views

How do i Generate different calculations depending on what item is selected in drop down box?

Hi guys I am making a SP 2013 site and am currently creating columns... I have a drop down column (Circuit Type) , four text fields (Num1, Num2, Num3, Num 4) and a calculated column (Loss). The ...
0
votes
1answer
22 views

Iterating through list items by name

I have a conditional statement that uses named columns of a list item. Eg. Stage 1, Stage 2, Stage 3.. Is there a way that I can iterate through them to satisfy the problem I'm having when stating the ...
0
votes
1answer
85 views

Restricted Read Over Contribute Permission Sp 2013

I have a Document library where userA has been placed under 2 groups. Group1 has been given Restricted Read and Group2 has been given Contribute. In this Scenario UserA cant edit the document even ...
0
votes
1answer
60 views

Display a list as readonly regarless of permission level

I am currently trying to display a list view outside of its site collection. This has been done using String str = mySPView.RenderAsHtml(); Controls.Add(new LiteralControl(str)); Since it is ...
0
votes
1answer
837 views

Sharepoint Designer SPList option “Hide from browser” in code?

When I hide the list using list.Hidden = true; It's hidden from the Quick Launch and it's also hidden from the Sharepoint Designer. I'm rather interested in a useful feature for lists in ...
3
votes
0answers
25 views

Efficiently get a collection of all users following a list in SP2013 using CSOM or SSOM?

Does anyone know if there is a way to leverage the SocialFollowingManager() class or the SPList() class to efficiently get a collection of all of the users that follow a specific List? I thought ...
3
votes
0answers
170 views

SPGridView - How to make it look & feel like built-in SP grid

In C# code, I'm working with the SPGridView control to display list items from a list of type SPDocumentLibrary. It binds fine, but it looks totally plain and has basically no features. I would like ...
2
votes
0answers
145 views

Is my Object Casting Model acceptable?

I'm creating a SharePoint application, and am trying some new things to create what amounts to an API for Data Access to maintain consistency and conventions. I haven't seen this before, and that ...
1
vote
0answers
28 views

how to implement picture library look and feel in provider hosted App?

How to implement the same view (design) of SharePoint list (picture or document library) in provider hosted App, for now I am using asp.net controls but the final view of app doesn't belong to ...
1
vote
0answers
33 views

Replace default List View Web Parts

As the title explains, I am trying to remove the default Web Parts that are associated to list items and replace them with my own custom web parts. Here is what I've attempted so far: SPList list = ...
1
vote
0answers
100 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
0answers
84 views

Using DefaultNewFormUrl's link on Document Library opens item on save

As our company tries to move away from the folder structure and into a tag-driven structure we were left with a dilemma. Users can only add content to folders/libraries yet they don't want to have to ...
1
vote
0answers
40 views

'E-Mail a Link' Ribbon Button generates a wrong URL on Grouped Views

When a Grouped View is defined in a List View Web Part, the OOB Ribbon Button 'Email a link' on a List/Library Context Tab, generates an incomplete URL (only Web Application URL) Override the Ribbon ...
1
vote
0answers
88 views

External lists: Field GUIDs always empty?

I want to turn an external list into a DataTable using the ID/GUID values of external list's Fields as the DataTable column names; however, I've noticed for the external list I'm using, all of the ...
1
vote
0answers
83 views

Remove ECB from XsltListViewWebPart

I have created XsltListViewWebPart programatically. I want to remove ecb on list items, I know this can be done by changing xsl of the webpart but I am getting null in it. Is there any way to do this? ...
1
vote
0answers
201 views

Append Changes to Existing Text of Multiline of text field set “No” after create new site from template

Description: i have a site, and it contains a list. in that list, multiple line of text description field. set append changes to existing text of that description field is "Yes" now i creating site ...
1
vote
0answers
210 views

SPSiteDataQuery without subfolder items?

I'm trying to use the SPSiteDataQuery to return the contents of several lists across a site collection. The problem I'm having, though, is that while there are only a few documents at the root level ...
1
vote
0answers
65 views

SPList Replacelink method

I am trying to find and replace url links in sharepoint lists. The ReplaceLink method(SPList class) does the job for straight forward urls like "www.google.com/test" but truncates the url parameter ...
1
vote
0answers
43 views

Is my Data Access model acceptable?

I'm creating a SharePoint application and want to do things the right way as often as possible. I'm deploying a series of Lists in a Site Definition, and I want to lock down Data Access to a series ...
0
votes
0answers
22 views

Why is my list total showing as “Count= undefined”?

I'm updating a view on an existing list programmatically but I can't get the aggregation to work correctly. I'm setting it as follows (the values are pulled from an xml site definition): if ...
0
votes
0answers
12 views

Same question but different column names

Im sorry for bothering you again but when I tried the same formula but different column names it did not work... Column names for example are: F1 Makeup (26),F1 bridge tap (26),F2 bridge tap (26),F1 ...
0
votes
0answers
33 views

NullReferenceException when attempting to read from SPList on postback in UpdatePanel

I am developing a SharePoint 2013 Events Calendar Visual Web Part which relies on a SharePoint list to display event data asynchronously. I've tested the concept in a raw ASP.NET environment and it ...
0
votes
0answers
33 views

Not getting sharePoint lookup addtional field in infopath form

SharePoint List has a Infopath Form, in this list one Lookup column say for eg. "FirstName" and also select addtional column named "Email" Now i have to filter lookup dropdown based on addtional ...
0
votes
0answers
28 views

How to syncronize Excel ListObject with SharePoint List

I am import a SharePoint list to Excel. I edit this list in Excel and would like update this modification to my SharePoint source list. I would like do with vb.net. My code snippet is base one method ...
0
votes
0answers
156 views

Get List by “InternalName”

I'm trying to use the SharePoint 2013 JavaScript Object Model to retrieve a List via an internal name equivalent. SPList doesn't have a Name or Internal Name property. It is referred to by the ...
0
votes
0answers
26 views

Custom triggers for Alerts in SharePoint 2013

Is it possible to set up an alert that triggers after 5 or more items are entered into a list within a specific timeframe (i.e. 2 hours)? List is SharePoint 2013 custom template. Email would not ...
0
votes
0answers
25 views

CQWPs need reconfiguring when their list is deleted

I have a bunch of Content Queries on a site that are set to show items from a SharePoint list. There's a key field for each list item and the CQs have a filter that matches on the key. I'm managing ...
0
votes
0answers
51 views

Managed metadata not loaded in standard metadata-dialog

I have a standard SharePoint list which has a (required) Managed metadata-column. When I want to add a new item and click on the icon to show the Managed metadata-dialog, the dialog opens but nothing ...
0
votes
0answers
318 views

Excel Online - refresh data in a SharePoint list

I have added a SharePoint list to an excel spreadsheet as an odata feed. This data connection refreshes perfectly using Excel on the Desktop. However, when I refresh the connection in the Excel web ...
0
votes
0answers
135 views

_ModerationStatus on list items is always draft from SPQuery

I am querying for list items in a timer job. The list has moderation enabled. It has various list items that have different approval status (e.g. scheduled, approved etc.). However the query always ...
0
votes
0answers
153 views

Programmatically updated SPList view filter is showing <!#Render Error--> in the view Moss 2007

Am appending a filter condition to a particular view alertview.Query = viewQuery.ToString(); alertview.ParentList.ParentWeb.AllowUnsafeUpdates = true; alertview.Update(); ...
0
votes
0answers
97 views

Proper way to get all lists of a certain type from an entire site collection regardless of current location

I'm creating a webpart that gives the user a feed of any annoucement list in the entire site collection, so they can aggregate data to a central portal. I'm currently using the following, but can't ...
0
votes
0answers
2k views

SPList multiple content types - “Column does not exist” error

I'm using the Publishing feature of SharePoint. I have a custom Content Type that inherits from the ArticlePage Content Type, and is bound to the Pages list of a given site. My custom Content Type ...