Skip to main content

Posts

Showing posts from 2010

JQuery Integration with Sharepoint

JQuery changed the way we write javascript and easy to use.So JQuery become a must have for most of the developers around the world. We all are start working with sharepoint 2010 so one of the intresting question around the sharepoint world is Did Sharepoint 2010 ships with JQuery?. I was also curious about it so I was searching in the 14 hive folder in 2010 but there is no luck.So final answer to the JQuery Integration will be No Its not part of the Sharepoint 2010. So it will be interesting to see how we could use JQuery in Sharepoint. Now JQuery could be used in two different way. 1. CDN Hosted JQuery A number of large enterprises provide hosted copies of jQuery on existing CDN networks that are available for public use. http://code.jquery.com/jquery-1.4.4.min.js Minified version http://code.jquery.com/jquery-1.4.4.js Source version Read More 2. JQuery from Local Server Next approach will be download JQuery from the official site and save in your local server , then r

Creating Custom Timer Job

Timer Job is something which comes into mind when you are looking for batch process in sharepoint.In most of the realtime sharepoint site requires Pulling data from some other application and update the data in sharepoint.In some other scenario we need to synchronize information or Updata date in every day, or give the admin a flexibility execute some batch processing.Its realy good idea to create a Custom Scheduled Job.Let see a Basic skelton code. using Microsoft.SharePoint; using Microsoft.SharePoint.Administration; //Class should inherit from  SPJobDefinition Public class SampleJob :  SPJobDefinition {        //You could Define Custom properties         [Persisted()]         public string MyCustomProperty; ///Implement Following three constructors public SampleJob (): base(){  } public SampleJob (string jobName, SPService service, SPServer server, SPJobLockType targetType): base (jobName, service, server, targetType) { } public SampleJob (string jobName, SPWebAp

System.PlatformNotSupportedException in Sharepoint 2010

All the sharepoint developer must be exited to see the .Net Framework 4.0 , unfortunately its not supported.Once you VS2010 and start playing around as sharepoint devleloper you just jump into start writing few lines of code. May be something like following using (SPSite objSiteColl = new SPSite("http://Localhost")) {    Console.WriteLine("Found My Girl  : {0}", objSiteColl.RootWeb.Title); }   Exception  : Exception of type 'System.PlatformNotSupportedException' was thrown.    at Microsoft.SharePoint.Administration.SPConfigurationDatabase.get_Farm()    at Microsoft.SharePoint.Administration.SPFarm.FindLocal(SPFarm& farm, Boolean& isJoined)    at Microsoft.SharePoint.Administration.SPFarm.get_Local()    at Microsoft.SharePoint.SPSite..ctor(String requestUrl) No need to scratch your head , .Net Framework 4.0 is not supported in Sharepoint.

System.IO.FileNotFound exception in SharePoint 2010

Sharepoint 2010 works comes certain constrains to improve the performance.So when we start working with 2010 it will be intresting to see some error which normally works in sharepoint 2007. For example if you ran into issue like System.IO.FileNotFound exceptio n. You will wonder why its not working just executing four lines of code like follow using (SPSite objSiteColl = new SPSite("http://localhost")) {          Console.WriteLine("Found Site : {0}", objSiteColl.RootWeb.Title); } Here we just forgot that Sharepoint 2010 support only 64 bit , answer is simple Go to project properties and change platform to X64. Still not over yet same could be raised by the permission Issue read  my other blog and see minimal permission required to execute the code which access the sharepoint Object Model. If you use .Net framework 4.0 check my blog before using it.

Features in Sharepoint 2010

Business Connectivity Services Client Object Model Health Analyzer Microsoft Synch Framework Performance Monitoring and Request Throttling Ribbon Sandboxed Solutions Service Application Framework Silverlight Integration and Cross-Domain Data Access ULS Logging Windows PowerShell for SharePoint Custom Field Rendering Enhancements Events Enhancements List Enhancements External lists Large lists Items per view Documents per list Column Limits Mobile Device Development Enhancements Query Enhancements Security Enhancements UI Enhancements Workflow Enhancements Enterprise Content Management (ECM) Enhancements Excel Services Enhancements PerformancePoint Services SharePoint Enterprise Search Enhancements FAST Search -It supports a number of enhanced capabilities, including a content-processing pipeline, metadata extraction, visual search, and advanced linguistics. User Profiles Enhancements and Social Data Word Automation Services Visio Services New browser support Enhan