Posts

Showing posts from February, 2014

Synchronous vs Asynchronous Event Receivers

Synchronous  - Events are executed before the action is executed on the content database.          Events ending with  -ing  are named as Synchronous Event Receivers          Ex. Item Deleting,Item Adding.      2.   A Synchronous  - Events are executed after the action is executed on the content database.          Events ending with  -ed  are named as A Synchronous Event Receivers          Ex. Item Deleted,Item Added. Different Base Classes in Event Receivers:      There are totally 5 base classes in SharePoint 2010, SPItemEventReceiver  – Event at List item Level. SPListEventReceiver  - Event at List Level. SPFeatureEventReceiver  - Event activation and Deactivation at list level. FeatureInstalled: Right after feature is installed. FeatureActivated: Right after feature activation through “Site Settings” or otherwise. FeatureDeactivated: Right after feature deactivation through “Site Settings” or otherwise. FeatureUninstalled: Before feature is uninstalled. SPEmailEve

SharePoint 2013 Development (Apps versus Solutions)

Image
SharePoint 2013 is a strong development platform for building solutions and apps addressing different requirements and needs. There’s a plenty of documentation on MSDN and TechNet to get you started with building your first application and how to consume the different capabilities of the platform. But one thing I struggled to find is when and why you would use a SharePoint App rather than using the object model? This blog will walk you through that specific question and how to answer it. Before we start there’s no rights or wrongs here, it all depends on what the customer needs and the best way to tackle the requirements The Challenges: 1.        Hosting Solutions The first factor is where is my code being hosted? If you are using the object model most of your code will be within the SharePoint host environment: Managed solutions also known as farm solutions will be hosted within the main SharePoint worker process (w3wp.exe). Sandbox solutions will run within

Reading List Data With SPServices

<script type= "text/javascript" src= "../SiteAssets/jquery.min.js" ></script> <script type= "text/javascript" src= "../SiteAssets/jquery.SPServices.min.js" ></script> <script type= "text/javascript" > //this is where the script starts after the page is loaded $(document).ready( function () { GetSpeakers(); }); function GetSpeakers() { //The Web Service method we are calling, to read list items we use 'GetListItems' var method = "GetListItems" ; //The display name of the list we are reading data from var list = "Speakers" ; //We need to identify the fields we want to return. In this instance, we want the Name (Title), //Blog, and Picture fields from the Speakers list. You can see here that we are using the internal field names. //The display name field for the Speaker's name is "Name

QUERYING SHAREPOINT LIST ITEMS USING JQUERY

<script type="text/javascript" src=" http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"></script > <script type="text/javascript">     $(document).ready(function() {         var soapEnv =             "<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'> \                 <soapenv:Body> \                      <GetListItems xmlns='http://schemas.microsoft.com/sharepoint/soap/'> \                         <listName>Tasks</listName> \                         <viewFields> \                             <ViewFields> \                                <FieldRef Name='Title' /> \                            </ViewFields> \                         </viewFields> \                     </GetListItems> \                 </soapenv:Body> \             </soapenv:Envelope>";         $.ajax({             url: "

Connect a Filter Web Part to a List View Web Part

Image
Connect a Choice Filter Web Part to a List View Web Part  NOTE     The following procedure assumes you created a page on a team site. Commands and instructions can vary on other sites. To edit a page you must have at least the permissions obtained by being added to the default <Site Name> Members SharePoint group for the site. From a page, in the ribbon, click the  Page  tab, and then click the  Edit  command.  NOTE     If the  Edit  command is disabled, you may not have the permissions to edit the page. Contact your administrator. Click on the page where you want to insert a Choice Filter Web Part and a List View Web Part. In the ribbon, click the  Insert  tab, and then click  Web Part . Under  Categories , click  Lists and Libraries , under  Web Parts , click the List View Web Part you want, and then click  Add . The new Web Part appears on the page. Click the Web Part menu down arrow for the List View Web Part, and then point to  Modify Shared Web Part .