cancel
Showing results for 
Search instead for 
Did you mean: 

selectionChange not firing

former_member260921
Participant
0 Kudos

Hi,

I have an sap.m.Table control that is populated with data.

<Table id="idBPList" inset="false" selectionChange="onSelectionChange" items="{/value}">

...

</Table>

I have defined "onSelectionChange" in the controller but the function does not get called when I click on a row in the table. What do I need to do to "select" a row that will fire the selectionChange event.

Thanks,

Mel

Accepted Solutions (1)

Accepted Solutions (1)

former_member260921
Participant

Hi,

I was able to select and fire the event when I set the mode to

"SingleSelectMaster".

<Table id="idBPList" inset="false" mode="SingleSelectMaster" selectionChange="onSelectionChange"

There are other modes available under sap.m.listmode in the documentation.

Regards,

Mel

Answers (1)

Answers (1)

former_member365727
Active Contributor
0 Kudos

you need to set the table property "includeItemInSelection=true"

<Table id="idBPList" inset="false" selectionChange="onSelectionChange" items="{/value}" includeItemInSelection="true">
...
</Table>
former_member260921
Participant
0 Kudos

Hi Srikanth,

Thanks for the answer! "includeItemInSelection" did not work for me in this case. See answer below.

Mel