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

@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

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() { ...


5

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


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.


5

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


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

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

The ClientRuntimeContext.Load method has the following signature: public void Load<T>( T clientObject, params Expression<Func<T, Object>>[] retrievals ) where T : ClientObject How to invoke ClientRuntimeContext.Load<T> method in PowerShell Invoke-LoadMethod function demonstrates how to specify retrievals parameter for ...


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

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

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


3

here is powershell script to list all properties and then how to change them. # Load SharePoint library [system.reflection.assembly]::LoadWithPartialName("Microsoft.Sharepoint") # Connect to the site collection http://SP2010 and store the object in the $site variable $site = New-Object Microsoft.SharePoint.SPSite("http://SP2010") # Connect to the root ...


3

You probably need to do this through REST services with SharePoint 2013 and create a new BCS connection to that database. REST exposes BCS with External Lists, and it's possible to write a new webpart page that facilitates the Tests, and displays the results whenever you click on the Test Name. How to create an External List: ...


3

The other way is to create a Contact us application page in your site and create a web part which accepts the contact us detail from the user and on submitting the request the data will be added to the list. And you can check the list. Also you can have sorting on data to the last modified data. So you can get the latest request. The Other logic is ...


3

It's the way SharePoint works, it only lets you add some specific columns(can't really remember which ones at the moment) as look-up columns, I had same issue few years ago, only solution I could find it that add a item adding event receiver and change Title column to file's name. There is no other way around I ever came across. Similar post: Lookup ...


3

SUMMARY This is maybe more complex than you may want, but it can be done. You also have a choice of using a hacky technique (read to the section break after the first code sample) or using the information in the first part to do some real work and re-create the item creation routine on your NewItem form. As a disclaimer, I'm assuming that you're using SP ...


3

Multi-choice field values are stored internally in ArrayList How to get multi-choice field values in PowerShell $web = Get-SPWeb $Url $list = $web.Lists[$ListTitle] $item = $list.GetItemById($ItemId) $values = new-object Microsoft.SharePoint.SPFieldMultiChoiceValue($item[$fieldName]) //print multi-choice field values for($i=0;$i -lt $values.Count;$i++) ...


3

The new page added in layouts folder "inplview.aspx". When paging, sorting or filtering happens there is an AJAX call to the inplview.aspx and it returns a JSON based result set. That is the rows of the defined list view webpart. The "inplview.aspx" generates the "inplviewhash" tag and appends it with "#" in url.


3

I think you mean that result item collection is empty: $itemsCollection = $list.GetItems($spQuery) if($itemsCollection.Count -eq 0) { Write-host " No results were found" }


3

It's not possible to change the outgoing e-mail address today, but it's a requested feature which may be implemented in the future. I guess you where just lucky receiving another outgoing e-mail adress, since the default is no-reply@sharepointonline.com.


3

If you neither want to use InfoPath nor Workflow, then you have to use SharePoint web services to fetch corresponding data in Column B for a selected value in dropdown Column B. You can achieve this functionality using SPServices library. Its a js library used to call SharePoint web services and perform operation very easily and in efficient way. You have ...



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