# List script functions not working

**URL:** <https://forum.inductiveautomation.com/t/list-script-functions-not-working/7244>\
**Category:** Ignition\
**Created:** [September 11, 2013, 6:37pm UTC](https://forum.inductiveautomation.com/t/list-script-functions-not-working/7244 "2013-09-11T18:37:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![drettberg](https://avatars.discourse-cdn.com/v4/letter/d/8edcca/32.png) [@drettberg](https://forum.inductiveautomation.com/u/drettberg)\
**Post date:** [September 11, 2013, 6:37pm UTC](https://forum.inductiveautomation.com/t/list-script-functions-not-working/7244/1 "2013-09-11T18:37:52Z")

</div>

Has anything changed with version 7.6.2 that would break the following event handler code? Error says clearSelection is not available on the object. If I comment that line out, I get the same error for addSelectionInterval.

The event source (button) and EmployeesList are at the same level in the hierarchy.

el = event.source.parent.getComponent(“EmployeesList”)  
el.clearSelection()  
el.addSelectionInterval(0, el.data.rowCount - 1)

Thanks,  
Dave

---

<div class="post-metadata">

**Author:** ![dave.fogle](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@dave.fogle](https://forum.inductiveautomation.com/u/dave.fogle)\
**Post date:** [September 25, 2013, 2:19pm UTC](https://forum.inductiveautomation.com/t/list-script-functions-not-working/7244/2 "2013-09-25T14:19:39Z")

</div>

I'm not seeing this issue in 7.6.3, and I'm not seeing it listed as a bug fix from 7.6.2 to 7.6.3. Your script runs without for me. Are you sure you're getting the component you think you're getting?
