Referencing Custom Properties for Custom Field Types from a RenderPattern  
Author Message
Dave Lora





PostPosted: SharePoint - Development and Programming, Referencing Custom Properties for Custom Field Types from a RenderPattern Top

Hello!

I have created a custom field type that allows users to pick a record from an external database. Everything is working great, but I would like to modify the display RenderPattern to display the value of the field as a hyperlink instead of just static text. I want the hyperlink to come from a custom property of the field.

The problem is, I cannot figure out how to make the custom field property show up as part of the RenderPattern. I have tried using the Property and FieldProperty elements. Both of these methods seem to work for standard field properties; for example, I have been able to get to the field's DisplayName property using the following CAML:

<Property Select='DisplayName' HTMLEncode="TRUE"/>

Unfortunately this method does not seem to work for custom field properties! Instead, only an empty string is returned. My custom property (which works fine otherwise) is defined in FLDTYPE_myfield.xml's PropertySchema section as:

<Field Name="MyLinkURL" DisplayName="My Link URL" Type="Text" Hidden="TRUE"/>

(by the way, I tried it with Hidden=False and that didn't help)

Any idea how to get to custom field properties from CAML

Thanks,

Dave



SharePoint Products and Technologies3  
 
 
Michael Herman - Parallelspace





PostPosted: SharePoint - Development and Programming, Referencing Custom Properties for Custom Field Types from a RenderPattern Top

Dave, I'm also interested in the solution for this. Were you able to figure it out

Michael.



 
 
Dave Lora





PostPosted: SharePoint - Development and Programming, Referencing Custom Properties for Custom Field Types from a RenderPattern Top

Unfortunately, I was not able to find a solution to this. I was planning on using the custom property to display a custom hyperlink in the List View, but since I was not able to do this, I am just showing static text in the list view and only showing the hyperlink on the View page.