Filtered Lookup Field "List" attribute and custom content type using vs2010

Dec 7, 2011 at 8:04 AM

I have added "Filteredlookup" column by using the below field defination. If I assign the GUID to "List" attribute in field defintion; it works but if I change it with value "Lists/ProductDetails"; It does not assosiacate the Lookup list with field.
How I can get rid of GUID ? However it works perfect for field of type "Lookup". Following is the field dfintion;

<Field Type="FilteredLookupField" Name="lookupTemp123" StaticName ="lookupTemp123" ID="{E7EE707C-FF3A-4B24-9C62-2BD7CE1E9CAC}"
List="Lists/ProductDetails" ShowField="SettingValue" DisplayName="lookupTemp123" Required="TRUE" Group="Custom Site Columns" >

<Customization>
<ArrayOfProperty>
<Property>
<Name>QueryFilterAsString</Name>
<Value xmlns:q1="http://www.w3.org/2001/XMLSchema" p4:type="q1:string" xmlns:p4="http://www.w3.org/2001/XMLSchema-instance">&amp;lt;Where&amp;gt;&amp;lt;Eq&amp;gt;&amp;lt;FieldRef Name=&amp;quot;LookupKey&amp;quot; /&amp;gt;&amp;lt;Value Type=&amp;quot;Choice&amp;quot;&amp;gt;ContentKey&amp;lt;/Value&amp;gt;&amp;lt;/Eq&amp;gt;&amp;lt;/Where&amp;gt;</Value>
</Property>
<Property>
<Name>ListViewFilter</Name>
<Value xmlns:q2="http://www.w3.org/2001/XMLSchema" p4:type="q2:string" xmlns:p4="http://www.w3.org/2001/XMLSchema-instance" />
</Property>
<Property>
<Name>SupportsMultipleValues</Name>
<Value xmlns:q3="http://www.w3.org/2001/XMLSchema" p4:type="q3:string" xmlns:p4="http://www.w3.org/2001/XMLSchema-instance">False</Value>
</Property>
<Property>
<Name>IsFilterRecursive</Name>
<Value xmlns:q4="http://www.w3.org/2001/XMLSchema" p4:type="q4:string" xmlns:p4="http://www.w3.org/2001/XMLSchema-instance">False</Value>
</Property>
</ArrayOfProperty>
</Customization>

</Field>

Jun 12, 2012 at 11:25 PM

Hi

I have the same issue. I would to feel  WebID, List and ShowField properties by name instead of they GUID. Have you a troubleshooting?

Thanks