on 05-10-2018 8:54 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you need to set the table property "includeItemInSelection=true"
<Table id="idBPList" inset="false" selectionChange="onSelectionChange" items="{/value}" includeItemInSelection="true">
...
</Table>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.