Tag Info

Hot answers tagged

5

First try this set of commands: $web = Get-SPWeb http://web-url $list = $web.Lists["Documents"] $list.AllowDeletion = $True $list.Update() and then $web = Get-SPWeb http://web-url $custom = $web.lists["Documents"] $custom.Delete()


5

The best solution is probably to keep using folders for security, that's the only thing they're really good at in SharePoint. Maintaining 2000 items with special permissions will be a nightmare and will cause SharePoint to perform badly. So keep your 25 folders each with broken inheritance and special permissions. But you should still have the office a ...


5

You can add it as a listview webpart. Following are the steps: Edit the page Click on Add webpart. Click on lists. Select the list to be added to the page. Reference


5

You can do this by using the SPUtility.js library As example I have created a simple list with: Title (simple text). Country (ChoiceField) [Tunisia, Switzerland, Canada, France, Other] – Other is the default value. City (Simple text). By default the City field is hidden if the Country field value is Other. Every list has three default forms to add, ...


5

In general, you should avoid directly connecting to PRODUCTION for any sort of development or debugging. Consider bringing the list to your development environment. You can use import/export or consider saving list as template and install the template in Dev environment. How should you develop, debug and deploy sharepoint solutions? The serious ...


4

Yes you can easily do that by creating a "Custom Permission Level". Basically you can select what all permissions will this level have. Then you can assign this permission level to a group and start adding people to it. The people in the group will have all the permission you specified in the Custom Permission Level. Have a look here: ...


4

You place a List-WebPart on a page and choose the view that it should use from the drop down menu. Now your WebPart obtains a copy of the list view that you selected. This will remain constant even if you modify the original view in the list itself. So, the behaviour you have described in your question is standard SharePoint behavior: List view changes are ...


4

Since you have the list name in the query string use it to get SPList as below SPWeb web = SPContext.Current.Web; SPList list = web.GetListFromUrl(web.Url + “/Lists/ListName/Forms/AllItems.aspx“); Then you can get properties from list. Example: String listTitle = list.Title; If you want to get properties from a list item, you can pass item’s ID in the ...


4

This is normal behavior in Rich Text fields in SharePoint 2007/2010. The reason is that the Enhanced Rich Editor control in versions before 2013 did not support browsers other than IE and for that reason other browsers get downgraded to a regular text box and since the value of the field is HTML, other browsers see the HTML code rather than the editor. ...


3

the scalalibity issues are due to poor planning. With good planning that should not happen, limit is 30 million items per list. Sharepoint 2010 LIMITs http://technet.microsoft.com/en-us/library/cc262787(v=office.14).aspx#ListLibrary


3

I know this is an old answer, but I thought I'd chip in: Most people use the query string approach. The SPServices plug in is really useful here (http://spservices.codeplex.com/), or you can write your own javascript within the form to get querystring parameters. I normally bundle this in to my own method: function getQueryParameters() { var qObj = {}; ...


3

Here is an example of creating a list: Create a list with powershell Then this script will loop through each site in the site collection $siteURL = "http://sp14fdev01/" $site = Get-SPSite($siteURL) foreach($web in $site.AllWebs) { } Simply add your list creation code inside the foreach. Note you will want to check to make sure the list doesn't already ...


3

You can create a custom permission level that allows adding but not editing. See this MSDN article about how to do that. You will want to copy the contribute permission but remove the edit permissions.


3

For 2010, use the REST interface http://msdn.microsoft.com/en-us/library/ff798339.aspx What will you be using to access the list? C#, Javascript ... ? Some examples http://weblogs.asp.net/paulballard/archive/2005/05/08/Using-Data-From-SharePoint-2003-Lists.aspx ...


3

Create a public view for each team with a filter to select items marked with the team Create an alert for each team specifying the e-mail address of the team and in "Send Alerts for These changes" specify "Someone changes an item that appears in the following view:" and select the teams view.


3

