Friday, October 5, 2012

Share Point 2013 and 2010 Difference



Below given table provides the differentiating information in between share point 2013 and 2010. This information is taken from learningsharepoint site

 
SharePoint 2013 Preview
SharePoint 2010 Server


  • In SharePoint 2013 Microsoft Introduced a new Cloud App Model for designing Apps for SharePoint. Apps for SharePoint are self-contained pieces of functionality that extend the capabilities of a SharePoint website. You can use HTML, CSS, JavaScript and protocols like the Open Data protocol (OData), and OAuth to communicate with SharePoint using Apps.
  • Tools – SharePoint 2013 has Introduced new Tools for App development. Visual Studio 2012 now lets you develop apps for SharePoint and apps for Office. In addition a new web-based tools called “Napa” Office 365 Development Tools were introduced for developing apps.
  • No more Sandbox solutions. SharePoint 2013 sandboxed solutions are deprecated. So all we got is the New App model and the Old SharePoint Farm solutions
  • SharePoint 2010 Introduced Sandbox solutions to help developers deploy code that did not effect the whole farm.
  • In SharePoint 2010 you could use Server Object model and Client side Object model (.Net Managed, ECMASCRIPT and silverlight) to extract data from SharePoint.
  • In SharePoint 2010 developers were also developing Farm solutions as they did with the previous SharePoint 2007 version.
Social and Collaboration features –
Microsoft in SharePoint 2013 Introduced new Social capabilities for better collaboration in the company.New Features added are -
  • Interactive feed
  • Community Site
  • Follow people
  • Follow Sites
Social and Collaboration features - SharePoint 2010 had very few social capabilities.
  • My sites
  • Tags and Tag profile pages
  • Notes
Search - SharePoint 2013 includes several enhancements, custom content processing with the Content Enrichment web service, and a new framework for presenting search result types. Some of the features added are –
  • Consolidated Search Results
  • Rich Results Framework
  • keyword query language (KQL) enhancements
Search – SharePoint 2010 had Introduced Integrated FAST search as an Enterprise search. In addition to this build-in SharePoint search is still widely used in companies.
Enterprise Content Management (ECM) -
SharePoint 2013 added some of the best capabilities of an ECM software. The newly added stuff is
  • Design Manager
  • Managed Navigation
  • Cross-site Publishing
  • EDiscovery
Enterprise Content Management (ECM) - SharePoint 2010 on the other hand had Introduced Managed metadata and taxonomy as a part of new ECM benefits for SP 2010. This version did not had Managed Navigation and Cross-site Publishing. SharePoint designer was a primary tool to modify Master pages instead of the new Design Manager.



Sunday, September 23, 2012

Choosing the right API in SharePoint 2013 preview



Developer can choose from multiple set of APIs for accessing share point 2013 preview and it depends on below explained of factors.
The type of the Application – This is one of the factors that decide which API to choose.  Developer might be developing the custom web part, App for SharePoint, Silverlight application, ASP.Net application, JavaScript used in SP page, SP application page, Timer jobs, and windows power shell scripts. So selection of the right APIs set depend upon which type of the above application you want to develop.
Proficiency in your skill -   If you are much familiar with SP 2010 client side development then you have lot of choices for choosing the APIs. But also if you are not familiar with SP development and have some good skills in one of the below technology then also you can develop the application choosing the API which matches your skill. So if you are familiar with JavaScript, ASP.NET,REST,.NET Framework ,Windows Phone, Silverlight, Windows PowerShell then you can choose the API matching to your skill.
Device on which Application Runs – This is also one of the important factors which make difference in choosing the right API for development. Your application may run on SP server, Cloud server, Client computers or mobile devices. So you have to think on this also while choosing  APIs set.

Below table gives some idea for choosing the right API set as per the application that you want to develop.
API set
Type of Application
Server Object Modal
Create custom web part, custom timer job, Application page, Site definition, Custom power shell command, Extension of CA
ECMA (JavaScript client side object modal)
Apps for office which works on SP, custom SP pages like html/java script which communicates with SP list/library for CRUD operation.
Silverlight Client side object Modal
SL application that works with SP List/Library and do CRUD operation with SP data
.net frame work CSOM
.net application that communicates with SP data.
REST and oData end points
Create android app which communicates with SP data.
Mobile Client Object Model
Create the windows phone app that communicates with SP data.

