Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Lookup Fields and Site Templates

  Asked By: Tara    Date: Oct 05    Category: Sharepoint    Views: 1077

I need to deploy a list that uses cross-site lookup fields (site
columns) and the list needs to be defined in a site solution file.

By using a Feature Receiver I can create the lookup field completely in
code or through a combination of code and an XML field definition. But
in either case, the GUID for the lookup field (SPFieldLookup.Id) and
the lookup list (SPFieldLookup.SourceId) is set dynamically and can't
be changed.

So is there a way to set the GUID for a lookup field before a site is
created so that the GUID can be used in a list definition file? Or
does the list need to be created dynamically at the same time?



No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on Lookup Fields and Site Templates Or get search suggestion and latest updates.