将新记录插入Parent& Chlid列表来自sharepoint中的单个表单 [英] Insert New Record to Parent & Chlid list both from single form in sharepoint

查看:81
本文介绍了将新记录插入Parent& Chlid列表来自sharepoint中的单个表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全部,


我已经浏览了很多博客和视频,其中解释了2个SharePoint列表的父 - 子关系。但是我没有参考我需要的东西,我在下面解释的尽可能短。如果有人向我提供一些信息,那将会很有帮助。请注意我使用的是Office 365,而我没有Sharepoint Designer。如果有帮助,我可以使用InfoPath。


场景 - (这是一个保持简短,实际情况有点复杂的例子)


我有一个列为员工,是父列表,包含3个列,分别为Emp ID,Emp Name,Department列。 (Offcourse sharepoint将自己的默认列添加为ID,Title等)。


我有另一个列表作为任务,这是子列表,包含5列作为EmpID(从父查找),ID (从父母查询),任务详细信息,状态,评论。这与父母与子女之间有1:M的关系。因此,一个emp将具有多个任务记录。


现在使用SharePoint(Office 365)或InfoPath,我想以某种方式自定义EMP列表的"默认新表单",因此它将具有提供(主要是数据网格)将新记录与单个表单中的父列表一起添加到子列表。 


所以我想一起使用父和子列表一起插入新记录单一表格即默认新表格的父列表。


谢谢


Bhushan M 

解决方案


如果您可以创建工作流程或远程事件接收器,则可以将同一记录复制到子列表中。


can请参阅以下链接如何在设计器和远程事件接收器中在线打开SharePoint


https://docs.microsoft.com/en-us/sharepoint/dev/sp-add- ins / handle-events-in-sharepoint-add-ins


https:// coll ab365.community/use-sharepoint-designer-2013-sharepoint-2016-online/ 


All,

I have gone through lot of blogs and video's which explains about Parent - Child relation for 2 SharePoint lists. However i don't get reference to what exactly i need, which i explained below as short as possible. It would be great help if someone provide me some information. Please note that i am using Office 365 and i do not have Sharepoint Designer. I have InfoPath available if it helps.

Scenario - (It's an example to keep it short, actual scenario is bit complex)

I have a List as Employee which is parent list which contains 3 columns as Emp ID, Emp Name, Department columns. (Offcourse sharepoint add its own default columumns as ID, Title, etc).

I have another List as Tasks which is Child list which contains 5 columns as EmpID (lookup from Parent), ID(Lookup from Parent), Task details, Status, comments. This has 1:M relations between Parent to Child. So one emp will have multiple Task Records.

Now using SharePoint (Office 365) or InfoPath, I want to customize 'Default New Form' of EMP list in a ways, so it will have provision (mostly a data grid) to add new record to Child list along with Parent list from single form. 

So altogether i want to insert new record to Parent and Child list together using Single form i.e. Default New form of Parent list.

Thank you

Bhushan M 

解决方案

Hi,

If you can create a workflow or remote event receiver you can copy the same record to the child list.

can refer below link how to open SharePoint online in designer and  remote event receiver

https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/handle-events-in-sharepoint-add-ins

https://collab365.community/use-sharepoint-designer-2013-sharepoint-2016-online/ 


这篇关于将新记录插入Parent& Chlid列表来自sharepoint中的单个表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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