SharePoint 2013中捕获的文档的用户星级评定日期是吗? [英] Is the date of a user star rating on a document captured in SharePoint 2013?

查看:110
本文介绍了SharePoint 2013中捕获的文档的用户星级评定日期是吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次有人给文章评分时,我们都需要捕获日期.我没有在项目架构上看到该日期的字段.有谁知道此数据是否在内容数据库中捕获了,以及它将在哪里?

We have a need to capture the dates every time someone rates an article. I don't see a field that would be that date on the item schema. Does anyone know whether this data is captured in the content database and where it would be?

推荐答案

当前,似乎没有直接方法可以直接访问收视时间,也不建议直接查询内容数据库,这是不安全的.

Currently, it seems there is no direct way to access the rating time directly and it is also not recommended to query the Content DataBase directly, it's not safe.

一种解决方法是使用Jquery代码跟踪页面中评级元素的click事件并将当前日期存储到列表中:

A workaround is to use Jquery code to trace the click event for rating elements in the page and store the current date into a list:

<script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script>
<script type="text/javascript">


("span.ms-comm-ratingsImageContainer").find('img').click(function(){ alert(new Date()); }); </script>
( "span.ms-comm-ratingsImageContainer" ).find('img').click(function() { alert( new Date() ); }); </script>

关于使用JavaScript将数据设置为SharePoint列表,请参考此演示:

About set data to a SharePoint list with JavaScript, please refer this demo:

https://msdn.microsoft .com/en-us/library/office/hh185011(v = office.14).aspx

谢谢

最好的问候


这篇关于SharePoint 2013中捕获的文档的用户星级评定日期是吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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