Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a lookup column that targets a Doc Lib and uses the 'Name' of the document?

How do you create a lookup column to a Document Library that uses the 'Name' of the document as the lookup value?

I found a blog post that recommends adding another custom field like "FileName" and then using a item reciever to populate the custom field with the value from the Name field but that seems cheesy. Link to the blog in case people are interested: http://blogs.msdn.com/pranab/archive/2008/01/08/sharepoint-2007-moss-wss-issue-with-lookup-column-to-doc-lib-name-field.aspx

I've got a bunch of custom document content types that I dont want to clutter with a work around that should really work anyway.

like image 293
stlawrence Avatar asked Mar 02 '23 01:03

stlawrence


1 Answers

I created a one step workflow to set the title from the name, fired on modify and created. Seems to work and took seconds to create.

like image 69
Marc Talary Avatar answered Mar 10 '23 10:03

Marc Talary