Hope you find this information useful in choosing the right API set for you SP 2013 application development.



Sunday, September 16, 2012

Creating New Web Application and Site Collection in SP2013 Preview

Here are some screens for creating new web application and site collection in share point 2013.This is not some complex thing but I just want to give its UI idea and some new features added while creating new web application & site collection.So go through below given screens and get updated your self...

Go to central administration and click on new web application. This brings below pop up fill required details for application.


In 2013 now we can activate the SharePoint application services at the time of creating application it self. The ServicesApplication drop down is selected to default type option with default services and if we want to activate  some more then need to select for custom type. After selecting the custom and checking the required services for your web application and click on create.



This is new processing animation added for showing the processing.



Your application is created and now time to create site collection




Clicking on create site collection brings below pop -up. Here now we have choice of creating site collection from  2010 or 2013 temple.Red color marked drop down give the clear idea. Fill required details for site collection and click on create button.


And your site collection is ready.





This is view all site content screen. Now every thing is of metro style.




This is with some different theme.








Sunday, September 9, 2012

Share Point 2013 Preview - New Features


Last week end I went through some new features of SharePoint 2013 preview. I explained it in my way in small synopsis for each feature. Also there are lot of other new features introduced in Share Point 2013 preview and this is only tip of the iceberg.  If I get time in next couple of days to explore all other I will definitely make available to you people in my coming new posts..!


eDiscovery

This is new feature added in SP 2013 for managing cases. The eDiscovery center creates a portal and this portal can be used to access cases to search, content holding and exporting.
The main benefit of this is that user can work with content that is preserved and can define the scope of preservation. The results now can be of documents, emails and wiki pages.
Mobile devices

Another important feature that added in SP2013 is the ability to render one SP published site in multiple devices. The push notification service can be enabled on the SP site for sending it to the windows phone device. The office web apps like excel, word and PowerPoint now can be browsed on mobile devices.
Business Connectivity Services

In BCS there are lot of new features added. Now it supports BDC connection, WCF, SQL Server, and .Net assemblies. The external lists now have ability to communicate using REST APIs for web and mobile device apps. There is addition of six new cmdlets for BDC.


Authentication
The SharePoint 2013 Preview now improved in claims-based authentication and now it’s easy to use compared to 2010. The Open Authorization 2.0 and server-to-server authentication is introduced which extends support for application authentication. The cross-server authentication access between SharePoint 2013 Preview and Exchange 2013 Preview is now possible and user can share apps on SharePoint store and manage access to certain people with claim identity.


Business intelligence

This is one of the important featured added in Excel. The IMBI (In-Memory BI Engine) now analysis of millions of rows of data .Power View Add-in for Excel. The visualizations, animations can be done with modeled data using smart querying. The excel service is enhanced to update BI in canter site template. Visio services are now improved with ability to add comments to Visio drawings.


Workflows
There are some architectural changes in 2013 SharePoint Workflow. If you want SP 2010 workflow building experience then just install share point 2013 server preview But if you want the SharePoint 2013 workflow platform, you need to install and configure Windows Azure Workflow to communicate with your Preview farm. To manage Azure workflow must need Windows PowerShell.


New App Model 

This new app model sets new web standards.  Now you can develop the user experience with HTML and Java script, and leverage share Point and other REST services right from the client using JavaScript and JSON. The new cloud app model also takes advantage of OAuth to allow for secure communication between SharePoint and remote hosted apps and services


Friday, August 17, 2012

Creating Share Point 2013 Apps on O365 Preview Using NAPA

While exploring on share point 2013 last week, I surprised with lot new features in 2013.Its definitely making our life easy in case of collaboration, search and document management.
I tried to create one app on O365 from my trial developer account and like to share with you people to have its little idea.
Just go through the below steps and check how easy it is to develop App on O365. It provides the NAPA development tool for developing the O365 app.Before starting there are some prerequisite that has to be completed.

