cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Odata result don't show correctly in smart table

former_member275924
Active Participant
0 Kudos
2,870

Hi experts,

I create the smart table and set with entityset of odata . Although the return results are 150 records , the row count show 250 and after scrolling it change to 400 records .

After writing the paging logic in abap , all of the records are 150 and the return data is 132 records , but row count still 250 and the data don't show correctly in smart table . after scroll the table , the row count goes to 150 and the data show correctly .

I don't know why the smart table can't show correctly .

Best Regards,

Phyo

View Entire Topic
junwu
SAP Champion
SAP Champion
0 Kudos

most likely your own coding error. smarttable just display what your odata supplied.

former_member275924
Active Participant
0 Kudos

Hi Jun Wu,

Thanks for your reply ,

when I check the the return result , the count is 150 in backend and frontend .

I doubt the table of threshold but I didn't set the visible row count and threshold in table .

Thanks and best regards,

Phyo

junwu
SAP Champion
SAP Champion
0 Kudos

do you know there is a count call?

the total number shown above the table has nothing to do with the result record number.

former_member275924
Active Participant
0 Kudos

Hi Jun Wu,

I know the count call .

The main problem is only the count that show in table header.

Binding the data is wrong in table .

Although the result data is 132 , the binding length is 232 .

Could you please check the figure .

Best Regards,

Phyo

junwu
SAP Champion
SAP Champion
0 Kudos

if you know count call, then you should ask yourself why your code is giving 400 when scrolling.

you should debug your pagination code.

junwu
SAP Champion
SAP Champion
0 Kudos

is it a normal grid table? or analytic table?

former_member275924
Active Participant
0 Kudos

Hi ,

Here is the table structure.

<smartTable:SmartTable id="LineItemsSmartTable" header="支払一覧" persistencyKey="Zbukr" entitySet="GET_PAYMENT_DETAIL"
smartFilterId="smartFilterBar" tableType="Table" showVariantManagement="true" useExportToExcel="false" useVariantManagement="true"
useTablePersonalisation="true" showRowCount="false" enableAutoBinding="false"
beforeRebindTable="onBeforeRebindTable" customData:lineItemQualifier='LineItem_Display' ignoredFields='Vblnr,Kunnr,Empfg,Name1'
displayInline="true">
<!--header="支払一覧"-->
<smartTable:customToolbar>
<m:OverflowToolbar design="Transparent">
<m:ToolbarSpacer/>
<m:Button id="downloadButton" text="支払通知書データダウンロード" press="onDownload" enabled="false"/>
<m:Button id="hdDownloadBtn" icon="sap-icon://excel-attachment" press="onBeforeExport"/>
</m:OverflowToolbar>
</smartTable:customToolbar>
<!--visibleRowCount="1000" threshold="1100"-->
<table:Table id="DetailsTable" visibleRowCountMode="Auto" rowHeight=" 30%" rowSelectionChange="onSelectionChange"
busyStateChanged="onTableUpdateFinished"></table:Table>
<smartTable:layoutData>
<m:FlexItemData growFactor="1" baseSize="0%"/>
</smartTable:layoutData>
</smartTable:SmartTable>