<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Custom Lookup Fields</title>
	<atom:link href="http://chrisforbesblogs.net/2009/03/15/custom-lookup-fields/feed/" rel="self" type="application/rss+xml" />
	<link>http://chrisforbesblogs.net/2009/03/15/custom-lookup-fields/</link>
	<description>Developers chat on SharePoint and .NET</description>
	<lastBuildDate>Tue, 29 Jun 2010 13:51:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: pholpar</title>
		<link>http://chrisforbesblogs.net/2009/03/15/custom-lookup-fields/#comment-77</link>
		<dc:creator>pholpar</dc:creator>
		<pubDate>Thu, 28 Jan 2010 08:47:13 +0000</pubDate>
		<guid isPermaLink="false">http://chrisforbesblogs.wordpress.com/2009/03/15/custom-lookup-fields/#comment-77</guid>
		<description>You can read a workaround for this issue here (see comment from Alex Hekstra):

WSS 3.0 SPField derrived classes 
http://willemboere.blogspot.com/2007/04/wss-30-spfield-derrived-classes.html

The trick from Alex worked me too, thanks for that, but here is the official hotfix for the issue:

Description of the Windows SharePoint Services 3.0 Cumulative Update Server hotfix package (Sts-x-none.msp): December 15, 2009
http://support.microsoft.com/default.aspx/kb/977022/

&quot;You develop a custom field type that inherits from the SPFieldLookUp class. You want to store multiple values in a field of that custom field type. Therefore, you set the AllowMultipleValues property to True. However, after you set the AllowMultipleValues property to True, the field type is displayed as Lookup instead of the custom field type.&quot;

Hope that helps.

