cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Dynamic Smart table Creation

Former Member
0 Likes
1,715

Hello Experts,

I have a requirement to create dynamic table based on inputs from predecessor view...

sap.m.table is an alternative but i would like to try with Smarttable...

https://stackoverflow.com/questions/21014145/sapui5-sap-m-table-dynamic-creation

Any help with an example?

View Entire Topic
jessicademarchi
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi, hari_105

You can use the class sap.ui.comp.smarttable.SmartTable(id?, settings?)

Something like this:

const smartTable = new sap.ui.comp.smarttable.SmartTable(
('smartTable-id'),
{
entitySet: 'yourEntity',
width: '100%',
enableAutoBinding: true,
tableType: 'ResponsiveTable',
useExportToExcel: false,
showFullScreenButton: true,
useTablePersonalisation: false
}
);

Here is the documentation where you can find all properties, methods, events...

Hope it helped.