如何为自定义实体提供多个条目? [英] How to have multiple entries for custom entity?

查看:115
本文介绍了如何为自定义实体提供多个条目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我们的Dynamics CRM在线自定义项目中 - 我们在名为 DocProject 的表单 ACTIVITIES 标签>



活动能够 多个条目



此外,同一表单中还有 NOTES 标签





注意也可以 多个条目



Okey,这是由Dynamics CRM人员完成的。到目前为止一切顺利。



在同一表格中,我们还有 DocProjectActivities



这是一个查找字段,因此它有一个1:N的关系


澄清:我们的问题不仅仅是关于活动。 WKT 注释的行为也相似。我们只需要一些 config ,它允许我们为一个字段创建多个条目




问题:




如何确保此自定义实体 DocProjectActivities 允许多次输入 ACTIVITIES & 注意



解决方案

您的意思是您需要多个docprojectactivities你有活动的形式?
您需要在表单和docprojectactivities之间创建1:n关系,并在该表单上添加子网格,允许您为 docprojectactivities 创建多个记录。
查找字段是1:n关系的'1'侧,因此方向错误。



转到 docprojectactivities ,为您正在处理的实体添加新的字段类型关系。
保存并发布。



现在返回您需要输入的实体的表单设计器,然后转到插入选项卡。



点击子网格,只选择相关记录 docprojectactivities (您正在处理的实体)


In our Dynamics CRM online custom project - we've the default ACTIVITIES tab in a custom entity named DocProject's form

ACTIVITIES is able to take multiple entries.

Also, there is NOTES tab in the same form

NOTES is also able to take multiple entries.

Okey, this is done by Dynamics CRM guys. So far so good.

In the same form, we also have a DocProjectActivities lookup field for a custom entity DocProjectActivities

This is a lookup field, hence it has got a 1:N relationship.

Clarification: Our problem is not only about Activities. WKT Notes also behaves similarly. We just need some config which will allow us to make multiple entries for one single field

Problem:

How do one makes sure that this custom entity DocProjectActivities allows to make multiple entries as that for ACTIVITIES & NOTES?

解决方案

Do you mean you need multiple docprojectactivities on the form where you have the activities? You need to create a 1:n relationship between the form and the docprojectactivities and add the subgrid on that form allowing you to create multiple records for the docprojectactivities. A lookup field is the '1' side of the 1:n relationship and thus the wrong direction.

Go to docprojectactivities, add a new field type relationship towards the entity you are working on. Save and publish.

Now go back to the form designer of the entity you need the entries on and go to the tab 'insert'.

Click on sub-grid and select only related records docprojectactivities (entity you are working on)

这篇关于如何为自定义实体提供多个条目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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