Hi,
I have an ODATA service (with vocabulary based annotations) that returns data along with annotations. I need to display an Analytical Table (ALV) so that I can use features such as grouping, aggregations, etc.
My OData model contains the correct annotations. However, when I try to bind the sap.ui.table.AnalyticalTable using rows="{/EntitySetName}", no data appears in the table. There are no errors in the console as well.
<table:AnalyticalTable rows="{path:'modelName>/EntitySetName', parameters: {numberOfExpandedLevels : 1 } }"> <table:columns> <table:AnalyticalColumn> <Text text="Column 1" /> <table:template> <Label text="{modelName>PropertyName1}"></Label> </table:template> </table:AnalyticalColumn> <table:AnalyticalColumn> <Text text="Column 2" /> <table:template> <Label text="{modelName>PropertyName2}"></Label> </table:template> </table:AnalyticalColumn> </table:columns> </table:AnalyticalTable>
If instead of a <table:AnalyticalTable> I use a <table:Table> the rows binding works fine and I am able to see the data in the table.
Does anyone know how to bind data to the AnalyticalTable ?
Regards,
Melwyn