cancel
Showing results for 
Search instead for 
Did you mean: 

Error adding Column to table

Former Member
0 Kudos

So I followed this tutorial: https://blogs.sap.com/2014/04/08/understanding-sapuitabletable-in-10-minutes/ and ran into a problem I am hoping someone can help with.

oTable.addColumn(new sap.ui.table.Column({ 
       label: v['Month'], 
       template: new sap.ui.commons.TextField({value: "{AUG}"}), 
       hAlign:"Center", resizable:false })); 

I wrote the above, which is obviously not exactly as the tutorial but I am getting the following error message "Uncaught TypeError: Cannot read property 'TextField' of undefined".

Any ideas why that would happen?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Found the solution by looking at the actual example of the tutorial on jsbin (which is unfortunatly blocked by corporate firewall).

I had not added the common and table libraries to the index.html.