I have a sparkline that is using dynamic tag history binding. After an insert on the page, I want to refresh the points binding to reflect the insert. Right now, it only shows up when I navigate away and back to the page.
I am using a button to submit the tag history inserts followed by:
system.perspective.sendMessage("refresh", payload={}, scope="view")
Then, on the sparkline I have a message handler called "refresh" with
self.view.refreshBinding("props.points")
The problem that is driving me nuts is the sparkline message handler is throwing an error about scope but I have already added scope=view and Listen Scope to View. (Button and Sparkline are on the same view).
ERROR BELOW
File "<function:onMessageReceived>", line 3, in onMessageReceived
java.lang.IllegalArgumentException: No binding on property "props.points".
Any suggestions on what I'm missing? Thanks!