Flex Repeater - Get Selected Instance

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={'index': self.view.params.index}, scope='page')

Now go to the Flex Repeater, right-click the Flex Repeater, and select "Configure Scripts...".
Under Message Handlers, add a new handler with a message type of "ROOTCLICK", and supply the following code:

self.custom.selected = payload['index']

Now your Flex Repeater is aware of which instance was most recently clicked.

5 Likes