Rows of items containing columns of information.

learn more… | top users | synonyms (1)

7
votes
3answers
12k views

Best method to create custom NewForm / EditForm

I am new to sharepoint development and need to create some custom NewForm/EditForms for a new custom list I am creating. It seems like I have two choices: http://community.bamboosolutions.com/blogs/...
7
votes
1answer
687 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 ...
7
votes
1answer
1k views

Where to load data in the lifecycle of custom webpart

I have a webpart where I access a sharepoint list and render contents of that list. At the moment I'm fetching the data in CreateChildControls(). When a button is clicked the data will be fetched ...
7
votes
2answers
2k views

How do you stop scroll position maintained after postback on lists?

I have a list with paging enabled and a page size of 10. When you scroll to the bottom of the page hit the next button in the list the page redirects to itself with different querystring parameters ...
7
votes
1answer
11k views

How can I restart list item ID numbering at 1?

I deleted list items that include an ID from the list and the recycle bin. When I create a new list item, the ID populates where the last line item left off. Now is there a way to make a new ID ...
7
votes
2answers
2k 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 ...
7
votes
1answer
537 views

Set Task list EnableAssignToEmail in CSOM

I would like to set the EnableAssignToEmail bit on a task list via CSOM after a list is created dynamically. I have found a way to do this in Powershell and in code using SPList: Add-PSSnapin ...
6
votes
3answers
360 views

Best Practice for Lists and Web Part Pages

I used to refer end users directly to the list they shall use. However, in blogs or on SE it often reads as content editors (or other WebParts) are put on a list. From my understanding, this does only ...
6
votes
3answers
8k views

Deploying List Instance - LookupMulti Type Column in XML

So I have been able to populate rows with Lookup type fields as such: <ListInstance ... > <Data> <Rows> <Row> <Field Name="LookupColumn">2;#...
6
votes
4answers
23k views

How can I change URL of existing list?

If I create a list with a name like Project Risks it gives it a url like: http://myhost/mysite/Lists/Project%20Risks/AllItems.aspx. If I customize the list and then decide I want it call Project ...
6
votes
4answers
12k views

Items And List Tabs In Ribbon Don't Show After Editing Page

In my portal I am running a custom master page. I have an issue, however, that the Items and List tabs don't show (even for admin) until I click in an existing list, in which case the ribbon opens. ...
6
votes
2answers
26k views

Calculated value for Title field?

