cancel
Showing results for 
Search instead for 
Did you mean: 

Aggregation Binding with attachEvent to control in XML view

Raghum9t2
Explorer
0 Kudos

Hi Folks,

I am having a table with sap.m.Label in one of a cell and its created via aggregation binding. Since sap.m.Label is not having a press event I want to declare an attachEvent in the control declartion in XML view.

I know we can handle this in the controller via js but since the Label does not have ID it makes tougher to handle at controller side and I am planning to define this attachEvent function in XML view only.

Could anyone spare a thought on this?

Eg Code:

<Table>

.....

<cells>

<Label  text="some text from binding">

</Label>

so, here how to define the attachEvent function?

Thanks in advance

 

Accepted Solutions (0)

Answers (0)