# Vision scripting issue

**URL:** <https://forum.inductiveautomation.com/t/vision-scripting-issue/78953>\
**Category:** Ignition\
**Tags:** ignition81, vision, scripting, database\
**Created:** [September 11, 2023, 7:25am UTC](https://forum.inductiveautomation.com/t/vision-scripting-issue/78953 "2023-09-11T07:25:18Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [September 11, 2023, 7:38am UTC](https://forum.inductiveautomation.com/t/vision-scripting-issue/78953/3 "2023-09-11T07:38:00Z")

</div>

> [@Surya\_Chandra\_Mohan](#):
>
> table = event.source.parent.getComponent('Table')  
> selectedRow = table.getSelectedRow()

See here on how to post code on the forum. (The first four lines of code are not formatted properly.)

> [@Wiki - how to post code on this forum](https://forum.inductiveautomation.com/t/wiki-how-to-post-code-on-this-forum/77831):
>
> This thread is intended as a short help file for all those struggling to post formatted code on the forum. Posting formatted code on the forum (and most others) is as simple as selecting the code and pressing the \</\> button. It works the same as applying Bold or Italic styles to your document. It preserves indentation and applies syntax highlighting. [How to post code]

There's a pencil icon under your post which will allow you to edit it - and fix the title.

---

_[View the full topic](https://forum.inductiveautomation.com/t/vision-scripting-issue/78953)._
