Creating SharePoint Solution Package for a Custom Field Type
-
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
-
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
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
-
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
Thanks Chirantan