Posts

Showing posts from 2016

Customize default SharePoint New, Edit and Display forms using SharePoint Hosted App

I ran into a situation to develop this and referred the below, http://www.c-sharpcorner.com/article/add-custom-new-edit-display-form-to-list-using-sharepoint-ho/

Famous and Handy SharePoint URL's

Please refer the below url and it contains most of the handy and most frequently used SharePoint URL's, https://blogs.msdn.microsoft.com/how24/2013/05/23/famous-sharepoint-urls-locations/

Get Sharepoint version of your site quickly

Simply put this url after your base SharePoint site,   /_vti_pvt/service.cnf Example:https://test.sharepoint.com/_vti_pvt/service.cnf

Get all SiteCollections from a Web Application

Please use the below powershell script to get the list of sitecollections from a web application and store it in a text file. This will be run on Windows Powershell ISE   Microsoft.SharePoint.PowerShell" Get - SPWebApplication http: //yourwebapp.com | Get-SPSite | Select ID, Url | Out-File -FilePath "D:\spSites.txt"  

SharePoint App Deployment automation using Powershell

Please refer the link. I am yet to check this and so provided the referred link, https://blog.metrostarsystems.com/2013/06/13/sharepoint-solution-deployment-script-using-powershell/

Run Powershell script on Remote Computer/Server

Image
PowerShell Remoting allows you to run individual PowerShell commands or access full PowerShell sessions on remote Windows systems.   PowerShell is locked-down by default, so you’ll have to enable PowerShell Remoting before using it. This setup process is a bit more complex if you’re using a workgroup – for example, on a home network — instead of a domain.   Enabling PowerShell Remoting On the computer you want to access remotely, open a PowerShell window as Administrator – right click the PowerShell shortcut and select Run as Administrator.   To enable PowerShell Remoting, run the following command (known as a cmdlet in PowerShell):  Enable-PSRemoting -Force This command starts the WinRM service, sets it to start automatically with your system, and creates a firewall rule that allows incoming connections. The -Force part of the command tells PowerShell to perform these actions without prompting you for each step     Workgroup Setup If your computers aren

Getting Started: SharePoint and Powershell

Very first question: What's the difference between SharePoint Management PowerShell and Windows PowerShell ISE SharePoint Management PowerShell: 1. Wrapper on top of Windows PowerShell with preloaded SharePoint objects 2. Comes with boring black command prompt 3. Comes with "SharePoint Snapin" Windows PowerShell ISE (Integrated Scripting Environment) 1. Simple default PowerShell with no SharePoint objects 2. comes with developer friendly and performs object based command line functions 3. We can add "SharePoint Snapin" Note: Windows PowerShell and Windows PowerShell ISE are different. Later is the better IDE and before one is typical black command prompt Script to add "SharePoint Snapin" if((Get-PSSnapin "Microsoft.SharePoint.PowerShell") -eq $null) {        Add-PSSnapin Microsoft.SharePoint.PowerShell } Post this, you can simply test it with simple commands: $web = Get-SPWeb "<<Siteurl>>"

Convert javascript event object to jQuery event object

To convert javascript event object to jQuery event object use the below code, var jQueryEvent = $.event.fix(javascriptevent); By converting to jQuery, then all the event properties will work across the browsers and even in older version (Like IE 8 and earlier). Reason behind is jQuery is cross browser script.  

jQuery vs javaScript and samples

Image
jQuery is the wrapper on JavaScript. Meaning jQuery is the wrapper for the raw DOM objects returned by JavaScript. Since we get jQuery object bag, so we could use methods like css, etc., These methods are not available on the raw DOM object. document.getElementById('id') is faster than $('#id'). So use javascript, when there is simple work like using css or retrieving values. And use jQuery, if there is any complex functionality is involved and to use minimal coding. Also this is easy for the developers

IIS Express installed along with VS 2012 and 2013

When you develop web projects in Visual Studio, you need a web server to test or run them. Visual Studio lets you test with different web servers, including IIS Express , Internet Information Services (IIS), External Hosts, or Custom Web Servers By default, Visual Studio 2012 and Visual Studio 2013 use IIS Express. IIS Express is installed automatically when you install Visual Studio 2012 and Visual Studio 2013. If you want to install IIS Express in Visual Studio 2010 (SP1 is required), you can use the Microsoft Web Platform Installer. Reference: https://msdn.microsoft.com/en-us/library/58wxa9w5(v=vs.120).aspx  

SQL to LINQ Tools

Many programmers are familiar with SQL and will require help in the transition to LINQ. Sometimes complicated queries need to be written and Linqer can help by converting SQL scripts to LINQ   1. Please refer the below link for the tool details: http://www.sqltolinq.com/ 2. Also another tool -  LINQPad is not just for LINQ queries, but any C#/F#/VB expression, statement block or program . Put an end to those hundreds of Visual Studio Console projects cluttering your source folder and join the revolution of LINQPad scripters and incremental developers https://www.linqpad.net/

LINQ vs CAML for SharePoint

Disadvantages of CAML: ·          CAML query is text based so, if we are joining two lists across a lookup field there may be various problems associated with that . ·          There is no mechanism to know until run time if the query is written correctly or not. If the query is not correct, then it will simply fail at run time. Means it won't support at design time ·          When writing the query, you have no idea what CAML elements are legal in the syntax without having a reference open . ·          The query is somewhat difficult to understand. We cannot determine easily what the query is doing and what lists are being joined . ·          The data returned from the query is placed in a SPListItem collection, which does not provide strongly typed business entities .   Advantages of LINQ over CAML:   ·          First advantage is, it is an object-oriented query language . ·          It can provide strongly typed objects at design time; we

Shall I use OneDrive or SharePoint for business

Please go through this link and it clearly explains it. http://sharepointmaven.com/onedrive-for-business-sharepoint/