I would like to create a calculated value for the mandatory Title field: <username, created by> - DD-MM-YYYY That is I want the title to be filled in with the user name (the user that creates ...
6
votes
6answers
8k views

How to hide a column from new item but not edit item?

I have a list, and all I am trying to do is hide an column for when a user creates a new item, but allow the column to be shown in the edit item page. Currently if I hide a column it is hidden in both ...
6
votes
2answers
13k views

SharePoint List with many columns

We are designing a system where data from forms will be stored in sharepoint lists. Problem is that these lists can have very many columns. Question is: Is there a max number of columns in a ...
6
votes
3answers
10k views

How to restrict user to see only few rows in a list

I have one list Title Availability Department ----------------------------------------------------- Microscope Yes Biology Buret No ...
6
votes
2answers
2k views

Download file from a sharepoint site from code behind

I have an Image button in a custom 2010 webpart, on click of that I would like to download a file. Code Used : foreach (string filename in item.Attachments) { attachmentURL = SiteListURL + "...
6
votes
4answers
6k views

calculated field - formula for ageing

Again a calculated field question, How can I create a calculated field to find out, what is the age of the entry. In the list I will have a created date field, from that I would like to create a ...
6
votes
2answers
6k views

Location of Ribbon XML for List View

I'm looking for the location of SharePoint ribbon XML for List Views. I'm just curious to see how Microsoft has coded it. However, I don't know the location of the xml file. Could someone put me in ...
6
votes
5answers
9k views

Is there a workaround for the 'You cannot create alerts for lists for which users can only read their own items.' error?

I have been trying to piece together a quick and dirty system to allow users to leave messages on each others sites where any user can leave a message, but they can only see messages they have left, ...
6
votes
1answer
1k views

How to Combine IN-Opeator with LookupIds in a caml-query?

I want to build a CAML - Query using the IN - Tag. The queried Column is a lookup-field to a Title of another list. When I query using the text-property everything works fine: <Where> &...
6
votes
1answer
4k views

Choice field changed - How to propagate the change down to all lists that used it?

I have a feature (Web scoped) with a content type which contains a field (Type="Choice"). Values were A, B and C. I've created a list based on this content type and added some elements in it. I ...
6
votes
3answers
37k views

SharePoint 2013: “Find an Item” search box does not return results

We have 2 web applications, in one of the web application search is working properly and we are able to see search results from "Find an Item" box above the list name. However in the other web ...
6
votes
2answers
537 views

Create a decrementing budget

I'm new to sharepoint and I have been tasked to create a depreciation list using a sharepoint 2007 environment. Does anyone how to create a list that displays a fixed fiscal year budget, and as data ...
6
votes
1answer
396 views

change NavigateForFormsPages value to true using CSOM

I'm searching for a way to change NavigateForFormsPages property using CSOM but no luck till now. Anyone has idea to do it using CSOM
6
votes
3answers
4k 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 = ...
6
votes
2answers
7k views

All versions of one item in list

Is it possible to see all versions for one item in SP list a different way than through version history? We have one extensively used list with 100, 130, 150... with a lot of (multi-line and rich text)...
6
votes
2answers
157 views

How to make the “Web Address” link in List Settings clickable

On the "List Settings" page of any custom list that we make (or OOTB list for that matter), there are 3 fields that show at the top at all times: "Name", "Web Address", and "Description" (sample ...
6
votes
3answers
215 views

Equivalent of a database table in SharePoint?

I'm making a Publishing site, and part of this site will display information about company products. We have a number of products, and each one should have its own description page. The description ...
6
votes
1answer
229 views

Is it possible to have different timeline views against the same list?

Using a single task list, from our testing it seems that the add to timeline/remove from timeline functions store state across the site list rather than against the view. Is it possible to select a ...
6
votes
1answer
3k views

Inherit permissions on list in a sub-site causes site collection lock-out

Scenario is this - site collection contains a sub-site with unique permissions. In that sub-site, site owner with full control creates link list. That list is not created with the same permissions as ...
6
votes
2answers
1k views

Saving list template with managed metadata columns. Creating new list with the template.

I have a list that has several columns including managed metadata columns. I'm saving this list as a template and including all the content. I'm then taking this template to another site collection ...
6
votes
0answers
82 views

JSLink in form tag is not working from schema.xml in my SharePoint hosted app

Here is my code from schema.xml <Forms> <Form Type="NewForm" Name="{65B105CA-E7D8-4B28-8C9F-5B0DCBA7E0CA}" SetupPath="pages\form.aspx" WebPartZoneID="Main" Url="NewForm.aspx" Default="TRUE"...
6
votes
3answers
2k views

SharePoint 2010 Lookup Column Display issue

I have a simple list with three lookup columns in it. One LC has 5 items and displays as simple dropdown and there are no rendering issues (So ignore this column now). The other two columns has more ...
5
votes
5answers
8k views

Sort order issue

I'm having an issue sorting data in ascending order. Right now the sort order is: 1.0.0 10.0.0 10.0.1 11.0.0 2.0.0 2.0.1 3.0.0 3.0.1 3.1.0 What I want is: 1.0.0 2.0.0 2.0.1 3.0.0 3.0.1 3.1.0 10.0....
5
votes
3answers
936 views

Disable “Quick edit” for list

How do I disable this function from XML? Anywhere in Content Type or List Definition or List Instance?
5
votes
2answers
7k views

Is web.Lists[guid] faster then web.GetList(url)

I want to know the fastest way to access a list. Would it be: SPWeb web = site.RootWeb; SPList activityListFromUrl = web.GetList("/Lists/ActivityList"); or: ...
5
votes
5answers
4k views

How do you hide a hidden list?

If you set the SPList.Hidden property to true, the list isn't shown in the Quick Launch, All Site Content, Lookup lists, etc. However, it is still possible to navigate to the list by typing in the ...
5
votes
2answers
3k views

How to display more than three views in SharePoint 2013

Is there any way to display more than 3 views in OOTB SharePoint list or library.
5
votes
2answers
453 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 ...
5
votes
4answers
5k views

Prefilling field in NewForm.aspx in modal popup

I have a listview setup on my page which shows orders from an orderlist. Works great. Now I want to add a column which displays an icon. When the user clicks this icon, the NewForm.aspx page from ...
5
votes
5answers
17k views

What's the best way to move a list from one site to another?

I know you can backup site collections with stsadm -o backup, and you can backup sites with stsadm -o export. But what's the best way to copy a list? I've tried to use the save as a list template and ...
5
votes
2answers
5k views

How can I get the URL of a Pages List with REST API?

My question is very simple. I would like to display the recent top 10 news with the REST API in Sharepoint 2013. I'm using the following query: http://my-server/my-news/_api/web/lists/GetByTitle('...
5
votes
1answer
3k views

Javascript : How to handle version conflict errors when using javascript COM?

so I use quite a bit of the javascript client object model for CRUD operations to lists from custom pages (inputs) and I have found that I get version conflict errors on saves from time to time....its ...
5
votes
2answers
13k views

Permission levels for user exporting list into excelsheet sharepoint 2010

What are the minimum permissions needed for a users to export the list into excel sheets in SharePoint 2010?
5
votes
4answers
4k views

Is there any way to check does list exists without try catch?

Now i'm using same way to check does list exist by url SPList logList = null; try { logList = site.RootWeb.GetListFromWebRelativeUrl("Lists/LogRecords"); } catch { } if (null != logList) {...
5
votes
2answers
2k views

How to modify a list's template?

I have a list that was created from a Custom List template. Most users have been interacting with it through a calendar view that was created. Now, some users would like to connect this list to their ...
5
votes
1answer
697 views

Only show Sorting option not filtering opetion in contex menu of header in ListViewByQuery

I have creatd ListViewByQuery control through coding and added the control through RencerControl Event. I am filtering the list in code. so filtered result is shown. I want to hide filter context ...
5
votes
2answers
4k views

How to change sort order of axis on Chart Web Part?

I have a Chart Web Part that is connected to a SharePoint list. I modified the All Items default view of the list so that it would be sorted correctly but the Chart Web Part does not pickup on the ...
5
votes
3answers
384 views

Copying a List or Document Library from one farm to another

In SharePoint foundation 2013, How to copy a List or Document library from a site collection in one farm to a site collection in another farm?
5
votes
1answer
7k views

SP2010 Javascript REST API: updating list item using MERGE and POST

I am trying to use REST API approach in javascript to update a sharepoint list item where I have an id. So I use GET and POST to create records, but per MSDN article it looks like the way to do this ...