[英]How can I hide a subject in subject field, just like hiding an item from optionset field in MS Dynamics CRM 2015?
It is easy to remove an option from an option set.从选项集中删除选项很容易。
var control = Xrm.Page.ui.controls.get("casetypecode");
control.removeOption(1);
But, when you try to remove a subject from a subject field, it does not work.但是,当您尝试从主题字段中删除主题时,它不起作用。
This is the type:这是类型:
This is how it looks when expanded:这是展开时的样子:
I just don't think that removeOption
is going to work the subject field, it isn't an option set field - based on your image it is listed as a lookup.我只是认为
removeOption
不会在主题字段中起作用,它不是选项集字段 - 根据您的图像,它被列为查找。
Given that subject is a special field, I'm not sure which options are open to you.鉴于该主题是一个特殊领域,我不确定哪些选项对您开放。 If it behaves like a normal lookup you might be able to use the lookup functions to filter the view.
如果它的行为类似于正常查找,您也许可以使用查找函数来过滤视图。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.