PCF-Controls
PCF-Controls copied to clipboard
LookupToPicklist / Setting Default View from javascript doesn't update PCF.
I have a lookup field on an entity that has 2 main views defined. Depending on the use case either one view is used or the other.
Client-side logic dictates which view should be used by the control using "setDefaultView()".
However, since LookupToPicklist sets the ViewId in the init() function this does not take effect. I haven't tested this, but shouldn't it be added to updateView() so that if the lookup's viewId changes then updateView should fire based on the metadata change and the control should render using the updated viewId?
I need to check this behavior to check if using SetDefaultView triggers updateView in the PCF