Hot answers tagged

5

If you want the quick solution to disable, you can hide that with the help of below CSS using a Content Editor Web Part in SharePoint 2013. #Ribbon\.Library\.ViewFormat\.Datasheet-Large { display:none; }


3

To my knowledge there are typically 2 reasons why you can't create a promoted links app/list. you must enable team collaboration lists feature if you use a custom master page, make sure that the following place holders are being rendered asp:ContentPlaceHolder id="PlaceHolderPageTitleInTitleArea" runat="server" asp:ContentPlaceHolder id="...


3

I would suggest some more advanced CSS so the user can see the full text on mouseover: /* ListView - make Description fields a maximum width and height, and show full text on mouseover*/ /*.ms-itmhover is the TR row*/ .ms-vb2 .ms-rtestate-field{ max-width:40em; max-height:2em; overflow:hidden; } .ms-vb2 .ms-rtestate-field:hover{ max-height:...


3

You can set up retention policy to start a workflow when any condition (in your case closing data is today) is satisfied. In that workflow you can set step to delete the item. This way multiple items can trigger workflow to do the required functionality.


3

Defining the InlineEdit element radically changes the look of the list view. Better approach: You can disable quick edit mode in the View element of the List definition (Schema.xml) by adding the TabularView attribute and setting it's value to FALSE. Unfortunately, this attribute is not described in the official documentation (see Attributes section on ...


3

This code should work: (web is a variable that references the web object) SPFieldUserValue value = new SPFieldUserValue(web, item["AssignedTo"].ToString()); if (value) { assignToUser = value.User; }


3

The is no password for list email addresses because they are no associated with AD user accounts. There is also no inbox because these are not Exchange email addresses. List email addresses act more like identifiers for the lists so SharePoint knows where to direct and store incoming email messages. You should have a connector in Exchange that routes emails ...


2

Okay somehow the solution for this problem was pretty simple. One just has to click into the "empty box" -> "Web Part properties" appear in the top tool bar. When one is editing these properties, the Web Part automatically appears after saving it.


2

Welcome to the site. What happens when you add site columns to a list or content type is that a copy of that column is taken and added to the list or content type. For this reason, if you were to delete the columns from the list or content type, you would only ever be deleting the copy. Are you using content types in your list? If so, go to your list's ...


2

For each item SharePoint creates folders for storing attachments. The URL format is http://weburl/Lists/<listname>/Attachments/<listItemID> You can also check it with the REST-URL: http://weburl/<site>/_api/Lists/getbytitle('<ListName>')/items?$select=ID,Attachments,AttachmentFiles&$expand=AttachmentFiles


2

Use Audience Targeting. That's the Out of Box feature available to meet your requirement. Create two separate views. In one view you give access to all groups while for other view you edit the page and in Audience targeting for that particular view, you list down the groups name you want to give access to.


2

You can use Information Management Policies. Go to the list's advanced settings, and change allow mgmt of content types to YES. In list settings in the list of content types, there will only be one, called Item. Click Item. Click Information Management Policy settings. check the box next to Enable retention Then click on Add retention stage next to This ...


2

Sounds like the default for your List Settings is to open Forms as a Modal Dialog instead of a separate page. Open your List settings -> Advanced settings:


2

As @spguy mentioned, having separate document libraries can also help. However, if that is not an option, you can consider using folders to limit the fine grained permissions.


2

Are you limited to a single document library? Depending on what kind of content you are storing, is there any way to split them up and have multiple libraries? Are the 2000 documents that are submitted each year all of the same type of document that they cannot be separated? If you can split any of the documents up into active and archived documents, then ...


2

You can try below code, using (SPSite siteCol = new SPSite("http://server/sites/Contoso")) { using (SPWeb web = siteCol.RootWeb) { SPList list = web.GetList("/sites/Contoso/Lists/Books"); SPListItem item = list.GetItemByIdSelectedFields(3, "Title", "ISBN", "Retail_x0020_Price"); String bookISBN = ...


2

Try this SPFieldUserValue userField = item.Fields["AssignedTo"] as SPFieldUser; string userName = item["AssignedTo"].ToString(); SPFieldUserValue fieldValue = (SPFieldUserValue)userField.GetFieldValue(userName); SPUser user = fieldValue.User; Taken from http://ethan-deng.blogspot.com/2013/03/get-spuser-from-user-column-there-are.html


2

You can try below code to get SPUser in AssignedTo columns for specific item. If(task["Assigned To"] != null) { string fieldValue = Convert.ToString(task["Assigned To"]); SPFieldUserValue assignedTo = (SPFieldUserValue) task.Fields["Assigned To"].GetFieldValue(fieldValue); }


2

One way is to create your filtered view on your source list. Then go to Site Settings and click on Content and Structure. This will take you to a screen with a hierarchy of your site. Click on your source list and switch to your view. Select the items you want, and in the ribbon select from the Actions drop down Copy (or Move, I'd suggest Copy to make ...


1

Put this JavaScript code in your newForm.aspx page in SEWP: <script type="text/javascript"> function myFunction() { document.getElementById("your dropdown control's id").value = getParameterByName('Team'); } window.onload = myFunction; function getParameterByName(name) { var url = window.location.href; name = name....


1

I would create a new view, filtered by your column equals your particular value. In the Totals section of the view configuration screen, tell it to count on any of the listed fields. Save the view. When you visit the view, it will be filtered and there will be a total at the top of the view that tells you how many items there are.


1

One thing that you can do is turn on versioning for the list. Then you can create a "Notes" column that is set to multiple lines of text and select Yes for "Append changes to existing text." If you don't want to show the notes in the list, then you can modify the view and deselect the Notes column.


1

Before getting into the analysis how to use CAML query instead of LINQ, better know what is the usage of CAML Query. CAML - Collaborative Application Markup Language CAML Query is used in various ways within the context of Microsoft SharePoint Foundation to define queries against list data. Source: MSDN From the above statement it is very clear that the ...


1

I would suggest a change in your information architecture. Instead of two disconnected Lookup fields, only have a single Lookup for "State". Within the source list, each "State" should have an associated "Country" as a separate field value. Then as part of the "State" Lookup in the local list, you can use the 'Additional Fields' option (i.e. Projected ...


1

You could try using the alerts, but out-of-the-box, any user subscribed to alerts will get notified of any changes done on any item. You could try something like this in item added and item updated event receivers. However that would be an overkill. Or, you could send an email directly from ItemUpdated event receiver using SPUtility.SendEmail.


1

As I understand it, when you add a web-part or app-part you are creating an embedded version of an existing app rather than a brand new app. So while they are very functional by themselves, in many cases you can't add an web/app-part to a page if that app does not already exist in the same site/sub-site. If you create a Promoted Links list (even if you hide ...


1

You can fix the height of all multi line textbox whether it is in list view or in quick edit view. Try below css code in list view .ms-rtestate-field { max-height: 100px; overflow: auto; width: 250px; word-wrap: break-word; } Change the height & width as per your needs. Apply this CSS in SharePoint master page if you want to to work ...


1

I finally found the answer! adding these two lines to the top of my script worked. $w = Get-SPWebApplication -Identity https://mysharepoint.org $w.GrantAccessToProcessIdentity("domain\my_username") Full script: $s = New-PSSession -ComputerName mysharepoint.org Invoke-Command -Session $s { Add-PSSnapin "Microsoft.SharePoint.PowerShell" $w = Get-...


1

You can copy Task list items in several ways Copy SharePoint list items from one site to another programmatically Copy item from one list to another, using SharePoint designer workflow Also, you can copy list items using Site Content and Structure located on page http:///_layouts/sitemanager.aspx


1

To remove Unique permissions on a folder, perform following steps: Click on ... to open ECB menu for that folder. Click on Shared With --> Advanced. Click Delete Unique Permissions in the top ribbon of the page. Click OK. The status bar for the folder now reports “This folder inherits permissions from its parent.” The name of the parent appears next to the ...



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