Skip to Content

Smart Table filtering issue

Hello,

I've got an issue with filtering on smart table control.

When I pass input that returns something from oData the filtering is working fine.

But when I pass input that doesn't return any data and then I clear all the filters it is stuck on no data found and it doesn't return the whole data or data filtered by new filters. No batch request is send after passing that kind of input.

I don't know with what this problem is connected to that's why I am not able to solve it

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    Mar 27 at 10:12 AM

    Ok. Try to remove all your custom functions from controller, this functionality is working fine (UI5 requests from smartfilterbar/table). I am sure that it will fix your issue, because of metadata loaded properly (you have got the data).

    good luck

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 26 at 01:19 PM

    Yes, however I don't see any errors that might be related to this

    /resources/sap/ushell/themes/base/IconFonts.css:1 Failed to load resource: the server responded with a status of 404 ()
    /resources/sap/ushell/themes/base/flower-standalone.css:1 Failed to load resource: the server responded with a status of 404 ()
    sap-ui-core.js:2029 2019-03-26 13:59:42 Device API logging initialized - DEVICE
    sap-ui-core.js:180 2019-03-26 13:59:42.176225 URL prefixes set to: -  sap.ui.ModuleSystem
    sap-ui-core.js:180 2019-03-26 13:59:42.176419   (default) : ../../../../../resources/ -  sap.ui.ModuleSystem
    sap-ui-core.js:sourcemap:105 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
    loadSyncXHR @ sap-ui-core.js:sourcemap:105
    sap-ui-core.js:180 2019-03-26 13:59:42.612560 jQuery.sap.registerResourcePath ('sap/ushell/renderers/fiorisandbox', 'https://webidetesting4037997-si67i0dt1j.dispatcher.eu2.hana.ondemand.com/test-resources/sap/ushell/bootstrap/../renderers/fiorisandbox/') -  sap.ui.ModuleSystem
    7sap-ui-core.js:sourcemap:2123 Failed to load resource: the server responded with a status of 404 ()
    send @ sap-ui-core.js:sourcemap:2123
    /localService/metadata/$metadata?sap-language=EN:1 Failed to load resource: the server responded with a status of 404 ()
    sap-ui-core.js:180 2019-03-26 13:59:51.148354 [ODataMetadata] initial loading of metadata failed -  
    c @ sap-ui-core.js:180
    /resources/Component/js/css/style.css:1 Failed to load resource: the server responded with a status of 404 ()
    /sap/bc/lrep/flex/data/(censoring-name).Component?appVersion=1.0.0:1 Failed to load resource: the server responded with a status of 404 ()
    sap-ui-core.js:180 2019-03-26 13:59:51.197750 Loading changes for (censoring-name).Component failed!
    Error code: 404
    Message:  -  
    c @ sap-ui-core.js:180
    sap-ui-core.js:180 2019-03-26 13:59:51.220665 'initialise' failed: accessing the flexibility functionality. -  
    c @ sap-ui-core.js:180
    /resources/sap/ui/comp/smartvariants/SmartVariantManagement.js?eval:7 Uncaught (in promise) undefined
    sap-ui-core.js:180 2019-03-26 13:59:54.753250 jQuery.sap.registerResourcePath ('sap/ushell/components/shell/ShellElements', '../../../../../resources/sap/ushell/components/shell/ShellElements/') -  sap.ui.ModuleSystem
    sap-ui-core.js:180 2019-03-26 13:59:54.757370 jQuery.sap.registerResourcePath ('sap/ushell/components/shell/Search', '../../../../../resources/sap/ushell/components/shell/Search/') -  sap.ui.ModuleSystem
    sap-ui-core.js:180 2019-03-26 13:59:54.778790 jQuery.sap.registerResourcePath ('sap/ushell/components/shell/MeArea', '../../../../../resources/sap/ushell/components/shell/MeArea/') -  sap.ui.ModuleSystem
    IconFonts.css:1 Failed to load resource: the server responded with a status of 404 ()
    flower-standalone.css:1 Failed to load resource: the server responded with a status of 404 ()
    style.css:1 Failed to load resource: the server responded with a status of 404 ()
    
    Add comment
    10|10000 characters needed characters exceeded

  • Mar 27 at 09:29 AM

    Hello,

    Yeah, there is no errors connected to sending requests to backend.

    Just to summarize - when there is no result in request's response, then user is not able to send another/new request even on "go" button click? Please check the network tab in browser (developer tools), if any request is being send on "go" button.

    Add comment
    10|10000 characters needed characters exceeded

    • Yes, however that error does not affect the data. At first the data is fetched and it is visible in smart table. I've cleared the console and no errors are showing up there. I am sure that no request is being sent.