How To Use Connected Lookup in a custom site definition?

May 8, 2009 at 1:22 PM


this is a great solution, which works really fine.
But i was trying to use the connected lookup fields in a generated site definition with VSeWSS1.3ctp and the connected lookup seams to use an unknown property in the schema.xml of the list called webId.

How can a I declare a connected lookup field in the schema.xml of a custom list in a site definition?

thx in advance


May 9, 2009 at 12:38 AM

You should be able to declare it the same way you for any custom field. What are the errors you getting?

May 11, 2009 at 2:33 PM

I get this message, if I use the WebId-property Exception occurred. (Exception from HRESULT: 0×80020009 (DISP_E_EXCEPTION))

i declare the Field in the following way:

 <Field Type="ConnectedLookupField" DisplayName="Ticketkategorie" Required="TRUE" List="{C1FCA80A-4831-4BF3-AA5E-788679031E91}"   
             ShowField="Ticketkategorie" UnlimitedLengthInDocumentLibrary="FALSE" ID="{a26bab69-005c-4121-a3c9-c122f0a4e1e0}"
             SourceID="{7d4c563c-d460-48b8-a47f-0fb85d1cf279}" StaticName="Ticketkategorie" BaseRenderingType="Lookup" Name="Ticketkategorie"
             ColName="int1" RowOrdinal="0" ParentField="" CanBeParent="True" SiteUrl="" WebId="1df350e7-d52b-47ce-a155-96088c292216"