简体   繁体   English

报告取决于SharePoint列表

[英]Report depend on SharePoint list

I have simple list in SharePoint just contain Task name,From,to and percent value 我在SharePoint中有一个简单的列表,只包含任务名称,从,到和百分比值

where I could assign some task to other one and each week he should update the percent of complete value. 在这里我可以将一些任务分配给其他任务,他每周应更新完成价值的百分比。

The task maybe take 5-6 weeks So I need a report to know in current week for example which user update his task and the old value and the new value he change. 该任务可能需要5到6周的时间,因此我需要一份报告来了解当前一周的信息,例如哪个用户更新了他的任务以及他更改的旧值和新值。

So I need away to have such report where I could set from date to date and it report which task is changed by who and the changed value. 因此,我需要有一份这样的报告,我可以在此设置该报告的日期,它可以报告由谁和更改后的值更改的任务。

I'm using normal list in SharePoint 2010. 我在SharePoint 2010中使用普通列表。

You can achieve it this way: 您可以通过以下方式实现:
1. Create another column in your list (I call it OriginalList) called PreviousPercentValue and set its default value to [Percent Value] 1.在列表中创建另一列(我称为OriginalList),称为PreviousPercentValue,并将其默认值设置为[Percent Value]
2. Create another list (for example Reports) with columns: [Previous Percent Value], [Current Percent Value] 2.使用以下列创建另一个列表(例如“报告”):[上一个百分比值],[当前百分比值]
3. In Reports, add two additional columns to the default view: Created, Created By 3.在“报告”中,在默认视图中添加另外两列:“创建”,“创建者”
4. Create a workflow in SharePoint Designer on OriginalList, activated on modification, that will check if PreviousPrecentValue is different than [Percent Value] and if yes, then: 4.在SharePoint Designer的OriginalList上创建一个工作流,并在修改时激活该工作流,该工作流将检查PreviousPrecentValue是否不同于[Percent Value],如果是,则:
a) Create a new item in Reports with values: Reports.[Previous Percent Value]=OriginalList.PreviousPercentValue, Reports.[Current Percent Value] = OriginalList.[Percent Value]. a)在报表中创建一个新项目,其值如下:Reports。[上一个百分比值] = OriginalList.PreviousPercentValue,一个报表。[当前百分比值] = OriginalList。[百分比值]。
[Created] and [Created By] will be set automatically for you. 将自动为您设置[创建]和[创建者]。 I am not sure if [Created By] will be set properly, if not then create another column in Reports called User and in the workflow, set its value to OriginalList.[Modified By] 我不确定[Created By]是否设置正确,如果不确定,则在报表中创建另一个名为User的列,并在工作流程中,将其值设置为OriginalList。[Modified By]
b) Set OriginalList.PreviousPercentValue to OriginalList.[Percent Value] b)将OriginalList.PreviousPercentValue设置为OriginalList。[Percent Value]

This way, every record in your new list Reports will have data you need: who, when, old + new percent values. 这样,新列表报告中的每条记录都将具有您需要的数据:谁,何时,旧+新百分比值。 You can add views on Reports to customize data you want to see. 您可以在报表上添加视图以自定义要查看的数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM