Using Ignition 7.9.9 and SQL Server.
I have a project that has many schemas, with many tables that are identical in name and shape, but each also has tables unique to them, and some tables are slightly different in between them.
We have a screen that is meant to work with all schemas. I have a custom property on a radio button that is a SQL Query that will expectedly will fail for some schemas, but in those cases the entire component is still red. I set a fallback value but I think that only works in the event that 0 rows are returned, not in the event the SQL fails.
I am using SQL Server and saw in my coworker resolve this by doing something like the following, except it is not working for me -
IF EXISTS(
SELECT myColumn
FROM {[Client]Schema}.someTableThatMayOrMayNotExists
WHERE ID=1)
Begin
SELECT myColumn
FROM {[Client]Schema}.someTableThatMayOrMayNotExists
WHERE ID=1
End
else
Select 'None'
But this is not working as well. Any thoughts on how I can resolve the red overlay from a SQL binding that I expect to work in some occasions?