Hot answers tagged

64

2013 Model Types: CSOM: Client-side object model. C# (or Visual Basic) only, use NuGet, at the moment same package for both 2010 and 2013. JSOM: JavaScript object model. JavaScript only. SP.ClientContext.get_current() for normal use. new SP.ClientContext('url...') for specific SPSite. Note this works cross-SPSite in 2013. SSOM: Server-side object model. ...


27

Me in a Calculated Column You can not use [Me] in a Calculated Column Formula. You can use [Me] in de View Filter settings Like the [Created By] and [Modified By] Columns and Lookup Columns [Me] is not available for Calculated Columns as the textual information is not stored in the List Item. I presume its legacy behaviour. Although with todays ...


22

You can start from SharePoint 2013 training for developers; SharePoint 2013 development overview. Also as SharePoint 2013 is very similar to SharePoint 2010 you could periodically stumble into some articles related to SP2010. I could suggest some things to keep in mind about their differences: InfoPath seems to be deprecated in SP2013. So take a look ...


22

Here is Microsoft solution: http://support.microsoft.com/kb/2752600 Basically, start the browser as a different user. Another solution (but dirty) is to edit the Welcome.aspx file and add a control: <SharePoint:MenuItemTemplate runat="server" ID="ID_LoginAsDifferentUser" Text="<%$Resources:wss,personalactions_loginasdifferentuser%>" Description="&...


21

Nearly all my SharePoint 2013 development are done on my trusty Lenovo Thinkpad T410S which has a Core I5 (first gen) and is thus limited to 8gb ram but has a sweet SSD which helps a lot since everything is using the disk simulatenously. For development purpose, it's a all in one server (domain controller, SQL Server, SharePoint Farm) running Windows Server ...


20

Does SharePoint 2013 have support for responsive design or do you have to create it from stratch? No, there is no built in out of the box support for responsive design in SharePoint 2013. Responsive design is different from Mobile friendly design, and as such I think it's best to do your page layout and not rely on a framework. Others feel different, but ...


19

Yes. You need to activate Site Feed feature in Site Settings --> Manage site features. Then, when adding web part, under Site Collaboration group you will have the Site Feed WebPart UPDATED Yo must activate this feature in _layouts/15/ManageFeatures.aspx


18

Visual upgrade feature in SharePoint Server 2010 have been deprecated in SharePoint 2013. Web Analytics are not available in SharePoint 2013. Analytics processing for SharePoint 2013 is now a component of the Search service. No more Sandbox solutions support. In other words, sandbox solutions will be available for backwards compatibility with existing ...


18

7 Code samples that cover Client-Side Rendering/JS Link usage scenarios: http://code.msdn.microsoft.com/office/Client-side-rendering-JS-2ed3538a


17

The page you are looking for is in this folder directory, C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\LAYOUTS File is named as SearchResults.aspx


17

Some resources about Client Side Rendering INTRODUCTION TO CLIENT-SIDE RENDERING IN SHAREPOINT 2013 - I would suggest to use this great article as a starting point, it goes through what CSR is, how CSR can be used, and some tips about debugging and developing As a primer on how to customize a field type by using CSR there is an article in MSDN How to: ...


17

This seems to be pretty close in performance: context.Load(lists, all => all .Where(l => l.RootFolder.Name == "MyListUrl") .Include(l => l.Id)); context.ExecuteQuery(); list = lists.Single(); If you need to get this by server-relative url you would need to parse the web url and list url first.


17

