If I enter a Project ID, it will populate records related to this project. This is all fine until now as I am using this condition project_id like nvl('$Project$', '%')
but now I want to populate all records where Project_id is blank so I tried to enter !% in my lobby filter but it didn’t return any records.
How can I update my condition to return records with project_id = no value .
Thanks
Best answer by Tomas Ruderfelt
Something like this:
('$Project$' IS NULL OR project_id LIKE '$Project$' OR ('$Project$' = '!%' AND project_id IS NULL))
Explanation:
When user enter Project Param value ==> POs related to this Project must be listed => project_id LIKE '$Project$'
When user leave Project Param to blank ==> All records listed => '$Project$' IS NULL
When user enter !% in Project Param ==> only POs with Project_Id is Null must be listed. => ('$Project$' = '!%' AND project_id IS NULL)