# IE Viewer refreshes

**URL:** <https://forum.inductiveautomation.com/t/ie-viewer-refreshes/2055>\
**Category:** Ignition\
**Created:** [July 20, 2010, 2:39pm UTC](https://forum.inductiveautomation.com/t/ie-viewer-refreshes/2055 "2010-07-20T14:39:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [July 20, 2010, 2:39pm UTC](https://forum.inductiveautomation.com/t/ie-viewer-refreshes/2055/1 "2010-07-20T14:39:47Z")

</div>

Hi guys!  
I have a table from which I pick I pick a url for IE viewer depending on the selected row:

![](https://us1.discourse-cdn.com/inductiveautomation/original/1X/2ddc9fb1ea03eba7d0f927a638f9b2691b404d27.png)

On the surface, this works okay, but each time a different cell is clicked, even in the same row, the viewer refreshes on the mouse press and mouse release.

Any thoughts on how I can reduce the number of refreshes?

---

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [July 20, 2010, 3:13pm UTC](https://forum.inductiveautomation.com/t/ie-viewer-refreshes/2055/2 "2010-07-20T15:13:55Z")

</div>

Client tag to store the currently selected row?

Event code checks the clicked row to see if it’s different. If not, do nothing.

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [July 20, 2010, 3:16pm UTC](https://forum.inductiveautomation.com/t/ie-viewer-refreshes/2055/3 "2010-07-20T15:16:35Z")

</div>

It seems that it is refreshing every time the selectedRow changes on the table. Instead you can put a mouseClicked event on the table which checks for the selectedRow and refreshes the IE viewer. Something like:`table = event.source
data = table.data
selectedRow = table.selectedRow
if selectedRow != -1:
    event.source.parent.getComponent("IE Viewer").url = data.getValueAt(selectedRow, colIndex)`

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [July 20, 2010, 3:31pm UTC](https://forum.inductiveautomation.com/t/ie-viewer-refreshes/2055/4 "2010-07-20T15:31:34Z")

</div>

Thanks for the replies.

Dunno why scripting it worked over binding it, but it works now… ![:scratch:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/76d1620bec252bfac07050c889ff5a91dc8a9c25.gif ":scratch:")

Off to the next crisis! 😆

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [July 20, 2010, 4:14pm UTC](https://forum.inductiveautomation.com/t/ie-viewer-refreshes/2055/5 "2010-07-20T16:14:29Z")

</div>

Well, you see the selectedRow property goes from -1 to the value when the dataset reloads or when you change the selected row. This causes other property bindings to refresh. In scripting you are guaranteeing that it happens once.
