Hi! When I define that a column of a table is going to be of currency type, I would like that the currency code depends on a variable that's living in the environment (for instance, something coming from a selector or a query). When I try doing it, it doesn't recognize the object I am referencing. Is there any workaround this issue?
Thanks in advance
January 10, 2022, 7:11pm
Maybe something in the video contained in this post might help, but it would be helpful to have more context if you post screenshots highlighting what you are trying to do.
Check this out:
I made a video around building a currency conversion tool in Retool. Had to use a Promise to retrieve multiple converted values from the api endpoint. Pretty nifty so I wanted to share:
Building a Currency Conversion Tool in Retool - YouTube
I'm always happy to make content for anyone looking for something specific. Feel free to reach out if you have any thoughts or requests!
You're right. The
Currency Code input doesn't have access to other components. Not sure if this is a bug or intentional.
So when you have a column in a table and go to see its attributes, you can choose it to be of type currency:
If you want the currency code to be a function of a selector for instance, it won't recognize it:
That essentially forces a column to have a definite currency code.