Thanks Dale, that someone would be me!
My NSQL Where clause now looks similar to:
WHERE
(@WHERE:PARAM:USER_DEF:INTEGER:hg_all_rows@ = 1)
or
OZ.this_rows_parent_row =
(
case when @WHERE:PARAM:USER_DEF:STRING:hg_row_id@ is null
then '0'
else @WHERE:PARAM:USER_DEF:STRING:hg_row_id@
end
)
AND @FILTER@
Cheers,