Tag Info

Hot answers tagged

7

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


7

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


3

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

No if you use List Definition with List Instance element, you can set the list instance property Deployment Conflict Resolution=None and your list instance will not be deployed (or not replaced with a new one). The list instance will only be created if it doesn't already exists. If it exists nothing will happen, nor the items will be touched.


3

How to retrieve List Url in SharePoint Online using PowerShell CSOM Function Get-SPOCredentials([string]$UserName,[string]$Password) { $SecurePassword = $Password | ConvertTo-SecureString -AsPlainText -Force return New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($UserName, $SecurePassword) } $context = New-Object ...


3

SharePoint 2010 Use ClientContext structure that is generated on the client-side and contains List View details: //find active View Id function getCurrentViewId(listId) { var viewId; for(var ctxKey in g_ctxDict){ var curCtx = g_ctxDict[ctxKey]; if(curCtx.listName == listId){ viewId = curCtx.view; break; } } return ...


2

that's weird, you should have no problem with group by that type of fields as I show in the picture below As you can see Im filtering by a custom field called friends. Could you tell me how you created the field?, Could you upload an image of the field, like this:


2

Use Datasheet-View and make Copy+Paste or this Powershell script: Add-PSSnapin Microsoft.Sharepoint.Powershell [System.reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") $site = new-object Microsoft.SharePoint.SPSite("SiteURL”) $web = Get-SPWeb -Identity siteURL $lista =$web.Lists["ListName"] $items = $lista.items foreach ($item in ...


2

I'm actually fairly sure this isn't possible -- and the reason might seem kind of silly, but is a limitation of the architecture having to deal with content types: Forms (edit/view) are associated with a particular content type; so when you go to a list and edit an item, the first question SharePoint asks before it renders any form is 'what content type is ...


2

You can use spsecurity.runwithelevatedprivileges to edit the list from the application. Go through the below link on how to use the above method. No need to give user any special permissions. Give edit permission to the application pool account. That should solve it. If you want to save the user name as well in the list you can do by creating a new column ...


2

As a Best practices you need to use the Index Column, this will help to improve the performance. You can have up to 20 Index column. Then you create Filter view Based on the Index column to quickly filter through large list. In general, an index on a column enables you to quickly find the rows you want based on the values in that column, even when ...


1

You should keep the data in a single list and create separate views for different teams. List views can be created by opening the List Settings and create view.


1

Depends on the customer's requirements. If the Customer has Records Management requirements, folders might be (and probably are) required. There is nothing wrong with folders. Some companies will never use tags or even notice or care that they can. It also depends on the number of files and how the customer is used to finding their stuff when needed, now. ...


1

Maybe use a blog instead and they can publish the content to the blog directly from Word and retain the look they have with no customizations necessary.


1

In a feature event receiver upon FeatureActivating, get a handle on your list and set it to hidden, http://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.splist.hidden(v=office.14).aspx This will hide it from the All Site Content and still give users the ability to add items to it. If anyone did know the underlying list name, they could ...


1

You should switch back to Id in that case. For example: First query https://siteurl/_api/web/lists and note down the guid of the list, then use https://siteurl/_api/web/lists('6678c589-4a6b-4625-be62-ad5ddf97f1a7')/items will give you the items


1

I couldn't find any documentation regarding any explanation regarding this in SharePoint 2013. But practically my observation is that now(in SP2013) irrespective of number of items, every lookup field is rendered as a Drop-down/Select control.


1

You can use a list or a pages library on a publishing site. The publishing feature is only available with the Enterprise license. You can build a list view web part, a data view web part (DVWP) or a content by query web part (CQWP). DVWP can easily be styled in SharePoint Designer. CQWP styling requires changes to some core XSLT files, like itemstyle.xslt ...


1

One way of elevating code is, as you already mentioned, using SPSecurity.RunWithElevatedPrivileges which will run SPSecurity.CodeToRunElevated with Full Control rights. From MSDN documentation of the method for SP 2013 (http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsecurity.runwithelevatedprivileges.aspx) you can see that this code runs ...


1

Two options Create a timer job which runs daily and updates the list items Create a workflow which fires daily and updates the list items Option 1 is straight forward and easy to implement. Option 2 don't require any deployment and you can use SharePoint Designer to achieve this, but building it is tricky.


1

Yes, you can achieve this using SharePoint Designer 2013( its free :-) ). For this, Open the site which contains the list in SharePoint Designer 2013. Select the List from List and Libraries section. Select your list. Under the forms section, click on New. On the popup, provide your form name and select New\Edit\Display. Check the set as default form.... ...


1

I assume that your problem is that the items you create in the lists are referring each other. For example, you create ItemA in ListA and ItemB in ListB. ItemA references ItemB and ItemB references ItemA. I assume further, that you would like to create the items from code and the lookup fields are mandatory. In this case you can simply create ItemB first ...


1

You may use Event-receivers for this. To be more precise you can write Item Added event receiver on List A. This will copy the required fields from the current row in list A and create a new row in List B with the copied columns. You can find sample code here. You may need to modify it a bit as per your requirement.


1

Yes. You can get the SPWeb using OpenWeb() method and then pass the SubSiteName using(SPWeb web = sites.OpenWeb("subsiteurl"))


1

The syntax you use when filtering fields to return inside of the load method depends on wether you're dealing with a collection or an individual object. You're encountering an error because you've specified the syntax for dealing with a collection: clientContext.load(collOfItems, 'Include(Field1,Field2)'); What you need is the alternate syntax for ...


1

after more digging, what I found is that, I had 2 different column in that list which has same GUID. there is a script on this link which helped me to found those fields. Then I removed them from my list. Luckily, those fields were not used, so all worked smoothly. I hope it helps others


1

You could use SP.List.baseTemplate property to determine list definition type on which the list is based. ListTemplateType enumeration specifies list server templates. The following example demonstrates how to retrieve lists and filter by SP.List.baseTemplate: function getListsByType(typeId,success,error) { var context = SP.ClientContext.get_current(); ...


1

This is easily done by creating a custom list with a 1 number column to store the value. Create an element in this list with 0 as value. Then create a script that gets and increments this value through the REST API for lists, and the saves the new value in the list. Add this script in a Script Editor Web Part.


1

Yes, CSS is the way to go. By default all currency and percentage columns align to the right. This blog post will give you what you need: http://blog.sharepointexperience.com/2012/05/text-alignment-sharepoint-list/


1

An OOTB solution would be using SP Designer. So you have two lists 1 and 2. Initially 1 is empty and 2 contains all number from 1 to 999, and when a number is added to list 1, it should be automatically deleted from list 2. I would suggest opening list 1 using SPD and create a new workflow for it, that is being called when a new item is created. Add a ...



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