In my previous post I shared a solution to replace in the CAML schema of a lookup field the GUID of the list from which the field get his data.
Now the situation is that we want to get data from the parent list. Of cource that we can use the previous way but for this case there is a more easy way.
The only thing we have to do is to specify the value of the List attribute to Self.
In this case we have a list with categories and each category can have subcategories from the same list.
Now the situation is that we want to get data from the parent list. Of cource that we can use the previous way but for this case there is a more easy way.
The only thing we have to do is to specify the value of the List attribute to Self.
In this case we have a list with categories and each category can have subcategories from the same list.
<Field
ID="{D2C297A5-1D6C-480d-9203-F54169A3FB18}"
Name="Category"
DisplayName="Category"
StaticName="Category"
SourceID="http://schemas.microsoft.com/sharepoint"
Group="MyGroup"
Type="Lookup"
ShowField="Title"
List="Self"
/>
No comments:
Post a Comment