addCustomView (Client API reference)
Adds a new view for the lookup dialog box.
Control types supported
Lookup
Syntax
formContext.getControl(arg).addCustomView(viewId, entityName, viewDisplayName, fetchXml, layoutXml, isDefault)
Parameters
viewId: String. The string representation of a GUID for a view.
Note
This value is never saved and only needs to be unique among the other available views for the lookup. A string for a non-valid GUID will work, for example "00000000-0000-0000-0000-000000000001". It's recommended that you use a tool like guidgen.exe to generate a valid GUID.
entityName: String. The name of the table.
viewDisplayName: String. The name of the view.
fetchXml: String. The fetchXml query for the view.
layoutXml: String. The XML that defines the layout of the view.
isDefault: Boolean: Indicates whether the view should be the default view.
Remarks
This method doesn't work with Owner lookups. Owner lookups are used to assign user-owned records.
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