question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`sap.ui.webc.main.Table` vs. `sap.m.Table` vs. `sap.ui.table.*Table`: Which One Should I Choose?

See original GitHub issue

In the documentation there is a great article «Tables: Which One Should I Choose?» with a comparison table and main use cases when each type of table is an option choice. However, this table doesn’t cover relatively recently added sap.ui.webc.main.Table.

The questions:

  1. Is sap.ui.webc.main.Table intended to replace the previously added table classes?
  2. What are the benefits of using sap.ui.webc.main.Table over the rest UI5 table classes?
  3. Is there any preference to use one table class over another for the future development? In other words, are there any plans to replace sap.ui.table.Table with sap.ui.webc.main.Table or something similar?

Thanks.

P.S. This issue can be perceived as suggestion to elaborate the «Tables: Which One Should I Choose?» article and to address sap.ui.webc.main.Table as well.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
boghyoncommented, Oct 4, 2022

Hi @pubmikeb,

Isn’t the same configuration? Once made in declarative way via manifest.json and once in index.html?

This answer might help: https://stackoverflow.com/a/56136611/5846045

For new apps […] it’s better to use sap.ui.webc.main instead of sap.m?

See Peter’s comment at https://blogs.sap.com/2022/03/10/ui5-web-components-enablement-for-openui5-sapui5/#comment-620432 While sap.ui.webc controls are still experimental, you’re highly welcome to try them and to give feedback!

1reaction
petermuessigcommented, Oct 4, 2022

Hi @pubmikeb ,

the sap.ui.webc.main.Table control is part of the UI5 Web Components enablement of OpenUI5. This means the UI elements developed as UI5 Web Components will be wrapped as UI5 controls and can be used natively in OpenUI5. More details about this can be found here: https://blogs.sap.com/2022/03/10/ui5-web-components-enablement-for-openui5-sapui5/

The UI5 Web Components will be the future direction of writing UI elements in a framework agnostic way and currently the enablement is experimental. The APIs are not yet perfect for the usage in OpenUI5 and requires some more massage. As of today, most of the UI5 Web Components control wrappers are just 1:1 wrappers and there is work in progress to ensure a proper usage within OpenUI5 with databinding support. The UI5 Web Components APIs are more classic web development (HTML) centric.

But my blog post linked above will hopefully shed more light…

Independent from that, you are right that the documentation «Tables: Which One Should I Choose?» should be updated once the sap.ui.webc.main.Table is not experimental anymore.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SAP UI5 data tables compared: sap.m.Table vs. sap.ui.table ...
Technically, the two table controls are extremely different. While the ui-table is a typical data table with rows and columns, the m-table is ......
Read more >
Tables: Which One Should I Choose? - SAPUI5 SDK
The table below outlines which table controls are available, and what features are ... Responsive Table (sap.m.Table). Grid Table (sap.ui.table.Table).
Read more >
rendering m table vs ui table - SAP Community
Definitely ui.table when it comes to more number of items. m.table, generates new items(in dom) and it keeps on increasing with no of ......
Read more >
SAPUI5 Responsive Table sap.m.Table. Comparison with sap ...
sap. m. Table control and its responsive behavior. Comparison between sap. m. Table and sap. ui. table. Table.Specific properties which enable ...
Read more >
Table sap.m.Table in SAPUI5 - Saplearners.com
Both UI controls are used for creating tables in SAPUI5 application with subtle difference. As the namespace tells that sap.m.Table is used in ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found