Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. SharePoint
  4. Creating SharePoint Solution Package for a Custom Field Type

Creating SharePoint Solution Package for a Custom Field Type

Scheduled Pinned Locked Moved SharePoint
sharepointdesignxmltutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    arut jothi
    wrote on last edited by
    #1

    Hi, I've built a custom field type that will fetch data from BDC and display it to the user. I'm not sure how to deploy this custom field as a feature in SharePoint. Kindly let me know the steps to create a solution package. I know how to create the .ddf file, manifest.xml file and to deploy the solution using STSADM commands, but not sure about what has to be mentioned in Feature.xml & also, which other file are required? Note: The code is as given below. This may not required to answer this questions.

    using System;
    using System.Collections.Generic;
    using System.Text;
    using Microsoft.SharePoint;

    namespace MyCustomFieldType
    {
    public class BDCField : Microsoft.SharePoint.SPFieldMultiColumn
    {
    public BDCField(SPFieldCollection fields, string fieldName): base(fields, fieldName)
    {
    }

        public BDCField(SPFieldCollection fields, string typeName, string displayName): base(fields, typeName, displayName)
        {
        }
    
        // Returns a WebControl as the field control's UI
        public override Microsoft.SharePoint.WebControls.BaseFieldControl FieldRenderingControl
        {
            get
            {
                return new BDCFieldControl();
            }
        }
    }
    

    }

    Note that along with this I've another file that renders the field control. Also, an XML file (as fldTypes_FieldName.xml) placed under TEMPLATE\XML folder in the project directory and its contents define the field type's properties. Thanks Arut

    C 1 Reply Last reply
    0
    • A arut jothi

      Hi, I've built a custom field type that will fetch data from BDC and display it to the user. I'm not sure how to deploy this custom field as a feature in SharePoint. Kindly let me know the steps to create a solution package. I know how to create the .ddf file, manifest.xml file and to deploy the solution using STSADM commands, but not sure about what has to be mentioned in Feature.xml & also, which other file are required? Note: The code is as given below. This may not required to answer this questions.

      using System;
      using System.Collections.Generic;
      using System.Text;
      using Microsoft.SharePoint;

      namespace MyCustomFieldType
      {
      public class BDCField : Microsoft.SharePoint.SPFieldMultiColumn
      {
      public BDCField(SPFieldCollection fields, string fieldName): base(fields, fieldName)
      {
      }

          public BDCField(SPFieldCollection fields, string typeName, string displayName): base(fields, typeName, displayName)
          {
          }
      
          // Returns a WebControl as the field control's UI
          public override Microsoft.SharePoint.WebControls.BaseFieldControl FieldRenderingControl
          {
              get
              {
                  return new BDCFieldControl();
              }
          }
      }
      

      }

      Note that along with this I've another file that renders the field control. Also, an XML file (as fldTypes_FieldName.xml) placed under TEMPLATE\XML folder in the project directory and its contents define the field type's properties. Thanks Arut

      C Offline
      C Offline
      Chirantan Upadhyay
      wrote on last edited by
      #2

      Hi Arut. Try this http://msdn.microsoft.com/en-us/library/ms473257.aspx[^] i hope this may help you in deployment.

      Chirantan Upadhyay Sr.Software Engineer, chirantan_upadhyay@yahoo.com Infovision Solutions Gurgaon, New Delhi

      A 1 Reply Last reply
      0
      • C Chirantan Upadhyay

        Hi Arut. Try this http://msdn.microsoft.com/en-us/library/ms473257.aspx[^] i hope this may help you in deployment.

        Chirantan Upadhyay Sr.Software Engineer, chirantan_upadhyay@yahoo.com Infovision Solutions Gurgaon, New Delhi

        A Offline
        A Offline
        arut jothi
        wrote on last edited by
        #3

        Thanks Chirantan

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups