在列表视图中显示3周的数据 [英] Showing 3 weeks of data in a list view

查看:89
本文介绍了在列表视图中显示3周的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个列表,其中包含52周的培训数据(超链接,有些周有多个培训课程)。我有与每次培训相关的开始和结束日期。每周从星期一开始,但结束日期设定为运行3周。
我需要编辑我的列表,以显示上周,当前周和下周培训课程并自动更新。我可以让过滤器显示上周和当前周,但是它将永远不会在过去几周展开,只会在下周显示当前一周变为
。如何解决此问题?

I have a list that contains 52 Weeks worth of training data (Hyperlinks, and some weeks have multiple training courses). I have start and end dates associated with each training. each week starts on Monday, however the end dates are set to run for 3 weeks. I need to edit my list to show last weeks, current weeks, and next weeks training courses and update automatically. I can get the filter to show last weeks and current weeks, however it will never roll off last weeks and only shows next weeks when it becomes the current week. How do I fix this issue?

推荐答案

在列表视图的过滤器中,将其设置为开始日期大于或等于[今天] -7 AND开始日期小于或等于[今天] +7。

In the filter of the list view, set it such that Start Date is greater than or equal to [Today]-7 AND Start Date is less than or equal to [Today]+7.

这将把项目放在三周的窗口内。根据需要调整数字。

That will put items there within a three week window. Adjust numbers as necessary.

如果它需要更复杂(例如基于实际的周开始),那么您可能需要代码和REST API。

If it needs to be more complex (e.g. based on actual start of week), then you might need code and REST API.


这篇关于在列表视图中显示3周的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