base on the view . when i use it for flex repeater it possible how to know that i selected or click?
I don't understand what you want.
You want to know on which instance you have clicked ?
If yes, you can use the system.perspective.sendMessage()
to send information from the instance to the flex container. And then in the flex container use a message Handler to received the information sent from the intances.
Create a view parameter on your flex repeater instance view called "index". Assign a unique value to the "index" parameter for each flex repeater instance in the flex repeater's "props.instances" property. Write an "onClick" event script on the root container of your flex repeater instance view that sends a message which contains "self.view.params.index" (and any other properties that you want to pass) in its payload. Create a message handler somewhere in the view containing the flex repeater and take the payload's "index" value from there.
If you do not defined index
in the instance parameter, it will be automatically set to the position in the flex repeater.
Just create index
in the view inside the flex repeater