Greg Pelle

I am developing a custom field type for Sharepoint 2007 using the wss3 extensions for Visual Studio 2005. All is working except for what is being displayed in the list view.

What class do I need to use as my base class to change what is displayed in the list view My code is accessing a remote database so I do not think I can use caml only to change the default list view.

Is it even possible to do what I want to do

Thanks

Greg.



Re: SharePoint - Development and Programming Custom field type list view display

TheKid

Greg,

I have looked at this before and have not found a way to change this except with CAML. Essentially the list view will display the string value of your column unless you change how it looks using CAML.

Previously I have used JavaScript methods rendered from within the CAML to modify the output. This may work for you.

Vince






Re: SharePoint - Development and Programming Custom field type list view display

Greg Pelle

The problem with using JavaScript is that my custom field is looking up data in a sqlserver database. All I am storing in sharepoint is an id.

I could use the BDC and use a calculated column (have not fully thought out this idea though)...but that idea seems sort of hackish. The ideal solution wiould be to have my custom field object return the value (like what happens when adding or editing or displaying the detail view).

Greg.





Re: SharePoint - Development and Programming Custom field type list view display

TheKid

Greg,

It sounds like you definitly should be using the BDC...its there to do exactly what you describe.

You can use the BDC to define the relationships and columns. You could then just add the BDC field to your list and it will display the value you want. SharePoint will handle all the SQL interaction for you and you just have to use the BDC fields.

Vince