You should be able to accomplish this creating a new transformer and using that to translate your dropdown selection so you can place the number into your query.
transformer1:
if (select14.value === 'open'){
return 1
} else if (select14.value === 'cancelled'){
return 2
} else if (select14.value === 'successful'){
return 3
}
Then you can take what's returned from your transformer {{transformer1.value}} and place it wherever you need it.
Hi Kenny, thanks for the advice! however, this si not very scalable no? what if I would need to add multiple new statuses, I would also have to update the transformer, and it defeats the principle of having a relational database with ID's for statuses. Is there a way to do that mapping by directly referencing the contents of the status table?