简体   繁体   English

Microsoft Master Data Services 2016附加域属性引用

[英]Microsoft Master Data Services 2016 Additonal Domain Atrribute Referencing

Is it possible to reference additional columns apart from the 'Code' and 'Name' columns when using a domain attribute in an entity? 在实体中使用域属性时,是否可以引用“代码”和“名称”列之外的其他列?

Eg A person entity has a code of ' 1 ' and a name of ' Smith ' and a Gender of ' Male ' 例如,一个人实体的代码为“ 1 ”,名称为“ Smith ”,性别为“ Male

In a customer entity there is a domain value referencing the person entity which displays the following 1 {Smith}. 在客户实体中,存在一个引用人实体的域值,该域值显示以下1 {Smith}。 The users would like an additional read only attribute which would copy the Gender value of 'Male' into the customer entity based on the domain value. 用户想要一个附加的只读属性,该属性将根据域值将“男性”的性别值复制到客户实体中。 Can this be done using out of the box MDS UI? 可以使用现成的MDS UI来完成吗?

I know this is duplicate data and breaks normal form but for usability this would be useful. 我知道这是重复的数据并破坏了正常形式,但是出于可用性的考虑,这将很有用。 It would be the equivalent of referencing additional columns in an MS Access drop down list. 等同于引用MS Access下拉列表中的其他列。

Many thanks in advance for any help 非常感谢您的任何帮助

This is not possible with the standard UI. 对于标准UI,这是不可能的。 One option would be to develop a custom UI where you can handle these kind of requests. 一种选择是开发自定义UI,您可以在其中处理这些类型的请求。

If you want to stick with the standard product I can see a workaround but this is a bit of a "dirty" one. 如果您想使用标准产品,可以看到一种解决方法,但这有点“肮脏”。

You can misuse (abuse) the Name attribute of the Person entity by adding a business rule to the Person entity that generates the content of the Name attribute as a concatenation of multiple attributes. 通过将业务规则添加到生成Name属性的内容作为多个属性的串联的Person实体,可以滥用(滥用)Person实体的Name属性。 You of course need an additional attribute that serves as a place holder for the original Name. 当然,您需要一个附加属性,用作原始名称的占位符。 The concatenated field will then show in your customer entity. 然后,连接的字段将显示在您的客户实体中。

One question that does come to mind is why a user would like/need to see the gender of a person in a customer list? 真正想到的一个问题是,为什么用户希望/需要在客户列表中看到某人的性别? As you have a separate Person entity I expect you to have multiple persons per customers. 由于您有一个单独的Person实体,因此我希望每个客户有多个Person。 What would the gender of one person - even if it is the main contact - matter? 即使是主要联系人,一个人的性别又有什么关系呢?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM