插入重复行 [英] insert Duplicate Row

查看:63
本文介绍了插入重复行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我需要为不同的项目创建资源分配,我必须为项目经理提供一个选项,让他们创建重复的行并保存到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);





关于如何复制项目的演示:


https://social.msdn.microsoft.com/Forums/office/en-US/1d01a48f-c28b-467b-acd1-22e5fb266670/how-to-retrieve-list-items-and-copy-it- to-other-list-using-javascript-object-model?forum = sharepointdevelopmentprevious


演示如何使用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:

https://social.msdn.microsoft.com/Forums/office/en-US/1d01a48f-c28b-467b-acd1-22e5fb266670/how-to-retrieve-list-items-and-copy-it-to-other-list-using-javascript-object-model?forum=sharepointdevelopmentprevious

Demo about how to create a list item using JavaScript:

https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/hh185011(v%3Doffice.14)<o:p></o:p>

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屋!

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