SPList represents a list on a Microsoft SharePoint Foundation Web site.
0
votes
1answer
51 views
How to use dynamic or relative path in SPList object?
I am using the following code to read a picture library:
SPList list = SPContext.Current.Web.GetList("http://win-12/sites/mysite/ImageLibrary")
Problem is, in above code "win-12" is my machine name ...
0
votes
1answer
297 views
How to Set SPQuery.RowLimit to get all items?
I'm using my SPList View to get the html code of extracted items by an SPQuery over the listview
SPList myList = mySite.RootWeb.Lists.GetByInternalName("ListINStr");
SPView oView = ...
0
votes
1answer
297 views
selected SPListItem in the current list
how to get the selected SPListItems in the current SPList ?
I thought I would find a helping property like this:
SPListItemCollection mySelectedItems = ...
0
votes
2answers
274 views
How to get a SPList's default edit SPForm programatically?
I have created a new edit form for my SPList via Sharepoint Designer and haven't deleted the old ones. I know how to get all the forms, but how to distinguish default forms from the rest?
I can see ...
0
votes
1answer
188 views
New SPField shows in the view of my SPList but doesn't appear in any forms (edit, new)
I add a new column to a SharePoint list (the list is built on a content type) like this:
SPField textfield = list.Fields.CreateNewField(SPFieldType.Text.ToString(), "new column");
...
0
votes
1answer
421 views
SharePoint: Move SPListItem inside folder to root and set lookup field value
Dear stackoverflow members,
Maybe someone knows a solution for our task:
Given a custom list with folders for countries:
ListA
---FolderA (Title: "USA")
------Item1
------Item2
------Item3
...
0
votes
1answer
334 views
Proper use of SPWeb from SPContext for pulling lists
So, after about two hours on the subject I am thoroughly confused. There are viewpoints all over the place on how, when, and why to use Dispose() on SPWeb objects as they relate to SPContext.
Can ...
0
votes
1answer
187 views
Changing SPField cause no changes
I try to change an SPField after SPList creation, but I'm not getting any results of that change. using this code:
SPField oSPField = oSPList.Fields[new Guid("MyFieldGuid")];
...
0
votes
3answers
241 views
Tool to get SPList in webpart using tool
I want to get SPList data in webpart just passing name in tool. Anybody have any idea about that?Please Suggest me.
0
votes
0answers
6 views
Concept of a dynamic list view based on user location
I am requested to create a list with the following mandatory columns:
Image | Content | GER(bool) | Ger-ReleaseDate (Date)| UK(bool) | UK-ReleaseDate(Date) | ES | ... | additional information
From ...
0
votes
0answers
39 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?
...
0
votes
0answers
88 views
Show List from different sitecollection using XsltListViewWebPart
I followed a blog which explains how to show list from one sitecolletion to another.
Link to the blog is: ...
0
votes
0answers
56 views
Sharepoint list Immediate alerts issue
I have set Immediate alerts on sharepoint list.
see this image..
Now issue is when any changes into that sharepoint list, i got alert on next day but not receive alert Immediate.
I also check ...
0
votes
0answers
26 views
Is there any programmatic way to determine if a list has any relationships to other lists?
If list A has a SPFieldLookup to list B is there any thing in list B's SPList object to show the relationship with list A?
While I can flip through list A's fields and find the relationship to List B ...
0
votes
0answers
15 views
List 1 items selectable for adding in list 2
I have a custom list with all the artists there are on one page and a list of artists per
festival on another page. I want to select x artists from list 1 and add them to list 2 when I'm on the page ...
0
votes
1answer
186 views
Creating SSRS report in SharePoint 2010 with multiple SPLists
I have SP Lists
Students: StudentID, Name, Address,Email
Course: CourseID, Name, Duration, Fees
StudentCourse: StudentID, CourseID
How can I query these lists and create a SSRS report displaying ...
0
votes
1answer
38 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
119 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 ...
0
votes
1answer
569 views
How to get Attachment URL Programatically From Sharepoint ListItem?
How to get Attachment Full URL Programatically From Sharepoint ListItem?
Explanation:
I have adding new item with attachment.
Now i have to bind that attachment link to grid.
When click on that link ...
0
votes
1answer
82 views
Update SPList.TemplateFeatureId
I need to update the TemplateFeatureId for a couple of lists in our SharePoint 2010 installation. The current TemplateFeatureId points to a feature that is no longer installed in the farm. Both ...
0
votes
0answers
64 views
Updating SharePoint 2010 list content types from a content hub.
Suppose I have a SP content type of "Project document". I also have several project sites, with document libraries containing this content type. Now I have created a subtype, "Extended Project ...
0
votes
0answers
56 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
626 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 ...
0
votes
0answers
182 views
How to get SPList to expose a data entry form during “Add New Item”
I think I've successfully created a list based on a custom content type but when I click on the "Add new item" link for the list, I see nothing except:
a basic ribbon tab labeled "Edit" with icons ...
0
votes
1answer
285 views
field type URL. how to prepare csv for this?
I am running a powershell to import csv into a list. There is one field "ProviderURL" in the list. In the csv I had http://www.contoso.com and it imported fine. Howerver, I would like it to be Contoso ...
