开发者

How to direct user to the contents and not the properties after clicking lookup field pointing to folder in WSS?

Background

I want to put a lookup field in sharepoint list that will point to a folder. Thats the easy part, but I want user to be pointed to folder contents (not the folder properties) after clicking on the link. It's not possible from the sharepoint interface so I'm trying to create custom field type.

Question What method shou开发者_C百科ld I overload in SPFieldLookup derived class (or anywhere else :P) to be able to point user to folder contents?

P.S. Please don't suggest creating a hyperlink field cause the link will break under different access mappings.


Instead of a custom field, I would consider a computed field (search for "computed" here) and keep your current lookup field. The computed field is simply a UI representation of a column. That is how SharePoint does Title, Title with link, Title with menu, etc. Those aren't multiple columns, just multiple ways to view the same data.

To use this approach you need to be able to build your link from the data available to you. We have done this using custom RESTful web services when the data is not immediately available.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