I need to add a lookup column to an existing list in a sub-site in SharePoint 2007. The data would come from a sibling sub-site. How can I do that? I see the option to add a lookup column, but that only works for lists in the current sub-site. How can I link to another sub-site for the lookup column?
|
By code, you can specify the WebId and the ListId, which is enough to make it work. You will have to instantiate it via a Feature Receiver. |
|||||
|
|
It's not possible to use the column from list across the site boundary from subsite to parent or sibling sites the other way is possible. is it a custom column or a built-in column OR list based values in a list ( ID , Title) ??? If it's custom then I would recommend to create a site column which is at a site collection level which can be shared across all the lists in the site collection ( includes Subsites) if it was the other way around then it would have been easier as we can create a lookup site column ( site collection level and share it with subsites) In your case I guess then we have create a custom column by code which I feel is a overkill :) |
|||||
|
|
If the data existed in the parent site, you could configure it as a site column and all of the child sites would be able to access it. Pretty simple. I don't think I've ever tried to access a lookup from a child or sibling site though. |
|||
|
|