In a workflow with an expression, how do you clear a numeric field that contains the ID of another record?
Keep in mind that each song is in column format, not JSON.
- I strongly advise not using Numeric fields to save IDs since that will lead to rounding and unexpected bugs. Always store strings
- What is the actual field type for the field you want to clear? The one in module edit
- If its a record field, setting the value to empty or “0” should do the trick
In Corteza, the field is a record selector.
I then created a table and added each field as a column using the Corteza interface.
Sure enough, PostgreSQL set this field to numeric.