Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

Table lines are not displayed

$
0
0

Hello,

 

I have a strange behavior with my table bound to OData model.

 

The problem:

  • When data is less than 10 lines, then the lines are perfectly displayed on the table.
  • But when it is more than 10, the table behaves like there is lot of lines but it is empty lines.

empty_table.png

When I click on the first line, a request is sent and the line appears on the table

one_line.png

when I click on the second line,  a request is sent and the line appears on the table

two_line.png

When I click on the third line, a request is sent and all the lines appears on the table

all_lines.png

Here is the code :

var oTable = new sap.ui.table.Table({  title: "Versions disponibles",   // visibleRowCount: 10,  firstVisibleRow: 3,  selectionMode: sap.ui.table.SelectionMode.Single,  toolbar: this.getToolbar(),  rowSelectionChange: this.getController().onVersionTableSelected,  selectionBehavior: sap.ui.table.SelectionBehavior.RowOnly,  navigationMode: sap.ui.table.NavigationMode.Paginator
});
 var oModelVersion = new sap.ui.model.odata.ODataModel("/sap/opu/odata/sap/YSYRRVER_SRV/?sap-client=301");
sap.ui.getCore().setModel(oModelVersion, "modelVersion");
(...)
/ Bind le model à la table
var oModel = sap.ui.getCore().getModel("modelVersion");
oTable.setModel(oModel);
oTable.bindRows("/YsyrrverVersionCollection");
oTable.getModel().refresh();
//Initially sort the table
oTable.sort(oTable.getColumns()[0]);

In Chrome, Firefox and IE there is the same behavior and not error appears on the console.

 

Here is the version used :

  • SAPui5 : 1.16.7
  • Chrome : 33.0.1750.146 m
  • IE : 11.0.96000.16521
  • Firefox : 27.0.1

 

Kind Regards


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>