SharePoint lookup columns across SharePoint Webs (SPWeb)

Okay back to SharePoint sandboxes… I found a need to use SharePoint lookup columns between different SPWeb’s. By the normal UI of SharePoint, you are limited to use lookup columns just inside one web. Gladly in this case this is just a limitation of UI: you can write your own code to create new spfieldlookup and set its properties (like lookupwebid and lookuplistid) to anything you want in your Site Collection (apparently there might be even way to extend this through multiple site collections). This was a pleasent finding from SharePoint.

One another thingy was attachments in document library that was not as nice. Apparently SharePoint does not support in any way attachments in document library and it is hard coded barrier. So I might be working this topic more later on and thinking something like using SharePoint’s own logic (for a normal lists there is attachment logic like this: for SPListItem’s attachments, SharePoint creates folder named 1 or 10001 (same as SPListItem.ID on which you are putting your attachment), hides the folder from UI and voilá. Just wondering why this is not in use with Document Library. Some guys at the Internet did even their own Document Library schemas where they tried to enable this attachment functionality but no luck…

Advertisements

About Sakarih

I am SharePoint developer/architect from Finland and my blogposts are all about SharePoint 2007/2010/2013 stuff. There might be also something else posted.
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s