Tag Info

Hot answers tagged

8

I would suggest you create different content type or use the tagging feature to organize the items. Check this for the list of Pros and Cons http://social.technet.microsoft.com/wiki/contents/articles/16166.sharepoint-2013-using-folders.aspx Folder vs Metadata SPS 2013 search makes it easy to find worthwhile files and list items with or without any added ...


7

You can define this when you add a column in CAML via the ShowInNewForm and ShowInEditForm properties. You can find all the valid properties in the article Field Element (List) Alternatively, you can set these values using the object model (likely Powershell, since this is a one off run). The properties of the SPField object are the same (ShowInNewForm / ...


7

Works with double ' _api/Web/Lists/GetByTitle('St. John''s Calendar')/


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 ...


5

@PirateEric Sorry but this is untrue. Anyone who finds this as I did searching for a way to change the List URL of a SharePoint 2013 last can do so in Designer by following the steps outlined in this SO post: http://stackoverflow.com/questions/12904944/change-sharepoint-library-url Essentially: In SharePoint Designer just navigate to All Files navigation ...


5

No, but the field may have been made required after the item was added to the list, or this is a new required field in an older list. Either way, when editing these items (without the required field filled in) it can't be saved unless the required field has a valid entry.


5

Modified: Identifies a field that contains the last modified date and time information that is associated with the specified SharePoint Foundation object. Last_x0020_Modified: Identifies a field that contains version control information for the last modified version of the specified SharePoint Foundation list object. The ‘Modified’ column as we see in the ...


5

Well you can hide it to appear on forms, go to List Settings -> Advanced Settings -> Allow management of content types -> check the box Now come back to List Settings -> Under Content Types -> Click Item content type -> Under columns -> click Title -> Hidden (check the box) Now it won't appear on the forms, you can similarly remove it from Views.


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. ...


4

The "Upload Multiple Documents" command is an ActiveX control. It does not work with Firefox, Chrome, Safari etc. Please see this article for details.


4

Items will still be tagged as "New" even after they have been viewed. By default in SharePoint 2010, the "New" icon will continue to be displayed for 2 days. You can check the setting via Powershell: $webApp = Get-SPWebApplication "http://YourWebApp/" $webApp.DaysToShowNewIndicator You can change the "New" tag duration to 1 day as follows (or zero days ...


4

Try the following script: $web = Get-SPWeb http://YourServer/ListLocation $list = $web.Lists["TheList"] foreach ($item in $list.Items) { if( $list.Fields.ContainsField("ddlTest") -eq $true) { $item["Number"] = Get-Random -Min 0 -Max 100; $item.Update(); } }


4

SP 2013 uses clienttemplates.js to create the those views control. You can either create a JSLink or add the following script using the script Editor webpart to the page where your list view resides. <script type="text/javascript"> ExecuteOrDelayUntilScriptLoaded(overrideSurfacePivotCount, 'clienttemplates.js'); function overrideSurfacePivotCount() { ...


4

var clientContext = SP.ClientContext.get_current(); // Gets current site context var id = GetItemID(); //retrieve selected list item id to update data var listId = SP.ListOperation.Selection.getSelectedList(); var oList = context.get_web().get_lists().getById(listId); this.oListItem = oList.getItemById(id); function GetItemID() { var selectedItems ...


4

You're missing the WebId property: var xlv = new XsltListViewWebPart(); using (var oSite = new SPSite(" http : / / app:3333/ ")) { using (var oWeb = oSite.OpenWeb("/ProxymIT/Direction")) { var oList = oWeb.Lists["AdministrativeNotes"]; //your list name xlv.WebId = oWeb.ID; xlv.ListId = oList.ID; xlv.ViewGuid = ...


4

If you only want to hide the list from "All Site Content", the SPList class has a "Hidden" attribute. If you set this attribute to true, nobody will see the list via "All Site Content", but you can still access the list with the direct link. You could set the "Hidden" attribute with Powershell or a console application, for example (or do it at feature ...


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 ...


3

Great Info! In an attempt to make a more exhaustive comparison (because none exist!) here are a couple of things left out: List list attachments are not indexed. This has a lot of implications. When searching, you cannot use the refiners to narrow down the doc type. List attachments will not work with the eDsicovery feature! No location based default ...


3

Try activating the Team Collaboration Lists web scoped feature.


3

I may be wrong, but I don't think there is an easy/elegant way to fix this without some sort of code. The easiest way to fix this, IMO, would be a post-import powershell script which iterates each item of the list, and for each field that needs a fix-up, it reassociates it with it's correct user. If you could get an export of the original site's ...


3

Looks like the issue is with the UserInfo list ID. Can you export the list data and store the User as ID or Email? Then when you import the info call EnsureUser. This will re-associate the user with his correct (or new) userID record in the new site collection.


3

I have fixed this issue in the past with a little bit of client side code - basically some javascript that will turn that HTML into a rich text editor, just like in IE. Its not that hard and only takes a few minutes to apply it to the Edit and New forms. And: you don't need to be a sys admin. As long a you can design the forms (ex: your in the Site Owners ...


3

Your code is fine. Url is property of the item and its not affected by your parameter in GetItems. Test with a field (not property) that is not included in the parameter you pass in GetItems. item["OtherField"] Normally it should throw an exception (ArgumentException).


3

When you request list items via client object model, the object will return a number of parameters even if you specify none at all. Some of these include title, url, modified date, created date, check out user, etc. You can see these by storing the object as a variable and then using Dev tools to debug the page. You will see there are actually about a dozen ...


3

The internal name of the field is PublishedDate. Try changing your query to use that name and hopefully that will solve the problem.


3

I made the below change in the web.config file and multiple file upload functionality started working . The IIS setting blocks the multiple file upload functionality. <verbs> <add verb="PUT" allowed="true" /> </verbs>


3

Your method is not called Get-SPList but Get-SPItems So, $items = Get-SPItems -list "MyList" foreach ($item in $item) { Write-Host $item["ID"] }


3

I would do something like this: function ProcessAllSubfolders($folderCollection) { foreach ($folder in $folderCollection) { if ($folder.Subfolders.Count -gt 0) { ProcessAllSubfolders($folder.SubFolders) } ProcessFolder($folder.Url) } } # main foreach ($folder in $RootFolder.SubFolders) { if ...


3

There is an upper limit on list items in SharePoint Online but it is much higher than 20,000 items. Here is a 21,100 item list I created earlier on SharePoint Online: I haven't proven it, but I believe the upper limits for items in lists in SharePoint Online are the same as for SharePoint 2013 described here (30,000,000 items) You may be getting confused ...


3

Use SPContentTypeUsage.GetUsages method to get the list instances where a content type has been used. Example: SPContentType ct = site.RootWeb.ContentTypes["ContentType"]; IList<SPContentTypeUsage> usages = SPContentTypeUsage.GetUsages(ct); foreach (SPContentTypeUsage usage in usages) { if (usage.IsUrlToList) { SPList list = ...



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