How Do I Use .where() in a Server Side Action to Return a Single Value?

Well it will be legal, and will result in an array.

Can I assign an array to a Set Value or Set Session?

Yup

So I assign it to a temporary Set Value…

… but I’m still not clear how to get the id value from it! :crazy_face:

Can you paste the output and scramble any data you don’t want public?

Of this one?

lookups.where(lookups.lookup_function, “==”, “stripe_fee_category”)

What do you mean by “the output”?

That returns a json.

This is so bloody easy on the client side… you just say:

array.where(...)[0].column_name

I’d hoped it would just be the same on the client side!

It is probably quite easy but I am not going to do more spraying and praying without seeing what type of data structure I am dealing with.

This has been fixed in Wappler 3.7.4

This topic was automatically closed after 46 hours. New replies are no longer allowed.