SPFieldLookup.LookupList Property
Gets the GUID of the list to use for the lookup.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Read only question
This can be set when you are creating a field, but not once that field is part of a list.
It converts the string to a GUID, but the property expects a string.
It converts the string to a GUID, but the property expects a string.
- 5/7/2010
- Westley -MSFT-
Property can be set
If you set the property with a Guid.ToString() it works. Like this:
SPFieldLookup lookUpField = (SPFieldLookup)list.Fields.GetField(fieldName);lookUpField.LookupField = lookupFieldInternalName;lookUpField.LookupList = lookUpSourceList.ID.ToString();lookUpField.Update();
- 6/3/2009
- Jarle Nygård
Property is read only
This property cannot be set even though the above seems to indicate that it can.
- 10/7/2008
- Jim Duncan - ShareSquared Inc
Question...
This property appears to be a string is there a reason why it's not of type guid?
- 10/18/2007
- gabba_the_hutt