# How to use a push button to execute a query

**URL:** <https://forum.inductiveautomation.com/t/how-to-use-a-push-button-to-execute-a-query/24181>\
**Category:** Ignition\
**Created:** [April 16, 2019, 5:08pm UTC](https://forum.inductiveautomation.com/t/how-to-use-a-push-button-to-execute-a-query/24181 "2019-04-16T17:08:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![txsalewski](https://avatars.discourse-cdn.com/v4/letter/t/cc9497/32.png) [@txsalewski](https://forum.inductiveautomation.com/u/txsalewski)\
**Post date:** [April 16, 2019, 5:08pm UTC](https://forum.inductiveautomation.com/t/how-to-use-a-push-button-to-execute-a-query/24181/1 "2019-04-16T17:08:00Z")

</div>

Greetings, how do use a push button to execute a query in a List?

Regards

Tom

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [April 16, 2019, 5:46pm UTC](https://forum.inductiveautomation.com/t/how-to-use-a-push-button-to-execute-a-query/24181/2 "2019-04-16T17:46:25Z")

</div>

If you haven’t visited [inductiveuniversity.com](http://www.inductiveuniversity.com) yet I highly suggest it. There is a plethora of information available there for free. I’m not a hundred percent sure what you are asking. If you have a query binding on a component and you want to force the component to execute that query use this script in the actionPerformed portion of button scripting

```auto
table = event.source.parent.getComponent('Power Table')
system.db.refresh(table, "data")

```

---

<div class="post-metadata">

**Author:** ![txsalewski](https://avatars.discourse-cdn.com/v4/letter/t/cc9497/32.png) [@txsalewski](https://forum.inductiveautomation.com/u/txsalewski)\
**Post date:** [April 16, 2019, 11:46pm UTC](https://forum.inductiveautomation.com/t/how-to-use-a-push-button-to-execute-a-query/24181/3 "2019-04-16T23:46:28Z")

</div>

Thanks! I will try it tomorrow.

Regards

Tom
