如何在Infopath 2013中更改ID字段开始自动生成的编号 [英] How to change the number the ID field start auto generating with in Infopath 2013

查看:105
本文介绍了如何在Infopath 2013中更改ID字段开始自动生成的编号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我有两个SharePoint列表。一个是旧的,一个是新的。在旧版本上,我们的服务请求以439结尾。在新的SharePoint列表中,我们希望数字继续保留旧版本,即439.新列表从1开始。
ID字段已禁用,因此用户看不到它,并且只是在提交表单后生成下一个数字。我试图设置默认值,但在设置默认值时它只是反复使用相同的数字。有没有办法设置ID字段
开始自动生成439而不是1的数字?我是SP和Infopath的新手。

So I have two SharePoint Lists. One is old and one is new. On the old one we had Service Requests that ended with 439. On the new SharePoint list we want the numbers to continue where the old one left off, which is at 439. The new list starts at 1. The ID field is disabled so the user does not see it and it just generates the next number once the form is submitted. I have tried to set the default value but it just uses the same number over and over when you set the default. Is there a way to set the ID field to start auto generating numbers at 439 instead of 1? I am a newbie at SP and Infopath.

推荐答案

你好JimmyCrocket,

Hi JimmyCrocket,

它不可能,它依赖于sql配置(种子值)

Its not possible, its depends on the sql configuration (Seed Value)

检查这个

https://docs.microsoft.com/en-us/sql/t-sql/statements / create-table-transact-sql-identity-property?view = sql-server-2017

所以你唯一能做的就是在你的列表中插入439个虚拟物品使用powershell删除它。所以下一个项目ID将是440并且它将在每个项目插入时获得增量。

So only thing you can do , insert 439 dummy items in your list and delete it using powershell. so on next item ID would be 440 and it will get increment on each item insert.

和439不是一个大数字,您可以使用快速编辑选项来插入项目并将其删除。

and 439 is not a big number, you can use Quick edit option to insert item and delete it.

如果你想要PowerShell脚本,那么请检查一下  https://mssharepointsite.wordpress.com/2017/05/06/add-update-read-and-delete-sharepoint-list-item-using-powershell /

If you want powershell script, then check this out https://mssharepointsite.wordpress.com/2017/05/06/add-update-read-and-delete-sharepoint-list-item-using-powershell/





这篇关于如何在Infopath 2013中更改ID字段开始自动生成的编号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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