# Clearing table data on view load

**URL:** <https://forum.inductiveautomation.com/t/clearing-table-data-on-view-load/77255>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [August 1, 2023, 8:44pm UTC](https://forum.inductiveautomation.com/t/clearing-table-data-on-view-load/77255 "2023-08-01T20:44:44Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [August 1, 2023, 8:44pm UTC](https://forum.inductiveautomation.com/t/clearing-table-data-on-view-load/77255/1 "2023-08-01T20:44:44Z")

</div>

When I open a popup the table flashes up the data that was saved in Designer. The binding then updates and populates the table with the correct data. I want to prevent the Designer data from showing up.

I could clear the table before saving in Designer but would have to remember to do it and there's the associated delay in generating the test data again when revisiting the Designer.  
I've tried setting the table's data property to None in the startup event script but that doesn't do the trick.

Any other ideas?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 1, 2023, 9:09pm UTC](https://forum.inductiveautomation.com/t/clearing-table-data-on-view-load/77255/2 "2023-08-01T21:09:03Z")

</div>

Uncheck 'Persistent' in the table data props? Should be automatically unset when you apply a binding.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/a/ea5c8e71409fa0e796e3a1697f11ff76532bb459.png)

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [August 1, 2023, 9:13pm UTC](https://forum.inductiveautomation.com/t/clearing-table-data-on-view-load/77255/3 "2023-08-01T21:13:55Z")

</div>

It was unset already.  
Next?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 1, 2023, 9:25pm UTC](https://forum.inductiveautomation.com/t/clearing-table-data-on-view-load/77255/4 "2023-08-01T21:25:52Z")

</div>

Well, let's start from zero: Look at the saved `view.json` and make sure the data isn't there.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [August 1, 2023, 9:30pm UTC](https://forum.inductiveautomation.com/t/clearing-table-data-on-view-load/77255/5 "2023-08-01T21:30:29Z")

</div>

If I Shift-right-click the view in Project Browser, Copy JSON and paste it into a text editor all the Developer table binding data is there (as I expected).

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 1, 2023, 9:33pm UTC](https://forum.inductiveautomation.com/t/clearing-table-data-on-view-load/77255/6 "2023-08-01T21:33:06Z")

</div>

The _binding_ config, yes. But no stored table data?

Does the table do the same thing if you open the Perspective session in an incognito window?

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [August 1, 2023, 9:54pm UTC](https://forum.inductiveautomation.com/t/clearing-table-data-on-view-load/77255/7 "2023-08-01T21:54:15Z")

</div>

That's interesting and I hadn't considered trying that.  
Thanks for the help. I'll have to follow up tomorrow.

---

<div class="post-metadata">

**Author:** ![Eugene49](https://avatars.discourse-cdn.com/v4/letter/e/c6cbf5/32.png) [@Eugene49](https://forum.inductiveautomation.com/u/Eugene49)\
**Post date:** [November 21, 2023, 6:01pm UTC](https://forum.inductiveautomation.com/t/clearing-table-data-on-view-load/77255/8 "2023-11-21T18:01:12Z")

</div>

I have the exact same problem describe on first post.  
I tried to uncheck persistence setting of data property of table.  
Still the session shows the data from designer when it was saved.

On the designer, when I delete the view parameter that is use to query data on table, table is empty, when I save on designer. Initial data will not show up on table which is good.

Is there other way, to not show designer table's data on session at page load? - without deleting data on designer's table.
