First of all thans for the fruitfull discussion.
As it seems it is currently not really possible for a non SAP employee to create the needed OData service.
I am not quite sure how the behavior of the smart table was back in may when I opened this question.
I believe it really showed nothing. Today I started experimenting again and noticed that the table is still empty BUT the metadata is now loaded correctly (noticed this when I clicked the personalization button of the table and all columns where there waiting to be displayed).
To the stuff that may interest somebody:
I wrote a small loop that iterates over the columns and makes them ALL visible. This way you don't need the broken LineItems annotation that controls which columns are visible in the beginning. Of course you can modify this for your needs and only display some columns. Variation of order may be possible, too.
In your controller add:
onInit: function() {
...
this.smart.attachInitialise(this.smart, function(oEvent){ | ||
for(var i = 0;i<oEvent.getSource().getTable().getColumns().length;i++){ | ||
oEvent.getSource().getTable().getColumns()[i].setVisible(true); | ||
} | ||
}); |
...}
By the way my backend service does not generate any annotations at all.