Hey, I have a table is using a SQL query to fill in data. I want to post values filter on a meter id.
SELECT [Meter id],
[pressbase],
[tempbase],
[sampletime]
FROM [eDB].[dbo].[efmconfig] WHERE [meter_id] = 'XXX' ORDER BY [sampletime] DESC
I've tried using an indirect tag on a Label, and Numeric Label (MeterID2)and then have the
WHERE [meter_id] = 'XXX'
query use it to filter.
WHERE [meter_id] = '{MeterID2.value}'
I see that the correct Meter ID number shows on both labels I've tried, but the SQL query displays nothing. If I use the Database Query Browser and hardcode the meter id, it works. Any ideas what i'm missing? I saw someone had a similar issue with a Multi valve state, and the answer was to use an indirect tag. However that doesn't seem to be working for me. Your help is appreciated. Thanks