日期和时间网页零件过滤器 [英] Date & Time web part filter

查看:75
本文介绍了日期和时间网页零件过滤器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在尝试通过不可用OOTB的webpart过滤器来过滤带有日期和时间的列表视图(范围过滤器).唯一可用的是日期过滤器.但是我也需要过滤时间.我有约会&时间栏.任何想法如何实现 那个.

I am trying to filter list view with date AND time (range filter) through webpart filter which is not available OOTB. The only available one is the date filter. But I need to filter the time as well. I have Date & Time column. Any idea how to achieve that.

谢谢.

此致

推荐答案

mmam.mohd,

Hi mmam.mohd,

作为一种解决方法,建议您使用[Today]函数和"IncludeTimeValue"属性来指定时间和日期.

As a workaround, I suggest you using [Today] function and "IncludeTimeValue" attribute to specify that time as well as date.

在用于修改视图的页面中,在date列中添加适当的过滤日期.然后转到SharePoint Designer中的视图代码页,在日期列CAML查询中添加"IncludeTimeValue = True".

In the page to modify the view, add a proper filter date with the date column. Then go to the view code page in SharePoint Designer, add "IncludeTimeValue=True" in the date column CAML query.

请注意,我们需要在更改过滤器时间时立即更改CAML查询.

It’s noted that we need to change the CAML query very time when we change the filter time.

更多信息请参见以下文章:

More information refer to the article below:

https://nickgrattan.wordpress.com/2008/04/24/按时间和日期过滤视图/

最诚挚的问候,

Grace Wang

Grace Wang


这篇关于日期和时间网页零件过滤器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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