I currently have a SQL query that I am running in Ignition. It works OK if I select a specific area. The issue is that I would like to add an "ALL" to it. I would like to be able to ignore area as being a condition if it has the "ALL" selection.
I am not certain if this could just be handled with a SQL query. I am running a query on the dropdown to populate it with the areas.
This is my code:
SELECT *
FROM jobrecord
where
jobopendate >= '{Root Container.Group 5.Group 3.Popup Calendar.date}' AND
jobopendate <= '{Root Container.Group 5.Group 3.Popup Calendar 1.date}' AND
area = '{Root Container.Group 5.Group 3.Dropdown 9.selectedLabel}'
ORDER BY jobnumber