Questions tagged [splist]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
26 views

How can I programatically move an SPListItem from a source list to a destination list (into a specific folder of the list)?

I am pretty new in SharePoint (I am working with SharePoint 2013) and I have the following problem: I have a source list(an SPList) on a source website and I have to move its items to a destination ...
0
votes
0answers
12 views

Tabbed UI forms for DispForm.aspx using bootstrap , html in SP Online SPList

After going through the below link https://www.sharepointsky.com/sharepoint-online-branding/ tabbe dforms, i just wanted to know, how to get the same UI for my SP Online SPList's DispForm.aspx page. ...
0
votes
0answers
11 views

Sharepoint Webpart on mobile view

I have a page let's call it "Lists Of Items" and it has a web part that gets the list of lists and libraries using JavaScript, everything works fine until I go on mobile view, However when I go to my ...
0
votes
1answer
18 views

Only secure content is displayed message in IE browser of newform.aspx of my SPList in SPO

I have created a new SPList and when I create on newitem, it opens the newform.aspx as usual and strangely, am getting a message/warning message below of IE browser. Am not facing this issue in ...
0
votes
1answer
37 views

Formatting A Date Field in SPList

We have a requirement in which a custom date field is displayed in the format: YearMonthDay example: 20181031 How can I achieve this at the Site Column level? Does it require JSON Column ...
0
votes
1answer
505 views

Redirect to another-page-from-newform.aspx with the new items id in O 365 SPO Custom List

SymMarc_Redirection Regarding the above link by Marc, i would like to know, how to achieve this in a O365-SPO SPList. i am facing this issue of redirection in my newform.aspx and i wanna redirect ...
1
vote
0answers
29 views

Sharepoint list column shows no result on “Find an item”

I have a custom SP List that has a few columns consist of Full Name, extension, Job title, Department and so on. When I search using the list "Find an item" box on department there are results ...
0
votes
1answer
599 views

Calculated Column Filter fails when list view limit is reached

I have a list with a little over 5000 items in it. I have filtered the data in a Weekly and Monthly view using calculated columns. This works fine until the list hits 5000 items. The filters stop ...
0
votes
1answer
45 views

Making a field Unique after crossing 5000 items in a SPList in SPO site

Am having a SPO site,with SPList with 5300 items and one of the fields must be a unique field. But, because since its crossed 5000 items, i am unable to make the field as unique field. This field is ...
0
votes
2answers
53 views

how to get allowed maximum items count for a splist ?

I'm querying list properties using a REST query /_api/Web/Lists?&$select=Title,ItemCount. ItemCount property returns current count of items but I don't see how to get the maximum allowed count ...
1
vote
1answer
667 views

Rename the “New Item” text in SPO list New Form to a meaningful Title

in my new form.aspx of my splist of my SPO site, i would like to change the title New Item to "some_meaningfull_name"(like create customer , or create product etc ) , is this possible? since its not ...
0
votes
1answer
31 views

Create custom property of a SPListCollection in Sharepoint 2013

I have a SPListCollection that contains the lists of my site. All I want to do is to create a custom property that will be a dropdownlist with the lists names on it. I know how to create a custom ...
0
votes
2answers
570 views

SPList workflowassociations is empty

I have a documents list on sharepoint 2013 associated with a simpel sharepoint designer workflow. I am able to start the workflow on the list items from a timerjob using csom code. But when trying to ...
0
votes
1answer
46 views

How to access all the different properties of SP List using powershell?

How to access all the different properties of SP List using powershell? I am only able to access "Title" property at the moment with $list.Title. I want to access its URL & versioning properties. ...
2
votes
2answers
36 views

Several users add SPListItem

