I have a table called vendors. Instead database have two columns vendor_name and vendor_id. I want my dropdown to Show vendor_name. When the trigger of input changes fires, I want vendor_id to be pushed to varvenid. I have tried for two days to make this work. Google, AI,University. I just cant figure it out. Help is much needed.
Hey @adehaan
Loading an ID from a column value is still pretty confusing in Tulip but it is possible. You will need to create a table query filtered on the vendor_name and then use a mode aggregation on the ID.
This has come up in quite a few other Community threads. The first link has a video tutorial.
Awesome Thank you! One other mild issue. All is working . When I do the drop down single select. The dropdown will be forced to only show that dropdown. Rather Have it so the entire list…
You can keep the full vendor list visible and still load the correct vendor_id. The supported pattern is to create a table query filtered on vendor_name, then add a mode aggregation on vendor_id and use that value in your trigger. Tulip documents how queries and aggregations work here: https://support.tulip.co/docs/table-queries-and-aggregations. Daniel’s answer in your thread also confirms this method: https://community.tulip.co/t/single-select-return-id/15869. This setup lets the dropdown show all vendor names while the trigger looks up the matching vendor_id in the background.
