对图书馆中的文档实施不同的到期日期
我需要能够为文档库中的每个文档设置不同的到期日期; 有些没有有效期。 对此最好的方法是什么? 信息策略管理还是自定义代码? 如果是自定义代码,我将如何处理,使用网站列作为日期?
I need to be able to set different expiry dates for each document in a document library; some with no expiry date. What is the best approach for this? Information Policy Management or custom code? If custom code, how would I go about it, use a Site Column for the date?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您有 MOSS,那么使用过期策略似乎是一个不错的选择。 您可能知道,如果您的库中没有可以使用的日期字段(即使通过一些计算),那么您可能必须编写自定义代码来确定日期。 但是,此自定义代码由过期策略使用。
If you have MOSS, using expiration policies sure seems like the way to go. As you probably know, if you don't have a date field in your library that you can go off of (even through some calculation), then you'll probably have to write custom code to determine the date. But, this custom code is used by the expiration policy.
我最终能够通过 OOTB(开箱即用)功能来完成此任务。 我创建了一个文档库,然后为其创建了一个“自定义视图”。 通过自定义视图,我能够应用到期日期规则(我添加到文档库中的列)。 最后,这很容易,虽然不是很明显:-)
I was eventually able to accomplish this with OOTB (out of the box) functionality. I created a document library and then created a "Custom View" for it. With the custom view, I was able to apply a rule for the expiry date (a column which I added to doc library). In the end it was pretty easy, though not very obvious :-)