You need to register for O365 developer site account.
Required IE9 running on your computer

Once you done with above steps go through below given steps to create you first app.

1. Create development site collection from your O365 account.
  Go to to SP admin center
  Click on site collection
  Create new private site collection using development site template. Complete the necessary steps like allocating space url and name of site collection.

Copy the newly created site collection and put it in new browser window. The site looks like this


Click on site Gear icon and select Add an App


The next step is to go to the home page of this site,click on site content then click on NAPA app and select app for share point .Give name for app. Here its SuryakantSharepointApp1.



After crating the app now it take you to its default.aspx page. Write some code in placeholdermain control


Now click on Apps.js file and add some java script/jquery function.  



Once done with all coding part now its time to run your app and that you can do from bottom left corner action buttons.Click Run button to run your app.


After clicking on run it goes through the uninstall,install and deploy and launch stages.



And here is your first O365 App.chase...!






Monday, August 13, 2012

Creating BCS connection with detail steps


Creating BCS connection is little tricky part and if you miss some steps then it takes more time to do it. It’s just configuration work but still people are not able to do it because there are some small steps needs to be done like setting permissions configuring secure state service etc. and if those are missing while doing it then  it’s becoming critical for them. Here I have given detail steps to configure the BCS connection and creating external list to bring external data in share point and I explained here each step required while doing this process.
May be you guys will help it for doing the BCS connection. Still you find any difficulty feel free to contact me on my mail.
Before start creating BCS connection from SP designer we must have to create secure target application from central admin
Open CA and then
Central Admin> Application Management > Manage Service Applications > Secure Store Service Application > Click on New button from ribbon.
Click on Next then below screen occurs add user id and password details

Click next and add administrator for this secure state application


Next step is to set the credentials for this application. Click on arrow icon of application id and it shows the menu. Select set credentials.
After clicking the set credentials its shows below screen for adding the credentials details. Add credentials and hit OK.
Now the configuration part one is done. We will have to do one more configuration that we will see in next steps. Its now time to start cresting the ECT(External Content Type) so start SP designer and open your site and click on external content type.

Add the connection name display name, list type and click on external data source link to make the connection. Its shows below screen now click on Add Connection and it gives you the three types of data source as we are connection with SQL server so select SQL type from it
After selecting the data source now its time to provide the connection details so add server name, database name. And select middle option connects with impersonation identity option.
After adding server details insert the credentials details in below window and click OK.
Now connection is added and it will display the tables from the database. Expand the required table and select the type of the operation you want to do with it.


Add configuration as per you requirement and go on clinking Next still Finish.




After doing all the table settings. Click on save to save the connection.
Now its time to create the external list from external list template. So go to create list option select the ECT template and create the list.


After creating the list when you come to the list all item view you will get below error
And this is due to credentials. So set the credentials for BCS Connection from CA.





Once the credentials are added just refresh the screen and you will get your data from related table.




















































Saturday, August 4, 2012

Creating and deploying the timer jobs in share point 2010


When there is any activity wants to happen automatically in share point then there is one quick solution and that is Timer job.Timer job runs in a specific Windows service for SharePoint Server.Its very easy to create the timer job and deploy to share point server.Timer job can be set from seconds to years period.Timer job contains a definition of the service to run and specifies how frequently the service is started. SharePoint timer service runs the the timer job.This feature is debugged uisng OWSTimer process.

Below is one example which gives idea of creating and deploying the timer job. It definately help you in enhansing your knoweldgebase.

Steps for creating the timer job.

1. Create new project from visual studio with share point template




2.Once the project is selected now its time to to set the SP server url. Since the timer job can not be deployed as sandbox solutions so select the farm solution for deployment.




3. Open the solution explorer and right click on project name and add the new item and that is class.



4. After adding the class now add the feature because the timer is deployed as feature to share point server. Right click on feature and select add feature and sets its scope.



5. Add the event receiver by right clicking on the feature.

6. Once all the required files are added in solution now its time to play with code. So open the class which we added in step 3 and add code as below.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint.Administration;
using Microsoft.SharePoint;

namespace TestTimerJob
{
    public class TestTimerJob : SPJobDefinition
    {
        public TestTimerJob()

