插入重复行 [英] insert Duplicate Row
问题描述
大家好,
我需要为不同的项目创建资源分配,我必须为项目经理提供一个选项,让他们创建重复的行并保存到SharePoint自定义列表
< hr>
MercuryMan
是一个自定义表格?
要在SharePoint中复制列表项,我们可以将CSOM与JavaScript配合使用。创建一个新项目,并根据现有项目属性设置项目属性
。
< span style ="font-size:9.0pt; font-family:'Verdana',sans-serif; color:#1F497D; background:white">获取或设置指定的字段值:
var value = SP.ListItem.get_item(fieldName);
SP.ListItem.set_item(fieldName,value);
关于如何复制项目的演示:
演示如何使用JavaScript创建列表项:
https:// docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/hh185011(v%3Doffice.14)<○:p为H.< / O:p为H. 跨度>
要在自定义表单中创建重复的行,您可能需要检查表单的元素并尝试使用jQuery
来创建新行。
Best 问候语,
琳达&NBSP;张跨度>
Hi All,
I have a requirement to create resource allocation for different projects and I have to give an option for project managers to create duplicate rows and save to SharePoint custom list
MercuryMan
Hi,
Is it a custom form?
To copy a list item in SharePoint, we can use CSOM with JavaScript. Create a new item and set the item properties based on the existing item properties.
Get or set the specified field value:
var value = SP.ListItem.get_item(fieldName); SP.ListItem.set_item(fieldName, value);
Demo about how to copy item:
Demo about how to create a list item using JavaScript:
To create a duplicate row in the custom form, you may need to check the elements of your form and try to use jQuery to create a new row.
Best regards,
Linda Zhang
这篇关于插入重复行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!