Skip to Content

List not getting refresh on changing model data

Hello experts, I have an issue where after add or delete function, the list showing the items is not getting refresh. I have tried using oModel.refresh() and also forcefully updating the model again by doing backend Odata read, but nothing refreshes the list! Can someone please tell me how to get this to work?

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Jul 30, 2020 at 07:34 PM

    This is solved now. The issue was with the UI5 version of the app.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 29, 2020 at 05:49 PM

    Hi,

    Could you let me know which OData Model you are using.

    Also when you perform create or delete operations have you configured success and error messages to understand whether the operation has been successfully performed in the backend?

    Best Regards,

    Rohit

    Add a comment
    10|10000 characters needed characters exceeded

    • If you are asking about Odata version then I am not sure how to check? To answer the second question, yes I am doing the refresh/calling the function to reload the data from the backend within the function called at success and the file is getting deleted successfully in the backend. Just that the list isn't getting refreshed! I have tried everything I found online so far but nothing seems to work :(

  • Posted on Jul 30, 2020 at 07:55 AM

    Hi,

    I meant the OData model that you have created to consume the OData service in your UI5 project.

    You will find the model library reference in either manifest.json or from the Controller.js file where you have consumed the OData service.

    Additionally, you do not need to refresh on success message. Refresh call is automatically done by the OData model after any C/U/D operation.

    Could you also share the code you are using for your operations and refresh.

    Best Regards,

    Rohit

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.