I have a grid that has a total and WHERE clause that involves customer_id = {…}
I get an error (obviously!) when customer_id is NULL.
Where do I trap this error? I tried in onRecord, but does not work, e.g I put, as a test:
IF ({customer_id} = ‘’){
{customer_id} = 1;
}
Does not work. Also tried:
if (isset({customer_id})) {
{customer_id} = {customer_id};
}else
{{customer_id} = 1;}
Does not work.