Skip to main content

How do I refresh the values in a UI only picklist field that has a picklist source of “Rows in Model”?

Assume

  • Model A contains the UI only Picklist Field

  • Model B is the source of the picklist in Model A. Model B is also filtered by a Lookup value in Model A.

Attempt:
  • Set value for Model A lookup filed (which is a filter value for Model B)

  • Save Model A

  • Query Model A (just in case the model does not reflect the latest lookup field just recently saved)
    *Probably unneccessary but currently doing this

  • Query Model B (So that B can reload its values based on the new filter criteria that has recently changed in Model A

  • Query Model A (So that Model A can reload itself this time repopulating the UI only field based on the newest values found in Model B)

Does the sequence of the attempt look correct or am I missing an important piece or proper sequence order when working with UI picklist fields populated from “Rows in Model”? 

Joseph,


From your request I think that you’re trying to fill a picklist to filter, right?


In that case i think it would be better to use the built in filter functionality, either on the table or since Brooklyn, as an own component.

Otherwise your attempt looks right to me. I’ve used the “Filter Set” and created an action on ModelB which queries the ModelA when a new Row is created or being saved.


Here’s the example i’ve built:


models.saved
row.created
{{{Name}}}
{{Id}}

I hope this helps

Janick