Skip to content

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

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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