# Make the Index of the Selected Row in an Interactive Table Available in Triggers

**URL:** <https://community.tulip.co/t/make-the-index-of-the-selected-row-in-an-interactive-table-available-in-triggers/8111>\
**Category:** Product Suggestions\
**Created:** [April 18, 2023, 4:57pm UTC](https://community.tulip.co/t/make-the-index-of-the-selected-row-in-an-interactive-table-available-in-triggers/8111 "2023-04-18T16:57:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kellen.linse](https://avatars.discourse-cdn.com/v4/letter/k/e99b99/32.png) [@kellen.linse](https://community.tulip.co/u/kellen.linse)\
**Post date:** [April 18, 2023, 4:57pm UTC](https://community.tulip.co/t/make-the-index-of-the-selected-row-in-an-interactive-table-available-in-triggers/8111/1 "2023-04-18T16:57:24Z")

</div>

I am using an interactive table to display an array of objects. I want to be able to delete the selected row (object) from that array.

If I had access to the index of the selected object I would be able to delete that row using the “Remove at index in Array” method.

I cannot use the ARRAY\_INDEX\_OF() function since the function does not take objects as a type.

Thanks

---

<div class="post-metadata">

**Author:** ![k.ober](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/k.ober/32/6330_2.png) [@k.ober](https://community.tulip.co/u/k.ober)\
**Post date:** [April 18, 2023, 5:09pm UTC](https://community.tulip.co/t/make-the-index-of-the-selected-row-in-an-interactive-table-available-in-triggers/8111/2 "2023-04-18T17:09:02Z")

</div>

Hey Kellen!

Noted - we definitely want to improve how we treat Objects, and this is a great point toward that effort.

For now, I would use this method as a workaround:

I have a table **MyTable** with columns **Name, Count, Date** , and I want to remove the item with name **Test2**.  
I can do this with the following method (and likely this can be grouped in a single expression: )

1. Get all **Name** s - `map_to_text_list(MyTable, 'Name')` - returns one-width List of all **Name** s, like `{Test1, Test2, Test3, ...}` and save in **listofNames**
2. Find Index of intended item: `array_index_of(listofNames, 'Test2')` , returns index 1
3. Return to original object **MyTable** and remove item at index 1.

In short, you can find the index in question once you flatten the Object array to a single width.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![kellen.linse](https://avatars.discourse-cdn.com/v4/letter/k/e99b99/32.png) [@kellen.linse](https://community.tulip.co/u/kellen.linse)\
**Post date:** [April 18, 2023, 5:23pm UTC](https://community.tulip.co/t/make-the-index-of-the-selected-row-in-an-interactive-table-available-in-triggers/8111/3 "2023-04-18T17:23:29Z")

</div>

Yup, that is what I am doing now, just throwing it up as a product suggestion since it would save some dev time and computation if the index was available.

Thanks for the reply 👍