Inspired by this post: http://sharepoint.stackexchange.com/a/36311/17191 I finally got it to work. After: SPList list = web.Lists.TryGetList("Messages"); I've added the line: SPContext renderContext = SPContext.GetContext(HttpContext.Current, null, list.ID, web); and now anonymous user can access a site with this control (without actually having any ...


3

The name of the list is meaningless as there can be lists by the same name all over a site. You would need the Url to the list in order to be able to resolve it to a Guid. However, the mechanics of this vary wildly depending on what you mean by "programmatically". In PowerShell it would be something like this and the server object model would be similar. ...


3

I'm not exactly sure what which aspect is confusing your so I will break down the process into some steps. Let's imagine we have a custom list titled Issue Tracker with the following definition: Fields: Id (number) the default field Title (text) the default field Problem Description (text) Products (multiselect ...


3

This turned out to be unrelated to the XML or privileges. The URL I used to hit lists.asmx on the production site was pointing to the root of the site instead of to the web where my list is. So I was using http://mysite/_vti_bin/lists.asmx when I should have used http://mysite/web1/web2/_vti_bin/lists.asmx


3

AFAIK it's not possible to "accidently" delete that field. There is no "delete" option available for the title field. It's a member of each OOTB content type, and you only have the option to "hide" it, and you have to do this from the content type settings (not the list item based on the content type). Go to List Settings Scroll down to content types and ...


3

While I can't provide any assistance with the Camelot PHP tools I can say that I would suggest you get framiliar with Sharepoint prior to trying to throw a third party tool in the mix. Sharepoint is a huge animal that is used for different purposes in different companies and can take years to fully grasp. What is sharepoint? SharePoint comprises a ...


3

If you are updating a list item more than once in succession, after the first update the list item (oListItem in your case) object will have become stale, and the server will reject the update. SharePoint uses a hidden field called owshiddenversion, which gets downloaded along with your CSOM object, to determine which version you are editing. When you send ...


3

I think there are two slightly dangerous things in your code, that could be the source of the problem: a) document.getElementsByTagName("!"); Document.getElementsByTagName() is meant for getting a collection of HTML tags, e.g. getElementsByTagName("table") will give you all tables As "!" is not a HTML tag to be used for standard page content, just for some ...


3

Batman, This should help: How to Validate a Due Date in a SharePoint 2010 List In short use Column Validations in Column Settings, a short formula can be: [Due Date] > Today()


3

Applying such complicated filter just isn't possible from UI. However, you can do it e.g. from SharePoint Designer or Powershell. From SharePoint Designer: Open your site in SharePoint Designer Go to Lists and Libraries Select your list There is "Views" section to the right. Find your view there and click on it. Code editor will be shown. Find ...


3

The Ratings setting is stored as a property of the root folder of a list. In PowerShell you can do this: $web = Get-SPWeb http://site $list = $web.Lists["Documents"] $list.RootFolder.Properties["Ratings_VotingExperience"] = "Likes" // Value can be “Likes” or “Ratings” $list.RootFolder.Update() In code, you can do: using (var site = new ...


3

You can create/modify a view and apply the filter on the start date. To create/modify a view, go to list settings-> Scroll down to bottom and you will see a section named Views. Here you can click on exiting view or create a new view. In the view you can filter based on the start date in the Filter Section. UPDATE Based on your update in the question. This ...


3

To move a page (your original question): If you go to the document library where the page is stored, you can download a copy of the page file without saving the whole site as a template. So the correct operation would be: Navigate to the source file's document library (Pages, SitePages, etc.) Click the ellipsis next to the file Click the ellipsis in the ...


3

You can't. If you save the stp-file, rename it to cab, opens the cab file and opens the manifest file inside you can see what you can see from the splist. An if it's a generic list, that has added fields. The only way I guess you can do it is to add some kind of information in the schema that will identify the template.


3

You can create a quick and dirty copy of the list from the production server by creating a list template from the list settings screen. When you create the list template, you will be given the option to include the content as well. Make sure that is checked. Download the file from the list template gallery in production, then upload the file to the list ...



Only top voted, non community-wiki answers of a minimum length are eligible