Yet another version to load List by server relative Url using CSOM. The solution consists of the following steps: Retrieve list Folder object using Web.GetFolderByServerRelativeUrl method Retrieve List by specifying List ID stored in vti_listname property from Folder.Properties object Code: static class WebExtensions { /// <summary> /// ...


17

Apply the Cumulative Update for SharePoint 2013 (Foundation, Server, or Project). This should resolve the issue. This appears to be caused from applying MS16-004 while having a previous Cumulative Update installed. Cannot reproduce from a system upgraded to the SharePoint Server 2013 Jan 2016 CU, but can reproduce on another farm by only upgrading to MS16-...


16

SPContentDatabase.ForceDeleteSite http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spcontentdatabase.forcedeletesite.aspx use this method to force a delete: SPWebApplication spWebApplication = SPWebApplication.Lookup(new Uri("http://mywebapplication")); // insert the webapplication spWebApplication.ContentDatabases[0]....


16

Juergen, The below article should help: http://blog.collabware.com/2013/03/22/tips-tricks-sharepoint-2013-modal-dialogs/ You have SP.UI.ModalDialog.showWaitScreenWithNoClose which can be used.. function RequestEnded(sender, args) { try { waitDialog.close(); waitDialog = null; } catch (ex) { } }; function RequestStarted(sender, args) { ...


16

'Text': { 'View': RenderFieldValueDefault, 'DisplayForm': SPField_FormDisplay_Default, 'EditForm': SPFieldText_Edit, 'NewForm': SPFieldText_Edit }, 'Number': { 'View': RenderFieldValueDefault, ...


16

It extracts one named parameter from the QueryString (URL) http://domainname.com/page.aspx?parameter1=xxx&parameter2=yyy var value=getQueryStringParameter('parameter1'); It is used in many examples and most of the time not necessary (and bloats your code) because SharePoint has multiple implementations in core libraries Usage depends on whether you ...


15

You need to setup the app domain this is a good tut but very lengthy http://sharepointchick.com/archive/2012/07/29/setting-up-your-app-domain-for-sharepoint-2013.aspx also this: In order to install an App from the App Store you must setup an isolated App Domain, this is because Apps from the store deploy to their own app domain and run under a ...


15

You need to add a JSLink to the fields themselfs (this means you need to either update the existing fields (by code or by powershell, harder in Office 365) or create your own field definition) In that .js file you need to specify a number of methods that will override the standard functions, including View, DisplayForm, EditForm, NewForm. Note that this ...


15

Try this... Open up the SharePoint 2013 Management Shell as Administrator and run the following command: Enable-SPFeature SearchWebParts -url http://<central admin url>


15

I just had this issue the other day (but with height). The key is to use postMessage to set the width of the iframe. This worked for me (put in the .aspx file of app): <body> <div id="dynamicContent"> //App content here </div> <script type="text/javascript"> "use strict"; window.Communica = window.Communica || {}; $...


15

Try using 1 for true, 0 for false. I was able to replicate your problem in SPO, but using 1/0 worked fine: /_api/web/lists/getbytitle('BtProjects')/items?$filter=Active eq 1


15

For those who are still looking for the answer. SharePoint 2013 (since SP1 at least see UPD below) contains special method Web.GetList. It accepts site-relative url for the list, i.e. site/dev/lists/mylist. Sample code for .NET object model: var ctx = new ClientContext("http://sp2013dev/sites/dev"); var list = ctx.Web.GetList("sites/dev/lists/Addresses"...


15

It does not seem possible to filter list items using FileSystemObjectType property in SharePoint 2013 REST. Option 1 But you could utilize the following REST query to return folders and associated list items: /_api/web/lists/Lists(guid'GUID')/rootFolder/Folders?$expand=ListItemAllFields JavaScript example var listTitle = "Documents"; var url = "/_api/...


15

You can always add ?contents=1 to any url in SharePoint to see what specific webparts that are used in the site/page. Example: http: //test.sharepoint.com/Pages/default.aspx?contents=1


14

Fun stuff, I was checking this site since I stopped answering SO SharePoint questions for a few years now and this was the first thing in the list, a very interesting oversight during the "host web Feature" option for CustomActions. What a detailed investigation! Luckily I have a solution for you. WEB STANDARDS TO THE RESCUE CHO CHOO With Microsoft ...


14

My problem solved! Have a follow this link. Turn off distributed cache: Site loading time with it off: site loading time with it on: !!! From 6.10 seconds down to 79 ms


14

for simplicity I will state the obvious! user is not authenticated and resource requires authentication this tells me there is somthing wrong going on with the hand shaking (your certificate is not sent or is wrong), as its a microsoft product the best place is to look at msdn. to make it clear please read this: The following step is optional. ...


14

The log file should get you the path that SharePoint unsuccessfully tries to resolve. Try adding "~sitecollection" first in the ScriptLink like: <SharePoint:ScriptLink language="javascript" name="~sitecollection/custom/jquery-1.10.2.min.js" runat="server" Localizable="false" /> but this will only work inside the "the_new_osce_portal" Site ...



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