# Use a Flex Repeater to select Details

**URL:** <https://forum.inductiveautomation.com/t/use-a-flex-repeater-to-select-details/49371>\
**Category:** Ignition\
**Tags:** scripting, perspective\
**Created:** [July 29, 2021, 8:07pm UTC](https://forum.inductiveautomation.com/t/use-a-flex-repeater-to-select-details/49371 "2021-07-29T20:07:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [July 29, 2021, 8:10pm UTC](https://forum.inductiveautomation.com/t/use-a-flex-repeater-to-select-details/49371/2 "2021-07-29T20:10:47Z")

</div>

> [@Flex Repeater - Get Selected Instance](https://forum.inductiveautomation.com/t/flex-repeater-get-selected-instance/29847/2):
>
> Short answer: no. Long answer: Don't rely on the Flex Repeater to handle this for you; let your Views do the work with Message Handlers. Setup: Let the View being instanced accept a param (like index - this param is passed along free for all instances of the Flex Repeater without you needing to supply anything yourself). [17%20AM] on the ROOT node of the View, configure an onClick event to execute a Script Action with the following code: system.perspective.sendMessage('ROOTCLICK', payload=…

---

_[View the full topic](https://forum.inductiveautomation.com/t/use-a-flex-repeater-to-select-details/49371)._
