Help pls: Problem adding custom Field type in create column in a list settings

Error: Field type PhoneNumber is not installed properly. Go to the list settings page to delete this field

Hi

I create an ascx with its cs code behind, i copy the ascx to D:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\CONTROLTEMPLATES

then i create this xml that I copy to D:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\XML (the file is bellow in the post). After I create my cs file with all the methods.

I build my project, then copy the dll file to the d:/windows/assembly. But when I try to add the column to my list i get the error .

Field type PhoneNumber is not installed properly. Go to the list settings page to delete this field

Here is the xml file:

< xml version="1.0" encoding="utf-8" >

<FieldTypes>

<FieldType>

<Field Name="TypeName">PhoneNumber</Field>

<Field Name="ParentType">Text</Field>

<Field Name="TypeDisplayName">Phone Number</Field>

<Field Name="TypeShortDescription">Phone Number</Field>

<Field Name="UserCreatable">TRUE</Field>

<Field Name="ShowInListCreate">TRUE</Field>

<Field Name="ShowInSurveyCreate">TRUE</Field>

<Field Name="ShowInDocumentLibraryCreate">TRUE</Field>

<Field Name="ShowInColumnTemplateCreate">TRUE</Field>

<Field Name="FieldTypeClass">TelephoneFieldType.TelephoneField,TelephoneFieldType,Version=1.0.0.0,Culture=neutral,PublicKeyToken=a65beeb1a6acb37a</Field>

</FieldType>

</FieldTypes>

What do you think I should check pls

Thanks




Answer this question

Help pls: Problem adding custom Field type in create column in a list settings

  • FernandoLeite

    Did you do an iisreset anywhere in there

    You need to do one when you copy the xml file and the ascx. I think it's something to do with caching.



  • Cosmin Nicolaescu

    A somewhat naive ASP.NET web controls question:

    Context

    Suppose I want to have a Lookup button on a Telephone Number custom field type control that displayed a pop-up dialog that allowed me to search, browse and select a phone number from a corporate telephone database (or AD) ...like the way the picker in people/group base field type control works in WSS 3.0 today.

    Questions

    1. What is the ASP.NET "thing" I create/launch from the Lookup button on my Telephone Number custom field type control. Is this something I add to my controls .ASC file

    Any links or sample code would be appreciated.



  • TJack

    Hi Sravan,

    Here is the link with all the 4 files: (there is a helper class also)

    http://sharethispoint.com/archive/2006/08/07/23.aspx#codetwo

    Let me know if u need something else.



  • refaeldakar

    Hi Tutus,

    Can you please send me the .ascx page you used for the Phone number custom field type used in sharepoint.

    Please send the file to any of the email ids

    sravankasyapk@gmail.com or ksravankasyap@hotmail.com.

    Thanks & Regards,

    Sravan Kasyap K.



  • Dave Waterworth

    I have a problem though, I customized the code to use a rich text instead of a text box. When I fill the rich text custom field for a new item, it displays like this: lets say I write a google link. It renders like this on the all items view:

    <I><DIV class=ExternalClass50EF9330DBF94CC78D7EC5B2F947897C> <DIV><A href="http://www.google.com/">google</A></DIV></DIV></I>

    Instead of just google

    Can any bodu help.

    Thanks



  • DroopyMsdn

    Hi!

    I have the same error: "Field type PhoneNumber is not installed properly. Go to the list settings page to delete this field".

    II have this situation:

    namespace GS_WSS30

    {

    public class TelephoneField : SPFieldText

    {

    ....

    }

    }

    and in fldtypesMyTypes.xml I set

    <Field Name="FieldTypeClass">GS_WSS330.TelephoneField, GS_WSS330, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f11303b4343afb9c</Field>

    GS_WSS30 is registered in GAC with token f11303b4343afb9c

    I tried also <Field Name="FieldTypeClass">GS_WSS330.TelephoneField</Field> but doesn't work

    How did you solve

    Thanks

    Stefano


  • SLV

    it was actually the namespace issue,. i didn t have the exact name in the feature file. Thaks Aaron.

  • nizmo

    If I were you, I would check the log file(s) in \program files...\12\logs. Usually if there is a problem such as not being able to instantiate the class, versioning etc, you will see a more detailed error in there.

    You might need to make sure you have a suitable level of logging enabled, but I think the default will probably be enough.

    The files can get pretty huge, so I normally go to the bottom and search up! ;-)



  • Help pls: Problem adding custom Field type in create column in a list settings