Tag Info

Hot answers tagged

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


3

If you are looking at showing Yammer feed in your SharePoint site, you can embed the feed using the js code. Get the appropriate code for the required feed using the below link https://www.yammer.com/widget/configure And, if you want to show Other sections like Announcements, Recent Activities, Search for People etc., you can use my App from the SharePoint ...


3

In SharePoint 2013 you can't use Content Editor Webpart for embedding JavaScript. Instead you should move it to Script Editor Webpart. Another option is to store the HTML and Script in a file. And then reference that file in the Content Editor webpart using the Content Link property.


3

As I suggested in a comment to another answer, there are numerous ways to accomplish this that don't involve deploying server-side code into SharePoint. Here are a few that I could think of, I may have left some out; each have some advantages and possible challenges. TL;DR: Use the JavaScript injection pattern (especially with SharePoint Online - -- this ...


3

I wouldn't stop it, many functionalities depend on it. "The Distributed Cache service is either required by or improves performance of the following features: Authentication Newsfeeds OneNote client access Security Trimming Page performance" (source) For blob cache, I'd definitely enable it. Not only does it take strain off the SQL server, but it ...


3

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


3

You can use JSLinks to format your custom list. Using JSLink create a JS file, and then edit the webpart properties to reference it. Here is an example which display the list items in an accordion view // function to process an accordion item.. window.COB = window.COB || {}; window.COB.accordionItem = { customItemHtml: function (ctx) { var ...


3

in this case msdn is you best friend. As i created it for the company that i work for i could answer this for you ;) mysite limmit for webapplication first you need to understand what is a mysite? a mysite is a site collection. The mysite when setup if done according to best practice should be hosted on its own web application. This web application ...


3

Below example demonstrates how to customize List View in order to highlight list item rows. Assume there is a Tasks list and depending on status, rows have to be highlighted using the corresponding color. Template code: SP.SOD.executeFunc("clienttemplates.js", "SPClientTemplates", function() { ...


3

Perhaps your issue has something to with something SharePoint Designer is doing. Try resetting the master page to the site definition, then download a copy of your master page from the master page gallery using the web UI. Rename the file and make a minor modification and upload it back via the web UI with the new name. Then select the new master page in ...


2

Garima's answer is fine but the problem is the PersonalUrl can be overwritten by the user. It remains as MySite Url when its pulled back in the code if its blank but if the user enters a value you get back that value instead of the MySite Url. A better function to use is get_userUrl(). So I'd change the above code to be: function getPersonalUrl() { var ...


2

If i've understood it correctly, security scope as the sum of all the access in a document.So, for your examples, you always have 1. My examples: One list: Two items broken permission can be seen by user a ---> 2 security scope Two items broken permission can be seen by user b ---> 2 security scope Two items broken permission can be seen by users a,b ...


2

I would go for a User control with server side code. The UC can read from a list you (or the user control itself) creates and then create HTML from that result. You can then style the HTML with CSS if needed I would use HttpCache or similar to cache the final HTML for as long time as you think is viable for your use case (note that an IISRESET will clear ...


2

Since you are using SharePoint 2013, you can either use JSOM or REST API to read the data. This is happening on the client side, and it will be easier to add it to respective DOM elements (or create new elements). JSLink is a good option, but implementation will take more time. I prefer REST as it's much easier to implement and performs better.


2

RBS isn't configured correctly. You need to have master key in your SharePoint Content database. Use the following command to add it: use [ContentDbName] if not exists (select * from sys.symmetric_keys where name = N'##MS_DatabaseMasterKey##') create master key encryption by password = N'Admin Key Password !2#4' Source


2

Try this https://mysite.com/site/_api/web/lists/GetByTitle('Posts')/items?$filter=Alert eq 1


2

You can validate if the JS files are loading using the browser tools. Open the page with your list instance on it and then open the browser tools (hit F12 key if you are windows machine). What you are looking for are the source files. Each browser is a little different (Chrome has a source tab, but FireFox has it under Debugger tab). You can also look ...


2

Using JavaScript you can change the URL query string Source and place the DisplayForm http://spjsblog.com/2011/04/23/redirect-from-newform-to-dispform-or-editform/#comment-195397


2

What you need is to create the UL and DIV element in the control template and push your content in it via the item template. Now because you are working with display templates, this can only be done onces the rendering is complete, because at that time, the HTML is placed on the page. My approach is to add your list items and description values to two ...


2

Yes you can do this by modifying the master page and adding a little bit of JavaScript. Rich Text Editor support pasting Rich Text as-is as well as Plain Text. In your case you need to enable the Plain Text mode. For that first get the available modes RTE.RtePasteManager.get_pasteModes() And set the Plain Text mode ...


2

When working with a Display Template you have to request Managed Properties from the Context of the current item. The general process is: Crawl content Map crawled properties to Managed Properties Crawl Content again Create a new Display Template (often by copying an existing template) Add a reference to your custom managed property in the display template ...


2

You can do so by changing the CSS for that control. The control is implemented differently in On Premise than O365, so here's how to change it in both scenarios: Office 365: .o365cs-base.o365cst .o365cs-topnavBGColor, .o365cs-base.o365cst .o365cs-topnavLinkBackground{ background-color: red; } This is to change it to red color for example. In an on ...


2

Change The console app is configured for .Net 4, any CPU. to The console app is configured for .Net 4, X64. Also, as Amal said, run the console as administrator in the same box as you have SharePoint installed. Also, Run with Elevated Priviledges in a console does nothing. RWEP only removes the Impersonation and goes back to the Account that ...


2

The main reason for me would be that the data is more persistant in the host web, it will stay there even if you reinstall your app or delete your app (if you want it to). If stored in the app web it will be deleted on updates and uninstallation of the app.


2

It depends, some Apps would have their files & items in the App web as the App would be a stand alone App, and it won't interact that much with the host web. Other Apps would need the host web to reference files provided by the App, so they tend to store these files & create items inside the host web.


2

The problem is with the use of OnDemand=true. If you set that property than you are asking Sharepoint to only load the scripts on demand i.e. when you explicitly call them. This techique is used to reduce the amount of scripts loaded at page load. When applied script can be requested to execute by using SP.SOD.execute or SP.SOD.executeFunc methods. .master ...


2

Here are couple of points which can help you Find all custom Solutions - For this you can open Central Administration -> System Settings -> Solutions Now using PowerShell you can download those solutions from the Development Server $farm = Get-SPFarm $file = $farm.Solutions.Item("solutionname.wsp").SolutionFile ...


2

You need to add the OverLays to the Home Page App Part. OverLays you set for one Calendar part will not get copied over.


2

After a Save the page will get refreshed and the context is lost. The only option I can think of is to handle the button Save click event using jQuery. Other workaround Starting a Workflow on item create Handling Event Receiver ItemAdded Set SOURCE parameter so after item add it goes to a particular page. On that page add a window.load handler and execute ...



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