I have a small table with a counter for manufactured parts.
I want to restart a count on pressing the button. e.g. it is 3 pm when the button is pressed, so the table should refresh / reset to 0 and start counting up again.
For this I want to use a tag history binding that uses now(0) (only poll once) as start date and so the button refreshes or resets the start date of the binding when it is pressed.
Here I am using a boolean count on when a new product is detected as ready.
I made an event for the button, onClick
system.perspective.sendMessage('refresh')
and a message handler called refresh on the table (I was trying with the first row to test)
self.refreshBinding('props.data[0].Products')
But it is not working… is it a syntax problem or is this not the correct method to use for what I want to do?