# Is linked variable of table was actually selected

**URL:** <https://community.tulip.co/t/is-linked-variable-of-table-was-actually-selected/2202>\
**Category:** General\
**Tags:** apps\
**Created:** [March 22, 2021, 12:27pm UTC](https://community.tulip.co/t/is-linked-variable-of-table-was-actually-selected/2202 "2021-03-22T12:27:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amit](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/amit/32/968_2.png) [@Amit](https://community.tulip.co/u/Amit)\
**Post date:** [March 22, 2021, 12:27pm UTC](https://community.tulip.co/t/is-linked-variable-of-table-was-actually-selected/2202/1 "2021-03-22T12:27:07Z")

</div>

Hello,  
I got a table from a connector function, and I embeded this table on the step window and created a linked variable :  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/5/5c064330ab7623cdb0317ca0be98712e0cae1368.png)

Than I add the desire columns to be shown, until now every thing is ok.

On runtime, how can I know if the user clicked on the table and selected a row ? so in the trigger I have created in a button, I’m using data from this selected line for further processings.

If no row was selected, I get an error in runtime on this trigger.

I really don’t know if on simple internal table of Tulip, it will behave the same.

Thank you,  
Amit Berku

---

<div class="post-metadata">

**Author:** ![gio](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/gio/32/82_2.png) [@gio](https://community.tulip.co/u/gio)\
**Post date:** [March 22, 2021, 12:35pm UTC](https://community.tulip.co/t/is-linked-variable-of-table-was-actually-selected/2202/2 "2021-03-22T12:35:39Z")

</div>

hello @Amit, thanks for posting!!

this can be done using the Row Selected Trigger. if you scroll down on the widget pane once the Interactive Table is selected, you’ll see option to add a Trigger:

 ![Screen Shot 1](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/3/3405bcc6ae53c1b766c67b8f8244a5707c21ad30.jpeg)

with this, you can add a ‘Row Selected’ Trigger to accomplish the logic you’re looking to add:

 ![Screen Shot](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/6/65e7fb5d7a25ba467d7f3e797f67e64f7c33d4e3.jpeg)

did I correctly understand your problem?? let us know if this makes sense and helps with what you’re building!!

---

<div class="post-metadata">

**Author:** ![Amit](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/amit/32/968_2.png) [@Amit](https://community.tulip.co/u/Amit)\
**Post date:** [March 22, 2021, 1:00pm UTC](https://community.tulip.co/t/is-linked-variable-of-table-was-actually-selected/2202/3 "2021-03-22T13:00:07Z")

</div>

Hi,  
That working great, in this trigger I created a new boolean variable to keep the value Yes if a row was selected, I intialized it on the step event trigger.

Thank you,  
Amit Berku

---

<div class="post-metadata">

**Author:** ![gio](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/gio/32/82_2.png) [@gio](https://community.tulip.co/u/gio)\
**Post date:** [March 22, 2021, 1:07pm UTC](https://community.tulip.co/t/is-linked-variable-of-table-was-actually-selected/2202/4 "2021-03-22T13:07:51Z")

</div>

great to hear!! thanks for the update @Amit

---

<div class="post-metadata">

**Author:** ![gio](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/gio/32/82_2.png) [@gio](https://community.tulip.co/u/gio)\
**Post date:** [March 22, 2021, 1:07pm UTC](https://community.tulip.co/t/is-linked-variable-of-table-was-actually-selected/2202/5 "2021-03-22T13:07:55Z")

</div>

Closed on March 22, 2021, 1:07pm UTC


