# runScript() in table

**URL:** <https://forum.inductiveautomation.com/t/runscript-in-table/15608>\
**Category:** General Discussion\
**Created:** [October 9, 2017, 1:50pm UTC](https://forum.inductiveautomation.com/t/runscript-in-table/15608 "2017-10-09T13:50:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![antoniosantos\_ccb](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@antoniosantos\_ccb](https://forum.inductiveautomation.com/u/antoniosantos_ccb)\
**Post date:** [October 9, 2017, 1:50pm UTC](https://forum.inductiveautomation.com/t/runscript-in-table/15608/1 "2017-10-09T13:50:09Z")

</div>

Hi.  
How can use this?  
runScript(“rootFunction(” + {Root Container.Table,name} + “)”, 8000)  
my function is in Root Container  
With a button event.source.parent.function and using runScript?

---

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [October 9, 2017, 6:51pm UTC](https://forum.inductiveautomation.com/t/runscript-in-table/15608/2 "2017-10-09T18:51:07Z")

</div>

The question is a bit cryptic, but possibly this

```auto
runScript("self.parent.rootFunction",8000,{Root Container.Table.name})

```

Also, on a separate topic, calling the function the way you defined in the question could lead to performance issues. As of 7.9, you should call the function as follows (following your example)

```auto
runScript("rootFunction",8000,{Root Container.Table,name})

```
