Binding inside a binding

I have a situation where i need the parsed value of a binding added to another binding

So like this
{{serverconnect1.data.carrier.SY}}
running this queries an API and returns SYDNEY

But the SY portion of that comes from another part of the api so running
{{serverconnect1.data.carrier}}
results in [object Object]

So I need something like this
{{serverconnect1.data.carrier}}.{{code}}
This results in [object Object]SY
if the {{code}} part parses to SY first then I will will get the correct dynamic result.

I just do not know if it is possible to do like this at all.

Of course after hours of messing around, after I finally ask, I figure it out.
{{sc_amadeus_api.data.api1Query.data.dictionaries.carriers.getValueOrKey(carrierCode)}}

This is the real version of it.

I will never understand how you Wappler creators managed to come up with a method for every single strange thing i ever needed to do, mind blowing.

2 Likes