            : base()
        {

        }

        public TestTimerJob(string jobName, SPService service, SPServer server, SPJobLockType targetType)

            : base(jobName, service, server, targetType)
        {

        }

        public TestTimerJob(string jobName, SPWebApplication webApplication)

            : base(jobName, webApplication, null, SPJobLockType.ContentDatabase)
        {

            this.Title = "Test Timer Job";

        }
        public override void Execute(Guid contentDbId)
        {

            SPSite oSPSite = new SPSite("http://MySharepointTestServer");
            SPWeb oSPWeb = oSPSite.RootWeb;
            oSPWeb.AllowUnsafeUpdates = true;

            SPList testList = oSPWeb.Lists["TestList"];
            SPListItem newTaskItem = testList.Items.Add();
            newTaskItem["Title"] = "NewItem";
            newTaskItem.Update();

            oSPWeb.AllowUnsafeUpdates = false;
        }
    }
}


6.  Now add the code for event receiver  class for its scheduler logic, activation and deactivation method as like below.

using System;
using System.Runtime.InteropServices;
using System.Security.Permissions;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Security;
using Microsoft.SharePoint.Administration;

namespace Test.Features.Feature1
{
    ///
    /// This class handles events raised during feature activation, deactivation, installation, uninstallation, and upgrade.
    ///
    ///
    /// The GUID attached to this class may be used during packaging and should not be modified.
    ///

    [Guid("1d48fa2f-edce-428c-bfea-bb9fc473f9ca")]
    public class Feature1EventReceiver : SPFeatureReceiver
    {
        // Uncomment the method below to handle the event raised after a feature has been activated.
        const string List_JOB_NAME = "TestListTimer";
        public override void FeatureActivated(SPFeatureReceiverProperties properties)
        {
            SPSite site = properties.Feature.Parent as SPSite;

            // make sure the job isn't already registered

            foreach (SPJobDefinition job in site.WebApplication.JobDefinitions)
            {

                if (job.Name == List_JOB_NAME)

                    job.Delete();

            }
            // install the job

            TestTimerJob listLoggerJob = new TestTimerJob(List_JOB_NAME, site.WebApplication);

            SPMinuteSchedule schedule = new SPMinuteSchedule();
            //SPHourlySchedule schedule1 = new SPHourlySchedule();
            //SPDailySchedule sc = new SPDailySchedule();
            //SPYearlySchedule scy = new SPYearlySchedule();
            
        

            schedule.BeginSecond = 0;

            schedule.EndSecond = 59;

            schedule.Interval = 5;

            listLoggerJob.Schedule = schedule;

            listLoggerJob.Update();
        }


        // Uncomment the method below to handle the event raised before a feature is deactivated.

        public override void FeatureDeactivating(SPFeatureReceiverProperties properties)
        {
            SPSite site = properties.Feature.Parent as SPSite;

            // delete the job

            foreach (SPJobDefinition job in site.WebApplication.JobDefinitions)
            {

                if (job.Name == List_JOB_NAME)

                    job.Delete();

            }
        }


        // Uncomment the method below to handle the event raised after a feature has been installed.

        //public override void FeatureInstalled(SPFeatureReceiverProperties properties)
        //{
        //}


        // Uncomment the method below to handle the event raised before a feature is uninstalled.

        //public override void FeatureUninstalling(SPFeatureReceiverProperties properties)
        //{
        //}

        // Uncomment the method below to handle the event raised when a feature is upgradin8. g.

        //public override void FeatureUpgrading(SPFeatureReceiverProperties properties, string upgradeActionName, System.Collections.Generic.IDictionary parameters)
        //{
        //}
    }
}



7. Build the solution and deploy to the server.


8. The above deployment can be done on VM or your development server but if you have to deploy it to the production then you have to use STSADM or PoweShell command.

shell command” - Enable-SPFeature -Identity “FeatureName” -Url “https://Servername″

STSADM  - stsadm -o activatefeature -fileName MyTestTimer\TestTimerFeature.xml -url  -force

                  stsadm -o deactivatefeature -fileName MyTestTimer\TestTimerFeature.xml -url   -force