Browse by Tags

Tagged Content List
  • Blog Post: Recycle Bin.. Continued..End Game

    After all this, one thing still remains - the javascript function mentioned in the install instructions. So here goes. <script language=javascript> function Custom_AddDocLibMenuItems(m, ctx) { var RootFolder = GetRootFolder(ctx); setupMenuContext(ctx); if (currentItemFileUrl == null) currentItemFileUrl...
  • Blog Post: Recycle Bin.. Continued

    Setup instructions A) Setting up the configuration 1) Copy the xml files 'Configuration.xml' and 'TrashConfiguration.xml' to the location 'C:\Sharepoint\' 2) Open the file 'Configuration.xml' in notepad and make a note of the values for 'Mirror', 'Recycle' and 'Main'. 3) In the 'Configuration...
  • Blog Post: Recycle Bin.. Continued

    Project Structure: Handler 1: Handles Upload(insert) and Delete events , Name: DocLibrary -------------- BaseEventSink.cs (from the first post) -------------- EventSinkData.cs(from the second post) Handler 2: Handles the Restore event (which is in fact the insert event again), Name: WasteBasket...
  • Blog Post: Recycle Bin.. Continued

    The second class for the second event handler: /*===================================================================== File: EventSinkData.cs Summary: Class to collect data for the event sink. --------------------------------------------------------------------- using System; using...
  • Blog Post: Recycle Bin.. Continued

    Now that we have handled the Upload and Delete events, let us handle the Restore event . Implemented in a class library which contains similar classes as the earlier library. Again we have a BaseEventSink class which is extended from the default available with the event handler toolkit and the EventSinkdata...
  • Blog Post: Recycle Bin.. Continued

    /*===================================================================== File: EventSinkData.cs Summary: Class to collect data for the event sink. --------------------------------------------------------------------- using System; using System.Xml; using System.Xml.Serialization;...
  • Blog Post: Recycle Bin

    With v2 of Sharepoint, restoring deleted documents was a much sought after elixir. And to that effect were made a number of attempts at coaxing the product to allow us to retain copies of the deleted items. Once such simplistic approach was documented and well presented by Maxin V Karpov and Eric Schoonover...
  • Blog Post: Musings...

    Its been quite some time since I consciously dug out time to write something here. The past couple of months have been a helluva time. I started with getting the feelers on office 12 and then the whole bunch of technological challenges that throws up. Most of my time has been spent just getting to know...
  • Blog Post: Listless

    This is something really silly. Any list that is a part of a site can be accessed by using a small snippet that looks more or less like this: SPSite site = new SPSite(http://localhost"); SPWeb web = site.OpenWeb(); SPList list = web.Lists[index]; Now lets say you want to add an item to an ordinary list...
  • Blog Post: Trustworthy!!

    The other day I landed on a very interesting issue. Before I break in the solution, let me just try and explain the problem the way it came in. Well, there was this guy who had created a custom web part to fetch a report from some database. He was supposed to be using a SQL database in production...
  • Blog Post: Area 51

    This started of as another one of those weird things. Well, so here goes. Problem: Accessing the news listing through the Object Model. Solution : // get the reference SPSite site = new SPSite(“http://localhost”); // this will point to the portal URL SPWeb web = site.OpenWeb(); // get the context PortalContext...
  • Blog Post: Digging the content index

    The content index is one of the most sought after parts of Sharepoint. Search is one of the most popular and also one of the most mystical of Sharepoint features. So it goes without saying that accessing the content index is like chasing a dream. But before you start jumping with glee, there is absolutly...
  • Blog Post: Programmatically adding a List with custom fields

    When a list is created programmatically using a custom template, the custom fields do not get displayed in the UI. These fields do not become a part of the displayed fields of the default view. The Problem - A common task like uploading a file to a list that was created programmatically using...
  • Blog Post: SPListItem.Update()

    Now thats a funny title. This is something I worked on quite recently. Consider a scenario where you are trying to access a number of lists programmatically. The issue I dealt with was concerned with lists in a recurring event of a metting workspace. But subsequent research revealed that this is a generic...
Page 1 of 1 (14 items)