Peter</description>
		<content:encoded><![CDATA[<p>You can read a workaround for this issue here (see comment from Alex Hekstra):</p>
<p>WSS 3.0 SPField derrived classes<br />
<a href="http://willemboere.blogspot.com/2007/04/wss-30-spfield-derrived-classes.html" rel="nofollow">http://willemboere.blogspot.com/2007/04/wss-30-spfield-derrived-classes.html</a></p>
<p>The trick from Alex worked me too, thanks for that, but here is the official hotfix for the issue:</p>
<p>Description of the Windows SharePoint Services 3.0 Cumulative Update Server hotfix package (Sts-x-none.msp): December 15, 2009<br />
<a href="http://support.microsoft.com/default.aspx/kb/977022/" rel="nofollow">http://support.microsoft.com/default.aspx/kb/977022/</a></p>
<p>&#8220;You develop a custom field type that inherits from the SPFieldLookUp class. You want to store multiple values in a field of that custom field type. Therefore, you set the AllowMultipleValues property to True. However, after you set the AllowMultipleValues property to True, the field type is displayed as Lookup instead of the custom field type.&#8221;</p>
<p>Hope that helps.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart Fieldhouse</title>
		<link>http://chrisforbesblogs.net/2009/03/15/custom-lookup-fields/#comment-70</link>
		<dc:creator>Stuart Fieldhouse</dc:creator>
		<pubDate>Tue, 10 Nov 2009 09:05:04 +0000</pubDate>
		<guid isPermaLink="false">http://chrisforbesblogs.wordpress.com/2009/03/15/custom-lookup-fields/#comment-70</guid>
		<description>...the schemaXml I pasted in didn&#039;t come through in the message... 

The schema contains Type, DisplayName, Required, List, ShowField, UnlimitedLengthInDocumentLibrary, ID, SourceID, StaticName, BaseRenderingType (=&quot;Lookup&quot;), Name, ColName and RowOrdinal</description>
		<content:encoded><![CDATA[<p>&#8230;the schemaXml I pasted in didn&#8217;t come through in the message&#8230; </p>
<p>The schema contains Type, DisplayName, Required, List, ShowField, UnlimitedLengthInDocumentLibrary, ID, SourceID, StaticName, BaseRenderingType (=&#8221;Lookup&#8221;), Name, ColName and RowOrdinal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart Fieldhouse</title>
		<link>http://chrisforbesblogs.net/2009/03/15/custom-lookup-fields/#comment-69</link>
		<dc:creator>Stuart Fieldhouse</dc:creator>
		<pubDate>Tue, 10 Nov 2009 09:01:18 +0000</pubDate>
		<guid isPermaLink="false">http://chrisforbesblogs.wordpress.com/2009/03/15/custom-lookup-fields/#comment-69</guid>
		<description>Thanks for the reply Chris.  My field type is deployed via a WSP, so the feature receiver looked like a good route.  However, I&#039;m not assigning the type to any site columns - I&#039;m simply trying to create a new user-creatable type which they can assign to a column in any list, just like a standard lookup column.  In the receiver, since there is no actual field yet, I am looking at the SPFieldTypeDefinition and the FieldInfo but neither of these contain any schema info.  When the user actually creates a column of my type, I intercept the OnAdded, but at that point the schemaXml contains only this:



... no mention of LookupMulti.  Any ideas?  Thanks for your help, Stuart.</description>
		<content:encoded><![CDATA[<p>Thanks for the reply Chris.  My field type is deployed via a WSP, so the feature receiver looked like a good route.  However, I&#8217;m not assigning the type to any site columns &#8211; I&#8217;m simply trying to create a new user-creatable type which they can assign to a column in any list, just like a standard lookup column.  In the receiver, since there is no actual field yet, I am looking at the SPFieldTypeDefinition and the FieldInfo but neither of these contain any schema info.  When the user actually creates a column of my type, I intercept the OnAdded, but at that point the schemaXml contains only this:</p>
<p>&#8230; no mention of LookupMulti.  Any ideas?  Thanks for your help, Stuart.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Forbes</title>
		<link>http://chrisforbesblogs.net/2009/03/15/custom-lookup-fields/#comment-68</link>
		<dc:creator>Chris Forbes</dc:creator>
		<pubDate>Mon, 09 Nov 2009 21:01:07 +0000</pubDate>
		<guid isPermaLink="false">http://chrisforbesblogs.wordpress.com/2009/03/15/custom-lookup-fields/#comment-68</guid>
		<description>Hi Stuart,

Well in my case I added this to a feature receiver which was stapled to a site def. When a user clicked a button I had a new sub site created which then created a bunch of libraries and lists etc. It was at this point that the feature receiver code got a handle on the look up fields and modified the SchemaXML. 

This approach is probably not appropriate for your scenario? Let me know who you intend using the field and I&#039;ll have a think

Chris</description>
		<content:encoded><![CDATA[<p>Hi Stuart,</p>
<p>Well in my case I added this to a feature receiver which was stapled to a site def. When a user clicked a button I had a new sub site created which then created a bunch of libraries and lists etc. It was at this point that the feature receiver code got a handle on the look up fields and modified the SchemaXML. </p>
<p>This approach is probably not appropriate for your scenario? Let me know who you intend using the field and I&#8217;ll have a think</p>
<p>Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart Fieldhouse</title>
		<link>http://chrisforbesblogs.net/2009/03/15/custom-lookup-fields/#comment-67</link>
		<dc:creator>Stuart Fieldhouse</dc:creator>
		<pubDate>Mon, 09 Nov 2009 18:03:25 +0000</pubDate>
		<guid isPermaLink="false">http://chrisforbesblogs.wordpress.com/2009/03/15/custom-lookup-fields/#comment-67</guid>
		<description>Chris,  could you please tell me at what point you are changing the SchemaXml to get over the LookupMulti problem?  I tried putting it into the OnAdded override in the field class, but to no avail.  Many thanks, Stuart.</description>
		<content:encoded><![CDATA[<p>Chris,  could you please tell me at what point you are changing the SchemaXml to get over the LookupMulti problem?  I tried putting it into the OnAdded override in the field class, but to no avail.  Many thanks, Stuart.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
