简体   繁体   English

强制在Dynamics CRM 2011中为查找字段创建新记录

[英]Force creating new record for a lookup field in Dynamics CRM 2011

In a N:1 relationship where I have a lookup field on the N side, is there a way to force the user to create new record instead of selecting one from the lookup view? 在N:1关系中,我在N侧有一个查找字段,是否有一种方法可以强迫用户创建新记录,而不是从查找视图中选择一个记录?

Essentially, I have a 1:1 relationship which I'm trying to implement using N:1 and don't want the user to link an existing record that's already linked. 本质上,我尝试使用N:1实现1:1关系,并且不希望用户链接已链接的现有记录。

You can hide the Add Existing button from the ribbon. 您可以从功能区中隐藏“ Add Existing按钮。

The Ribbon Editor is well worth a download (editing the ribbons is still unnecessarily fiddly for me) 功能区编辑器非常值得下载(对我而言,仍然不必要地编辑功能区

But you can also try one of the several blogs on the subject 但是您也可以尝试与此主题相关的多个博客之一

You could always create a new View and set it to the lookup. 您总是可以创建一个新的View并将其设置为lookup。 (Don't forget to disable the view selection in the entity form) (不要忘记禁用实体表单中的视图选择)

In the view's filter criteria, you could look for those with "Created on" in "the last x hour" where x can be 1. 在视图的过滤条件中,您可以在“过去x小时”中查找“创建时间为”的内容,其中x可以为1。

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

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