Tag Info

Hot answers tagged

12

Go to Advanced Settings and Enable the Allow management of content types. Now you will see the content types associated with the list under the Settings section. Click on Item. Select the column. Check the Required radio button.


11

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.


9

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


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

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


6

If you're trying this for SharePoint 2013, change "LinkToItem" to "linkToItem" <ViewFields><br/> <FieldRef Name="Attachments"/><br/> <FieldRef Name="LinkTitle"/><br/> <FieldRef Name="linkThisColumn" linkToItem="TRUE"/><br/> <FieldRef Name="data_x0020_column"/><br/> <FieldRef ...


6

Make sure that the column you include in the where clause is defined as an indexed column in SharePoint. You can check by going to the list you're querying and into List -> Settings -> Indexed Columns. It's not applicable in your CAML query, but if you have more than one 'where', ensuring the first where hits an indexed column can increase efficiency. ...


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

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


5

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


5

The client wants to actually display 20,000 items on a single page, without paging? I cannot imagine a valid use case for this. No one is going to read 20,000 items. Tell them it's not possible. Then try to find out what they actually need and see if there is a solution. If they push back and insist on giving the users the capability to scroll through 20,000 ...


4

Here’s the code you should put on your pages: <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script type="text/javascript" src="http://path to the script/StickyHeaders_v2.9BETA.js"></script> You can download StickyHeaders_v2.9BETA.js from here


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

This will be a challenge to do through Workflows. The reason being we can't get the previous value to compare and confirm which field was updated. In such use cases we should use Event Receivers. It has AfterProperties and BeforeProperties. We can use those to compare and confirm whether the field updated is DaysLeft. If you prefer workflow's then before ...


4

This is a known issue with MS15-022 and the March 2015 CU. http://thesharepointfarm.com/2015/03/march-2015-cu15-022-task-list-filter-issue/ Simply add a Style (any will do, except the default one) to the View, and it will be resolved. Alternative option is to enable Server Render if displaying the Task List in a Webpart.


4

Please write below mention code outside the For-loop & try it. var ctx = new SP.ClientContext(appweburl); var appCtxSite = new SP.AppContextSite(ctx, hostweburl); var web = appCtxSite.get_web(); //Get the Site var list = web.get_lists().getByTitle("wbslist"); var listCreationInformation = new SP.ListItemCreationInformation(); var oListItem11 = ...


3

In addition to IAfanosov's solution, I've written a method to clear the recycle bin from all items that were deleted from the given list: /// <summary> /// Deletes all items from the recycle bin in a web that originally came from the given list /// </summary> /// <param name="sourceList">List where the items originated from</param> ...


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

As far as i understand your query, you can use following code: using (var site = new SPSite("http://yourserver/")) { using(var web = site.OpenWeb()) { var list = web.GetList("YourListUrl"); var dataTable = list.Items.GetDataTable(); // your code } }


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

Yes, you can query search using the REST API with the following URL to get list items specific to a content type http://yoursite.domain.com/_api/search/query?querytext='contenttype:CONTENT_TYPE_NAME' To find out more about search using REST see this and this


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


3

As part of using AddFieldAsXml you need to provide the field's internal and staticname announcementy.Fields.AddFieldAsXml("<Field Type='User' DisplayName='Created By' StaticName='CreatedBy' Name='CreatedBy'/>", true, AddFieldOptions.AddToAllContentTypes); announcementy.Fields.AddFieldAsXml("<Field Type='DateTime' DisplayName='Date Created' ...


3

When you get this type of requirement, you normally start with trying to understand what the real business case is. I mean, the security model in SharePoint is there for just that, security. When you get requirements trying to bypass it, you should be careful and really make sure to understand the real need. With that said, there are cases when you need to ...


3

Update this <Value Type='Text'>" + objdocument.Title + "</Value>


3

Its showing "View Entries" because you have "Append Changes to Text" turned on. Because of this for any update that is made to an item a new version is getting created.



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