Skip to content

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

@bo-stig-christensen

Description

@bo-stig-christensen

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions