Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

Define custom new/edit/display forms for Content Types

Recently, I got a requirement to define custom pages for a content type item. What am I talking about? If that’s the question these are the pages which open when you try to open, edit and create an item from the list. So the best way to customize these

BDC User Permission List ---- Add users from API

Recently I came across an interesting request from my customer, who wanted to add users to the “BDC User Permission List” in the central admin. There is a How To article on MSDN and SDK – “How to: Add an Access Control Entry to a Metadata Object”, but

Virtual Earth in SharePoint

I recently was working on a very cool requirement where customer wanted to implement virtual earth pins view in a SharePoint web part. On working for a long time using javascripts and XSL I was finally able to crack the solution. So, here are some instructions

Reusing SPSchedulePicker Control

SchedulePicker Class (in the Microsoft.SharePoint.WebControls namespace) is very handy when it comes to creating a SPSchedule . Particularly when creating application pages that handle the scheduling of custom timer jobs. So instead of creating your own

How to - Increase timeout value of a SharePoint workflow

I was recently working on an issue where customer had a workflow which used to fail and error out after the workflow would execute for some tasks. On deeper analysis I found that the workflow was creating 5000 tasks and it is then when the workflow errored

Modify a date-time value field in Event Handlers – Through AfterProperties

Recently I had a requirement from my customer where it was required to update a date time field through the event handlers and that had to be done in the asynchronous events. Well you may think that this is very simple and setting it with specific date

Application Definition Designer – New Name for BDC Editor Tool

I recently downloaded the new SharePoint SDK – 1.5 (April 2009 version) and found that the BDC editor tool was renamed to Application Definition Designer Tool. After installing i explored the various options and found no change in the functionality. So

Page Editing Toolbar - Problem with submit for approval node in the quick access

You need to customize the CustomQuickAccess.xml to achieve the functionality. Curiously, the functionality works well when you click the button – “Submit for approval..” under the workflow tab. So the idea was to somehow replace the original button with
Posted by varunmalhotra | 1 Comments

Save files from SharePoint document library to File System

Normally you would get requirements for uploading documents to the document library, but you would rarely find the requirement to download all the documents from SharePoint List to the the file system. As such the functionality is pretty easy to implement

Delete items of SharePoint recycle bin efficiently using - SPRecycleBinQuery

Recently I had a strange query from one of my clients. The client had the OOB SharePoint recycle bin. Somehow the number of items in his recycle bin became more than 500,000. So as we know SharePoint has a scheduled cleanup job that can be scheduled to
Posted by varunmalhotra | 1 Comments
Filed under:

How to get users under a subsite/area in WSS 2.0/SPS 2003?

Although it seems a very basic question, but I thought of blogging this as it is not as easy as it is in MOSS 2007. Normally our approach would be to use the SPWeb object to represent the sub site and then iterate through the list of users in the SPWeb

Fragment Caching for user controls doesn’t work in SharePoint if using SPD.

I recently had a strange requirement or should I say an issue where the client had created a user control in SharePoint and was trying to use Fragment Caching on the user control. But somehow the fragment caching wasn’t working. And the client was asking

SPWebApplication.Delete – Deletes Web Application – Myth Busted!!

If someone asks you, how to delete a WebApplication from the code API, the simple answer is to use – SPWebApplication.Delete(). So logically, you would expects that when you run this command it would remove the web application from central admin (Config

After Properties go blank in ItemUpdated event for Office 2007 Documents

Event Handlers in MOSS have come a long way since their inception in SharePoint 2003. In MOSS, event handlers expose a pair of properties which can be used for easing quite complex functionality. Yes, I am talking about the pair – AfterProperties and

Add users of an AD Group to the SharePoint Site

Recently, I had a requirement from my Customer which required to add an AD groups’s user to the SharePoint site. As you know, if you try to add the SharePoint group directly to the SharePoint site, it would simply create the group but wouldn’t add the
More Posts Next page »
 
Page view tracker