Posts

Showing posts from March, 2012

A way to customize forms of a SharePoint list

Image
Ref: http://vtimashkov.wordpress.com/2011/08/11/a-way-to-customize-forms-of-a-sharepoint-list/ Hi, everybody! There are several approaches to customize NEW/EDIT/VIEW forms of a SharePoint list. Firstly, you could use SharePoint designer and to customize needed form “in-place”. Such approach has obvious disadvantages – it is just not reusable. Second, you could employee Rendering Templates. It is goes alone with SharePoint best practices, but it has many disadvantages too – like impossibility to insert your custom control into the middle of ListFormWebPart. Etc, etc, etc. I would like to show additional way – flexible enough to be considered when there is a need to customize NEW/EDIT/VIEW form of a list. The final result will look like in my case: As you can see in the form, in standard MultipleLookupField control there is additional server-side button. As you know, each SharePoint list has several forms which are standard ASP.NET pages. The form to add new list item is “NewForm.a...

Cancel “Publish Major Version” for a Document Library

  public   class   CancelPublishMajorVersionTest : SPItemEventReceiver     {         private   HttpContext current;         public   CancelPublishMajorVersionTest () : base ()         {             current = HttpContext .Current;         }         public   override   void ItemUpdating( SPItemEventProperties properties)         {             base .ItemUpdating(properties);                      if (current != null )             {        ...

SharePoint 2010 Powershell Builder

  http://www.microsoft.com/resources/TechNet/en-us/Office/media/WindowsPowerShell/WindowsPowerShellCommandBuilder.html l

.JS file support for Modal UI with SP 2007 Master Page

      <SharePoint:ScriptLink language="javascript" name="core.js" defer="true" runat="server"/>     <SharePoint:ScriptLink Name="sp.js" LoadAfterUI="true" OnDemand="false" Localizable="false" runat="server" ID="ScriptLink2"/>     <SharePoint:ScriptLink Name="CUI.js" LoadAfterUI="true" OnDemand="false" Localizable="false" runat="server" ID="ScriptLink3"/>

Regular Expression Tool you should have

  http://www.ultrapico.com/Expresso.htm Setup: https://skydrive.live.com/redir.aspx?cid=93ccfb4bef6f3711&resid=93CCFB4BEF6F3711!2989&parid=93CCFB4BEF6F3711!225