# Refresh Binding on sparkline

**URL:** <https://forum.inductiveautomation.com/t/refresh-binding-on-sparkline/108252>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [July 9, 2025, 2:26am UTC](https://forum.inductiveautomation.com/t/refresh-binding-on-sparkline/108252 "2025-07-09T02:26:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![drewdin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drewdin/32/3363_2.png) [@drewdin](https://forum.inductiveautomation.com/u/drewdin)\
**Post date:** [July 9, 2025, 2:26am UTC](https://forum.inductiveautomation.com/t/refresh-binding-on-sparkline/108252/1 "2025-07-09T02:26:10Z")

</div>

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:

```python
system.perspective.sendMessage("refresh", payload={}, scope="view")

```

Then, on the sparkline I have a message handler called "refresh" with

```python
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

```python
File "<function:onMessageReceived>", line 3, in onMessageReceived
java.lang.IllegalArgumentException: No binding on property "props.points".

```

Any suggestions on what I'm missing? Thanks!

---

<div class="post-metadata">

**Author:** ![Ujwal\_Wankhede](https://avatars.discourse-cdn.com/v4/letter/u/4af34b/32.png) [@Ujwal\_Wankhede](https://forum.inductiveautomation.com/u/Ujwal_Wankhede)\
**Post date:** [July 9, 2025, 6:30am UTC](https://forum.inductiveautomation.com/t/refresh-binding-on-sparkline/108252/2 "2025-07-09T06:30:10Z")

</div>

> [@drewdin](#):
>
> on the sparkline I have a message handler called "refresh" with

If the message handler on the component then it should be `self.refreshBinding("props.points")`  
Your binding property is not on the view(root).

---

<div class="post-metadata">

**Author:** ![drewdin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drewdin/32/3363_2.png) [@drewdin](https://forum.inductiveautomation.com/u/drewdin)\
**Post date:** [July 9, 2025, 1:09pm UTC](https://forum.inductiveautomation.com/t/refresh-binding-on-sparkline/108252/3 "2025-07-09T13:09:37Z")

</div>

when I change it to self.refreshBinding() the binding never refreshes. At least I don't get the error anymore.

I deleted the rows and when I refresh, the rows don't come back. That's how I am testing.

---

<div class="post-metadata">

**Author:** ![drewdin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drewdin/32/3363_2.png) [@drewdin](https://forum.inductiveautomation.com/u/drewdin)\
**Post date:** [July 9, 2025, 1:22pm UTC](https://forum.inductiveautomation.com/t/refresh-binding-on-sparkline/108252/4 "2025-07-09T13:22:18Z")

</div>

OK, just a follow up. Not sure why but I changed the listen scope to session and then saved, then back to view and saved and it now works. Thanks!
