我该怎么做才能为我的Infopath表格提供一个ID [英] What could I do to give a ID for my Infopath Form

查看:131
本文介绍了我该怎么做才能为我的Infopath表格提供一个ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的inforpath列表中,我需要为所有项目提供一个ID,ID应该是唯一的,ID应该是这样的,2015000001,201500000002,....,201600000,...,for每年,ID应该从000001开始。

如何获取ID?

Here in my inforpath list, I need to give a ID for all the item, and the ID should be unique, The ID should be like this, 2015000001,201500000002,....,201600000,...,for every year, The ID should be start from 000001 again.
How to get the ID ?

推荐答案

你可以依靠自动生成来自SharePoint上的表单库的id,始终具有1的起始ID。

您应该做的唯一事情是在提交到库之后获取表单数据中的id,因为它仅在此之后生成。



所以,你会选择以下步骤:

1.以infopath形式创建id字段

2通过在表单库中将该字段提升为可编辑来发布表单

3.在添加的项目上创建一个非常小的工作流程并将id字段设置为项目ID



因此,您将拥有每个表单的自动生成ID ...
You can rely on the auto generated id from the form library on SharePoint, that will always have starting id with 1.
The only thing you should do is get the id within form data after submitting to library as it is generated only after that.

So, you would go for following steps:
1. create id field in infopath form
2. publish the form by promoting that field as editable in the form library
3. create a very small workflow on item added and set the id field to item id

Thus, you will have auto generated id of each form...


这篇关于我该怎么做才能为我的Infopath表格提供一个ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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