cancel
Showing results for 
Search instead for 
Did you mean: 

The aggregation node for control is incorrect for sap.ui.Table

12-27-2019 10:00 AM
2471 views 5 comments
0 Likes
SAP Managed Tags
Subscribe

I have in my view the following table.

<Table id="lineItemsList" width="auto" items="{  path: 'Ekpo' }" updateFinished=".onListUpdateFinished"
noDataText="{i18n>detailLineItemTableNoDataText}" busyIndicatorDelay="{detailView>/lineItemTableDelay}">
<headerToolbar>
<Toolbar>
<Title id="lineItemsTitle" text="EKPO" titleStyle="H3" level="H3"/>
</Toolbar>
</headerToolbar>
<columns>
<Column width="15%">
<Text text="Item"/>
</Column>
<Column width="40%">
<Text text="Short Text"/>
</Column >
<Column  width="20%">
<Text text="Deletion Ind."/>
</Column>
<Column width="25%">
<Text text="RFQ status"/>
</Column>
</columns>
<items>
<ColumnListItem>
<cells>
<Text text="{Ebelp}" wrapping="false"/>
<Text text="{TXZ01}" wrapping="false"/>
<Text text="{Loekz}" wrapping="false"/>
<Text text="{Statu}" wrapping="false"/>
</cells>
</ColumnListItem>
</items>
</Table>

The WebIDE gives me an error in the tag <items> saying that the aggregation node for control is incorrect.

I can't figure out what's wrong. Can someone help me?

0 Likes

Accepted Solutions (0)

Answers (2)

Answers (2)

pfefferf
Active Contributor

What kind of table are you using? If you are using a sap.ui.table.Table than this control does not have such an aggregation. Check the documentation: sap.ui.table.Table - Aggregations

Former Member
0 Likes

Indeed I am using sap.ui.table.Table.

pfefferf
Active Contributor
0 Likes

Then of course it cannot work. Please check if you really want to use that "old" table control. Maybe you want to use sap.m.Table.

maheshpalavalli
Active Contributor
0 Likes

definitely ui.table.Table not a "Old" control but it has to be chosen based on the scenario.

https://experience.sap.com/fiori-design-web/grid-table

Former Member
0 Likes

Hi Mahesh

here is an example.

https://jsbin.com/tuyekew/edit?html,js,output

there are two kind of tables, sap.m.Table and sap.ui.table.Table.

BR

Dennis