PCF-Controls icon indicating copy to clipboard operation
PCF-Controls copied to clipboard

LookupToPicklist / Setting Default View from javascript doesn't update PCF.

Open bo-stig-christensen opened this issue 10 months ago • 1 comments

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?

bo-stig-christensen avatar Mar 05 '25 00:03 bo-stig-christensen

I need to check this behavior to check if using SetDefaultView triggers updateView in the PCF

MscrmTools avatar Apr 24 '25 09:04 MscrmTools