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.
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho