单击指向 WSS 中文件夹的查找字段后,如何将用户定向到内容而不是属性?
背景
我想在共享点列表中放置一个指向文件夹的查找字段。这是简单的部分,但我希望用户在单击链接后指向文件夹内容(而不是文件夹属性)。从共享点界面不可能,所以我尝试创建自定义字段类型。
问题 我应该在 SPFieldLookup 派生类(或其他任何地方:P)中重载什么方法才能将用户指向文件夹内容?
PS 请不要建议创建超链接字段,因为链接会在不同的访问映射下中断。
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 should 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我会考虑使用计算字段,而不是自定义字段(搜索“计算”此处)并保留当前的查找字段。计算字段只是列的 UI 表示。这就是 SharePoint 处理标题、带链接的标题、带菜单的标题等的方式。这些不是多列,只是查看相同数据的多种方式。
要使用这种方法,您需要能够根据可用的数据构建链接。当数据无法立即可用时,我们使用自定义 RESTful Web 服务来完成此操作。
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.