Will there be any problems (e.g. save conflicts) if several users at the same time will try to programmatically add SPListItem to SPList? public override void Add(Contract contract) { var ...
2
votes
1answer
256 views

how to create a calculated fields programmatically

I need to create a calculated item , which has: the ID of the item, the created date and title. How to do this combination in xml. i tried this code : <Field Type="Calculated" DisplayName="$...
2
votes
1answer
51 views

SP13 - How can i see/edit the settings(Target Label Behavior) [closed]

My issue is: Where i approve changed data on listitem in source List, data in target listItem has been changed. -References- I can to see the setting on source in existing variation site:
1
vote
1answer
206 views

List items accessed count

Is there any way to count the number of times a list item has been accessed. I have a list of type announcements and we post a handful of announcements to our intranet home page and expect folks to ...
3
votes
2answers
607 views

How to change the list name using c#?

I have created a SharePoint list. I have a situation to change the list name using c#. please suggest any idea.
0
votes
1answer
59 views

SharePoint 2013 Calculate Total Field in SPList

How do I calculate a total sum field in a SPList? I want it to automatically add up the sum of a column that user inputs as a total field in the bottom. For example, a list will contain numbers 10, 20,...
0
votes
1answer
443 views

How to add html in calculated column of a list in SharePoint 2013?

Is there any way to add html in calculated column of a list in SharePoint 2013?
1
vote
1answer
23 views

SPList query result different from SPList column display

I'm doing an SPQuery on the 'Modified By' (Editor) column of a SPList. While my SharePoint list displays names like #Doe, John, my query result for this column is 1;#Doe John. Where does the 1; come ...
1
vote
1answer
30 views

SPOnline Create Document List and Modify Advanced Properties

In my research and coding I can programmatically create a document library/list on 0365 SharePoint Online in this fashion: using (var ctx = new ClientContext("Http://...")) { ctx.Credentials = ...
4
votes
2answers
77 views

Automatically create HTML pages on adding an item in SP 2013 list

So I am very new to coding. Please bear with me. We have a SharePoint list wherein we store employee details. The task is to automatically create a new page with predefined UI -every time a new ...
0
votes
1answer
616 views

Modifying a list item field using powershell without changing the following values (modifed/modifiedby/Version)

I have a list which contain the built-in Description field (internal name = comment) which is if type "Rich Text",now i have created a new site column of type "Enhanced Rich Text" named "Custom ...
2
votes
3answers
57 views

Hide/Disable a few columns from entering in SPList

I have a SPList, say LIST1, in which I will enter values for 6 columns [single line of text] while adding items. Now, I have a requirement, in which out of 6 columns, 4 columns should not be entered ...
0
votes
1answer
302 views

Default Value When Adding New Field

I am programatically adding new fields to a list through Javascript. My code looks like: var addColumnToList = function(title, fieldName, type) { var context = SP.ClientContext.get_current(); ...
1
vote
1answer
5k views

Getting List Items in Javascript

I am attempting to retrieve all items in a list via Javascript and log them to the console. Here is my code: var showItems = function(title) { var clientContext = new SP.ClientContext.get_current(...
0
votes
1answer
373 views

Is it possible to change the default order of SPList.Items?

In my code, I am simply using SPList.Items which is returning all items (SPListItemCollection) with default sorting order (ascending order by Created date). I know that I can use CAML Query or some ...
4
votes
3answers
179 views

How to get the value of list count in SPWeb level?

Hi i`m making a Windows application that analyse the SharePoint Site. In SPWeb level, I want to get the value of list count. I tried to like this SPWeb.Lists.Count.ToString(); But when I compare ...
3
votes
2answers
915 views

SPListItem will accept the column display name OR the column internal name

I am working on sharepoint server 2013. now i have the following column named "Date Reported", which have the following properties:- Display-Name = Date Reported Internal Name = Date_x0020_Reported ...
2
votes
0answers
47 views

Prevent Visual Studio from Overriding Poject internal SPList

Is there a way to prevent Visual Studio from Overriding Poject internal SPList? And how can I reuse a already created List inside an App? The Lists is not accessible after a new deployment of the app....
0
votes
1answer
381 views

GetItemById throws ServerException

I'm trying to retrieve an item from a list, just for demo purposes. But, when I try to do that, I'm getting a ServerException on the ExecuteQuery(). This is the exception: An exception of type '...
4
votes
0answers
454 views

SharePoint Online Ribbon Custom Action : Pass multiple itemId in CommandAction's Url

I am developing custom ribbon action using SharePoint hosted app. and this is working fine.When i select any list item and click on custom action then i can get selected list item id. <...
1
vote
2answers
1k views

Deleting list items with ProcessBatchData using PowerShell

I am trying to delete items in bulk and keep getting this error message: <Results><Result ID="" Code="-2130575312"> <ErrorText>Invalid file name. The file name you specified could ...
1
vote
2answers
7k views

What are the best practices to get all items from SPList

What is the best practice way to get all items from SPList(with query or without) This is my ways : static void Main(string[] args) { try { using (SPSite mySite = ...
1
vote
1answer
1k views

Difference between SPList.GetDataTable and SPList.GetItems(SPQuery).GetDataTable

I've few questions as below: Can some one please explain me the difference between SPList.GetDataTable and SPList.GetItems(SPQuery).GetDataTable methods? Explain the meaning of the parameters for ...
2
votes
1answer
553 views

Unique constraint on multiple columns

I would like to be able to set a unique constraint on two columns to avoid entries like in the 4th record below (1234,B1) ColumnA ColumnB 1234 B1 1212 A1 3211 B1 1234 ...
1
vote
0answers
755 views

Why “The property '__deferred' does not exist on type 'SP.SecurableObject'” message appears when trying to update a sharepoint list item?

I know that updating an item in sharepoint list by using REST API should be very easy, but for some reason, I have not been able to do it. I keep getting "400 Bad Request: The property __deferred ...
1
vote
1answer
80 views

How synchronization 2 SPList with workflow?

User add item to SPList 'one'. How do we add it item in SPList 'two with workflow? NB: SPList on different servers
-1
votes
2answers
497 views

How to refresh a sharepoint list from C# console application

Is there any way to refresh a SharePoint list from C# console application. NOTE: By refresh I mean the same that we achieve by doing a Ctrl + F5.
0
votes
1answer
652 views

Try get attachments to SPList

I tried using this solution with the following code: using (SPWeb web = site.OpenWeb()) { SPList list = web.Lists[ListName]; items = list.GetItems(); table = items....
0
votes
2answers
464 views

SPListItem dont Add new Item

class Vote { public static void DoneVote(DataTable table) { string siteUrl = "..."; try { using (SPSite ...
0
votes
2answers
613 views

How take url Attachments for all items in list

I have an SPList. How I can get attachment URLs for every item in the list?
1
vote
1answer
288 views

Set List GUID when adding to SP.ListCollection (REST or JSOM)?

Sharepoint Online context; I've read lots os posts and the class reference and seems it's not possible, so I want to confirm if is it not possible to set List GUID when adding to SP.ListCollection (...
1
vote
1answer
190 views

Add SPListItem with file

I have a library, that have items and each item has additional File field. I can upload them programmicaly - firsly file is uploaded, then empty item is updated with other info. Example of filled ...
1
vote
0answers
84 views

Create custom list in sharepoint with a list template using JQuery [duplicate]

I need to create a custom list in Sharepoint 2007 using JQuery (only!) using a custom list template. I'm using Sharepoint 2007. Is there any way to do it? I already know to create the list and update ...
1
vote
1answer
52 views

Failed dropdown list binding

I Am trying to bind a custom list from http://mysharepoint/subsite/subsite/lists/sourcelist with no luck. Any thoughts why it's not working? using (SPSite site = new SPSite(SPContext.Current.Site....
4
votes
1answer
256 views

Create custom list in sharepoint 2007 using JQuery

I need to create a custom list in Sharepoint 2007 using JQuery (only!). I'm using Sharepoint 2007. Is there any way to do it?
1
vote
2answers
268 views

Issue in Generating Charts using Google Charts and SPServices and jQuery against SPList in SP 2010

I was trying to generate a line chart connecting to SPList as shown below. But am getting the error undefined here: alert(' inside completfunc xdata.responsexml is .....'+ xData.responseXML....