when i finish running query 1 i need to set a temp state, then run a query#2, i tried putting both in the same sucess but they run wrong, sometimes it works, sometimes not. How i can force to run first the setValue for the temp state, then just after, run the query#2 ?
hmmm...
ok so maybe you can set it as in your screenshot but only allow the crearOC2 query to run when saveTransactionID_OC state is not "" or null or undefined. And you can set the saveTransactionID_OC to run when input values are changed and it will only run once the saveTransactionID_OC actually contains a value
I mistyped - sorry about that - try again with some screenshots...
In your first screenshot remove the Event handler saveTransactionID_OC but leave the saveTransactionID_OC.setValue()
ok so maybe you can set it as in your screenshot but only allow the crearOC2 query to run when saveTransactionID_OC state is not "" or null or undefined.
Remove crearOC2.trigger() from Success handler in crearOC1 query
When crearOC1 Succeeds, you set saveTransactionID_OC value
When crear0C2 sees the saveTransactionID_OC value change it will fire...
OK two things:
What is the value being set for saveTransactionID_OC is it the value of crearOC1.data?
And save the app and then reload the page - sometimes Retool gets stuck...