Hot answers tagged

6

To average multiple columns in an item, you'd use a calculated column such as =AVERAGE([Column1],[Column2],[Column3]). To average a column, edit the view and expand the Totals section. By your column name, if it's a number, you can select average (etc) from the dropdown.


5

You definitely don't want to use a workflow for this. Workflows are good for certain things, but the background color for a list item is not actually stored on the list item, so there is no way a workflow will be able to access or modify it. To me, it sounds like a job for Client Side Rendering (CSR), which would use JavaScript to check the value of the ...


4

No. You'd have to use an attachment as a List item, otherwise you'd have to set up an asset library and use that asset attachment in a hyperlink column. Alternatively, you could do some development that would customize a form that users can fill out that would upload a video to an asset library and also post it to a List item using the new hyperlink of the ...


4

Considering that you are using a SharePoint group and presuming that the Assign a task step is not running inside an App Step, then make sure that everyone can view the membership of the group. Go to the group settings page and the select Everyone option under the "Who can view the membership of the group?" question. The reasoning behind this is that the ...


4

You need the following piece of CSS to ensure that the menu items on the global navigation menus do not break into multiple lines and that the width of the drop-down menu extends to fit the length of the menu items' text: /* Disable menu text wrapping. */ #DeltaTopNavigation ul.dynamic { white-space: nowrap; word-wrap: normal; width: auto !important; ...


3

TL;DR The best way to remove a tab is to write and deploy a custom action. This can be done quite easily both in JavaScript and PowerShell. If for some reason you don't want a custom action (e.g. you want to remove the LIST tab for only one of the list views), you can still remove a tab after the page has loaded using JavaScript, but this usually makes up ...


3

You can use this to break out the string explicitly: var emails = $(this).attr("ows_UsersList").split(";#").filter(function(e){ return !parseInt(e)}) var emailsjoined = emails.join(";"); emailsjoined is the semicolon delimited string of email addresses.


3

You might do as follows from the browser: Edit the list page from top right gear/edit page Add new web part/Script Editor to the page Add your javascript code


3

You can't restore a site from site collection backup. Couple of things you can do. So big thing, if you have access to Production farm. You can export the Site from production and restore it. Use export-spweb & import-spweb You can use the Central admin and export the site. If you have the Content Database Backup then you can export the web using the ...


3

Your code is fine. I would not attempt to circumvent the problem as it may be telling you that there is in fact something wrong with your setup. There are many reports (I've experienced this myself) where the User Profile Service is throwing exceptions and needs to be brought back to full health. e.g. Go to Central Admin -> Manage Web Applications. ...


3

All content editors are rendered as part of single HTML document. CSS styles don't have scope, they affect entire page. It's a common practice to use content editors to hide SharePoint UI elements (like ribbon buttons) that are not part of the web part. You can create single root elements per each CE and assign ID value: <div id="navigation-div"> ...


3

For Error 1: Add below CSS class to your top nav in seatle.html class="ms-dialogHidden" For Error 2: Inspect the element in any browser to identify the CSS & add below CSS in that class list-style:none;


2

You can use content query webpart ,where you can display list from the sub-site an add the columns as per the requirement. This might help you..!


2

Yes. You can use custom list for your purpose. Steps: Create List A as a custom list. Add your data (A1 to A24) in list. Create List B and create new lookup column, set the name of the column. Choose "List A" in Get information from dropdown list. Choose the column name which is in List A in In this column dropdown list. Now you can see the values of ...


2

To add the certificate to the Central Admin trust is easy. You have to run the below command for each certificate. $cert = Get-PfxCertificate c:\CsAppTier.cer New-SPTrustedRootAuthority -Certificate $cert -Name CsAppTier c:\CsAppTier.cer is path & name of the certificate which you want an import. -Name CsAppTier, You can name whatever you want or ...


2

Try below REST url in your AJAX call. And let me know if its working : http://<yoursite>/_api/navigation/menustate?mapprovidername='CurrentNavigation'


2

Yes, you can do, But for this, you have to use the 3rd party tools. There is no OOTB method which support direct migration from SharePoint on-prem to SharePoint online. Try ShareGate or Metalogix or any other.


2

Actually, there's no such thing as "deploying a Web part to a site collection". You deploy a Web part with a WSP package; WSP packages (at least ones that contain Web parts) are deployed against specific Web applications. After that the feature containing the Web part is activated per site collection, but "activating a feature" is only a SharePoint logic ...


2

Try this SPListCollection lc = oWeb.Lists; lc.Add("SampleList", "", SPListTemplateType.GenericList); SPList l = oWeb.Lists["SampleList"]; l.EnableVersioning = true; l.ContentTypesEnabled = true; l.Update(); l.ContentTypes.Add(oSiteCollection.RootWeb.ContentTypes["SomeCT"]);


2

You could use try catch. If it always crashes. Not the cleanest way of handling it but this should do it. But I would call this a quickfix. SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite site = new SPSite(SPContext.Current.Site.Url)) { SPServiceContext ctx = SPServiceContext.GetContext(site); try { ...


2

To hide the standard "Delete this site", try to set the GroupId to SiteTasks: SiteAdministration is for SP2007, while in SP2010/2013, the link has moved to the section "Site Actions". The same applies for your new custom action. So, you should have now: <?xml version="1.0" encoding="utf-8"?> <Elements ...


2

Document ID enable/disable job This will process all work items on all site collections in a web application, and make sure that Document ID prefix is pushed to all subsites. Document ID field will be added to all content types which inherit from Document and Document Set. More precisely, three fields will be added: Document ID, Document ID Value and ...


2

Automatically generated Managed Properties are always Text regardless of the base property type. If you want Date type you have to create it yourself either in the SSA or in the site/site collection.


2

As mentioned by Mathew the managed property you are referencing should be text only. You need to have refinable, sortable managed property to use in your query. There are multiple refinable properties like refinabledate00 to refinabledateXX which are already available in site collection schema, you can re- purpose this property by mapping relevant crawled ...


2

The page layouts need to reside in the master page gallery (under _catalogs/masterpage). You could create a feature with a module to deploy them there, and then make your features A and B be dependent on this one via feature dependency


2

The question is what do you really need? Getting an item does you no good, unless you want information from the item, or want to change the item. You found how to change an item. To get fields from an item, you would use the lookup and select whichever list you'd like, which field from that list, and the "WHERE" clause, so to speak. You can only specify one ...


2

The issue is it is generally not supported. Your queries can introduce locks of various sorts, which may prevent something SharePoint is attempting to do succeed. So while reading is highly discouraged (and writing is outright not supported), if you must, for some reason query directly where the SharePoint OM doesn't fit, always use (NoLock). It doesn't ...


2

Reporting Services Manager is not used with SharePoint integrated mode on SQL Server 2012 SSRS and higher. Make sure you're looking at the SharePoint server in Manage Services on Server that you've installed SSRS to. It will not appear on other servers where you have not installed SSRS. The SSRS Addin should be installed on all servers in the farm. You'll ...


2

Source: http://www.sharepointrelated.com/2015/03/30/change-site-collection-url-sharepoint/ $site = Get-SPSite http://servername/customer/questions $site.Rename("http://servername/customer/generalquestions") And you have more detailed info in http://www.toddklindt.com/blog/Lists/Posts/Post.aspx?ID=573


2

One of the properties of SPSecurityTrimmedControl is PermissionContext. Not sure what the default is, but you may try and set it to "RootSite" or "CurrentSite" according to where you want the permissions to look when opening a site. Possible values are: PermissionContext.CurrentFolder PermissionContext.CurrentItem ...



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