Skip to Content
0

How to get selected row in SMARTTABLE

Aug 27, 2017 at 03:33 PM

133

avatar image
Former Member

Hi Expert,

Iam using smarttable from class "sap.ui.comp.smarttable.SmartTable" .

I was not able to find a method to get the selected row .

Please could you help me how to get the selected row based on click on delete button.

<smartTable:SmartTable id="smarttable" entitySet="ZOMPC_DTL_FIORISet" smartFilterId="smartFilterBar" tableType="Table" 
 useExportToExcel="true" useVariantManagement="false" 
useTablePersonalisation="true" header="Line Items" 
showRowCount="true" persistencyKey="SmartTableAnalytical_Explored" 
enableAutoBinding="true" 
app:useSmartField="true" class="sapUiResponsiveContentPadding" 
editTogglable="true" 
initiallyVisibleFields="Posnr,Prctr,Sdesc,Amount,Status,Unallocated,Realized,Head_qrt_flag,Ordrec_qrt,Ordrec_qrt,Pnl_amount" 
tableBindingPath="ZOMPC_DTL_FIORISet">
<smartTable:customToolbar> 
<OverflowToolbar design="Transparent"> 
<ToolbarSpacer/> 
<Button icon="sap-icon://add" text="Row" press="addRow"/>
<Button icon="sap-icon://delete" text="Delete" press="deleteRow"/>
</OverflowToolbar> 
</smartTable:customToolbar>	
</smartTable:SmartTable>
 
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers