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

How can we create smart table with uitable columns Using js view without XML

Former Member
0 Likes
1,189

i created Smar table with dynamic code

var smart = new sap.ui.comp.smarttable.SmartTable("mainsmarttable", settingsTable);

but i will try to add columns like below

smart._oTable.insertColumn(new sap.ui.table.Column({ resizable: true, autoResizable: true, label: new sap.m.Label({ text: "Vtext", design: "Bold" }), template: new SmartField({ value: { path: "Vtext" }, editable: false }) }));

Column added but Settings button not working can you tell any body what's wrong my side.

Accepted Solutions (0)

Answers (1)

Answers (1)

Joseph_BERTHE1
Active Contributor
0 Likes

hi,

I do not understand why do you want to use dynamic programming with Smart table?

This UI component is annotation driver, do it with annotation and it will work!.

Regards,

Joseph

Former Member
0 Likes

Thanks for your response.But As per our requirement.only some keys are displayed into smart table.these keys also we are getting from server when app initialization time.that's why we are using js view

Joseph_BERTHE1
Active Contributor

Is Krys are statics or Dynamic ? Are your keys the same during all the runtime?

Former Member
0 Likes

Thanks for your response.But As per our requirement.only some keys are displayed into smart table.these keys also we are getting from server when app initialization time.that's why we are using js view