Skip to Content
avatar image
Former Member

Smart Table Sort issue

I have created a Smart Table with useTablePersonalisation="true", annotated the oData and all works fine. The data gets displayed and I can hide/show columns using table personalisation dialog, but when using the same dialog to sort/group/filter I get the following error: /webapp/resources/sap/ui/comp/smarttable/SmartTable.js:6 Uncaught TypeError: Cannot read property 'columns' of undefined(…)

I have noticed the same behaviour in SAP examples. Here is a Smart Table along with smart filter and the sorting works fine: Smart Table with Smart Filter

Whereas here is a Smart Table without the smart filter and getting the same error in the console: Smart Table WITHOUT Smart Filter

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Feb 15, 2017 at 05:24 PM

    Hi Radek,

    Can you share your annotation or metadata and smart table screen shot?

    I have a smart table and when try to sort below url is fired to get the sort data

    SmartTableSet?$skip=0&$top=25&$orderby=Ename%20asc&$filter=(substringof(%2700000001%27,Pernr))&$select=Ename%2cEndda%2cPernr%2cWerks%2cBegda&$inlinecount=allpages

    Regards,

    BG

    Add comment
    10|10000 characters needed characters exceeded