Tag Info

Hot answers tagged

30

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


13

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'


9

here is a better solution. Enjoy and let me know if you need more help :) ExecuteOrDelayUntilScriptLoaded(function() { g_uploadType = DragDropMode.NOTSUPPORTED; SPDragDropManager.DragDropMode = DragDropMode.NOTSUPPORTED; }, "DragDrop.js");


9

I hade the exact same problem last week and found no built in way of solving it. What I ended up doing was checking the value of beforeProperties and afterProperties of what I wanted to update, and if there was no difference, then I broke out of the method. I actually wrote a blog post about it. This is an annoying problem that I hope Microsoft improves in ...


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


8

Queries will be executed based on the logged in users context. The results will be security trimmed. Also you should note that there is no option to elevate privileges from Client Side. This was done to eliminate security risks. Talking about app's (which can use REST queries), we can elevate the permissions. But this permission is maximum limited to the ...


7

Yes you can do that. Thank you to ASP.NET 4 and Managed Navigation this is very easy to do on SharePoint 2013. Please refer to these links: http://technet.microsoft.com/en-us/library/dn194310.aspx http://technet.microsoft.com/en-us/library/dn194311.aspx Note: The cross-site publishing feature is available only in SharePoint Server 2013 Enterprise. If ...


7

Device Channels Yes I'm talking about Device Channels even when they are not mentioned in the question, because they can deliver the best performance and optimizability for the enduser and the client - in my opinion :) Pro individual designed HTML/CSS and JS foreach device -- no need for hiding or removing incompatible elements -- faster because you just ...


7

Instead of using PowerShell Remoting with SharePoint you could consider another approach. Since SharePoint 2013 supports several sets of APIs, you could utilize client APIs (CSOM/REST) in PowerShell. As you already mentioned Microsoft released Windows PowerShell for SharePoint Online for working with SharePoint Online. This SDK uses CSOM as the ...


7

As far as I understand your question, i think there is problem when your are uploading file through a mapped drive. If you copy & paste a file over windows explorer (WebDAV) to the Library the EventHandle (ItemAdded) will trigger as soon the File was created. But this doesn't mean the File is already filled with data. So one workaround should be to put ...


7

I don't know of a configuration setting that will turn off the Add button in the Calendar but you can hide it by placing a Content Editor web part on the page and adding the following CSS to the Content Editor. Be sure to click the Edit Source button in the ribbon and paste it in the HTML Source. <style type="text/css"> .ms-acal-rootdiv ...


7

Since your "today" variable is a JavaScript date object, you can get the string representation by calling the toISOString() method. ...$filter=StartDate ge datetime'" + today.toISOString() + "' and ...


7

Yes you do not have a site content or site settings pages you find in a normal page. However, if you know the list internal name, you can build the url from it and go to lit. {App Site URL}/Lists/{List internal name}/AllItems.aspx App Site URL should be like as below example: ...


7

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


6

Try this variant, replacing the AllUsers lookup with EnsureUser $spsite = new-object Microsoft.SharePoint.SPSite("https://mysite.com/") $web = $spsite.openweb("/subsite1/subsite2/") $removeUser = $web.EnsureUser("domainname\username") Or, if you do not wish to add the user to the site even to then delete him/ her, you can build on this functionality ...


6

You can not just turn data.d.results on a string. You must make a grab for For all results that return in data.d.results. So you will have: for(var i = 0; i<data.d.results.length; i++){ $('#event_listing').append(data.d.results[i].ID); $('#event_listing').append(data.d.results[i].Title); } So you return the ID and title of all objects, since ...


6

I find your requirement interesting, as it is quite common for a ticketing system. SharePoint can't do this natively, the reason being that the created and modified dates get written when an item is actually inserted and updated. You need to track the time spent on a form, that is the timespan between the click on the "add new item"/"edit item" button and ...


6

Yes, being a straight modification on a default SharePoint file, it will bring your farm to an unsupported state


6

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.


6

You should reduce it, and your farm will get benefit from it. Their is no impact rather you will get performance improvement. NodeRunner.exe is resource hungry process. their 3 step process: Use Set-SPEnterpriseSearchService -PerformanceLevel Reduced to reduce the CPU impact the search service Modify the C:\Program Files\Microsoft Office ...


6

If you have an MSDN Premium subscription, you will be able to set up a development environment using VMs and you should also be able to sign up for a 1 year free Office 365 developer account. In addition to the Core Solutions jumpstart that Amal linked to there is also the one for the Advanced Solutions as well. You also should absolutely get a PluralSight ...


6

Farm Solutions (Full Trust): Develop for SharePoint On-Premises only. Can use managed code and the Server Object Model. This model has been around since SharePoint 2007 and is currently the most robust and well documented. Sandbox Solutions: Develop for SharePoint On-Premises or SharePoint Online. Can currently use managed code and a limited version of the ...


5

I can't really provide a sensible answer to why this is happening (I can confirm I'm experiencing the same weird behavior. I'm sure this is related to the fact that they cut out the designer part without properly thinking about the consequences this would have had). What I can offer is a dirty workaround that proved to be almost always working in my case. ...


5

Batching is now supported in REST O365 only. You can check out a javascript library on GitHub that batches these for you using the new capabilities. https://github.com/SteveCurran/sp-rest-batch-execution


5

@PirateEric Sorry but this is untrue. Anyone who finds this as I did searching for a way to change the List URL of a SharePoint 2013 last can do so in Designer by following the steps outlined in this SO post: http://stackoverflow.com/questions/12904944/change-sharepoint-library-url Essentially: In SharePoint Designer just navigate to All Files navigation ...


5

Elevated privileges is not enough to write to the configuration database. With elevated privileges you will use the the web application app pool’s identitty, which has only read permission to the config db by default. Of course admin user (which runs the central admin should have read and write permissions). See more at: ...


5

You cannot change any properties in the User Profiles via client OM code (neither .NET nor via JavaScript) with the exception of the user's profile picture. MSDN - Work with user profiles in SharePoint 2013 Not all functionality that you find in the Microsoft.Office.Server.UserProfiles assembly is available from client APIs. For example, you have ...


5

Use SPField.ShowInNewForm and SPField.ShowInEditForm properties to control the visibility of fields in form pages. PowerShell example $web = Get-SPWeb http://intranet.contoso.com $list = $web.Lists["Tasks"] $field = $list.Fields["TaskStatus"] $field.ShowInNewForm = $False $field.ShowInEditForm = $True $field.Update() $list.Update() CSOM (JavaScript) ...


5

You can try below code to Deactivate MDS feature for entire web application. $webApp = Get-SPWebApplication -Identity http://sp2010 $siteCollection =$webApp | Get-SPSite -limit all foreach ($site in $siteCollection) { $webs = $site | Get-SPweb -limit all foreach ($web in $webs) { $url = $web.URL write-host "Web URL = " $url -foregroundcolor ...


5

Try to wrap it in {? } {?{searchTerms} (contentclass:STS_ListItem OR IsDocument:True)}



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