Skip to Content

Error adding Column to table

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 23 at 06:23 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded