Hi all,
I got a select field and I need it changes behavior checking if another field is empty or not. Something like that (just to simplify)
IF {id_instrument} = “” THEN
SELECT serial_number
FROM contract_instruments
ORDER BY serial_number
ELSE
SELECT serial_number
FROM contract_instruments
WHERE id_instrument = {id_instrument} ORDER BY serial_number
END
I did tried using SELECT IF and CASE WHEN … but I’m not able to make it working.
I know that it has to be easy but I’m stuked… ;-((