工作流程特有问题... [英] Workflow unique issue...

查看:80
本文介绍了工作流程特有问题...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我所拥有的是一个相当简单的InfoPath表单,该表单允许用户选择一个加班时段.那行得通,加班时间从另一个列表中拉出.问题出在工作流程上,我想每次将可用的插槽数量减少1 该插槽被选中.该工作流程将当天的第一个实例的员工人数减少了1,而不是确切的列表项.

What I have is a rather simple InfoPath form that allows a user to select a slot for overtime. That works, and the overtime slots are pulled from another list. The problem is on the workflow, I want to reduce the amount of slots available by 1 every time that slot is selected. The workflow reduces the headcount by 1 on the first instance for that day, not the exact list item.

例如,我在同一天有两个可用插槽,分别是6-7PM和8-9PM.我选择8-9PM.提交表单,但6-7PM的人数却减少了,因为它在列表中排在首位.如何构建工作流以减少确切唯一列表上的人数 物品?

For example, I have two slots available on the same day, 6-7PM and 8-9PM. I select the 8-9PM. submit the form, but the 6-7PM headcount gets reduced as it is first in the list. How can I construct the workflow to reduce the headcount on the exact unique list item?

推荐答案

根据您的描述,您的要求是:加班时间和人数会存储在另一个列表中(在此答复中,我将此列表称为列表A").该表格用于创建 列表中的项目(在此答复中,我将此列表称为列表B").创建新项目并在列表B中选择了一个广告位后,工作流程将启动并减少列表A中该广告位的人数.

Based on your description, your requirement is: The overtime slots and headcounts are stored in another list (In this reply, I call this list as "List A"). The form is used to create an item to a list (In this reply, I call this list as "List B"). When an new item is created and a slot is selected in List B, the workflow will start and reduce the headcount of this slot in List A.

您可以在列表B中创建工作流程,并根据广告位更新列表A中的人数值值.

首先,在列表B的InfoPath表单中,确保广告位查找列的值为Id


然后,在列表B中创建工作流程,并在创建项目时自动启动它.在工作流中,计算ListA:headcount减1(输出到变量:calc).


设置列表通过更新列表项"操作计算计算结果的人数.


最好的问候,

Linda(张)


这篇关于工作流程特有问题...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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