Good morning Team,
I have created a button in a view that is used to put our system cranes in/out of manual mode.
I created a named query that is used to update the table for a boolean result with a very simple query.
This query/button work great. The problem is that on occasion the button is not synced with the table.
I decided to write a query to return the boolean value from the table and bind that to the button text using scalar result.
My issue is that i cannot transform the scalar value into a string value.
Question:
- Is this the best way to make sure the button is updated to the correct state when the page is opened?
- Is there a way to transform the scalar vaule?
UPDATE storage
SET data = :dataValue
WHERE attribute = 'auto-picking'