Posts

Makes read only fields, required fields, hidden fields and Show or Hide fields on entry form for list or library.

Image
Hi, Here is a good article written by Alexander Bautz and provided code to hide or show a field from New Form, Edit Form or Display Form. With use of provided code you can make fields read-only or hidden or required.   EditSharePoint Field properties, including lookup column list association, withclient side code only DownloadCode from Site

Configure User Profile Services

Here is a good blog post to configure User Profile Services. https://www.nothingbutsharepoint.com/sites/devwiki/SP2010Admin/Pages/15%20-%20Configure%20User%20Profile%20Synchronization%20Service.aspx Have a look. Its too good.

My Task List Rollup Webpart for SharePoint 2010

Download My Task List Rollup Hello all, Here I am again with a new utility for your SharePoint 2010 deployment – “My Task List Rollup”. Some time before I was wondering to get all tasks on my landing page of SharePoint 2010 site. I searched everywhere but I didn’t get it. But now I have created Task List Rollup. This shows tasks from all sites/sub sites. My Task List Rollup is free to use. It works on Site Collection level. Here you will get a setup which installs this rollup & activate feature (My Task List (Cross Site)) of this rollup. When you will add My Task List Rollup on your page & modify setting of web part you will get a web part property section called “ My Task Rollup Configuration ”. In this section you can set paging size. Download My Task List Rollup

How to enable/disable buttons in ribbon conditionally?

Image
In this article I will cover how we can enable and disable the controls from ribbon based on any specific column value. For an instance I have a list column "State", if selected row is having status "active" then and then button should be enable in Ribbon, otherwise ribbon button should remain disable. For how to write Ribbon declaration please refer my previous articles. In above image you can see we have one button "New" in ribbon within group "Console". Please refer the source code for Ribbon's declaration. We are going to use delegate control for injecting ECMA script on fly for desired list. Below are the events causes ribbons to refresh so button can be turned enable/disable. Checkbox from every row SelectAll/DeselectAll checkbox from header row On every row select On each of above events after executing their respective functionality they instruct the ribbon to refresh. On received of refresh event ribbon calls Enable script ...

Truncate and shrink Transaction Log file in SQL Server 2008

In SQL Server this process have been changed. In 2008, just change the recovery model to simple and then use DBCC Shrinkfile command. Now follow these steps to shrink database file. Truncate the log by changing the database recovery model to SIMPLE            ALTER DATABASE [<Your Database Name>]             SET RECOVERY SIMPLE;            GO Shrink the truncated log file to 5 MB            DBCC SHRINKFILE ([<Your Database Name>_Log], 5);            GO Reset the database recovery model.           ALTER DATABASE [<Your Database Name>]           SET RECOVERY FULL;           GO...