cancel
Showing results for 
Search instead for 
Did you mean: 

Refreshing odata model on Worklist template

former_member512938
Participant
0 Kudos

Dear all,

I am facing an situation that should be easy to solve for experts here 🙂

Here is my story: I am using the standard template Worklist/Detail. and everything is fine.

The problem occurs when I call a Function Import I set up by statement oModel.callFunction("/MyFunctionName", ....). Everything is ok, and my success callback function is called.

The thing is that this Function Import should be acting like a oModel.remove() call, and so the entry should be removed from the model.

I tried to refresh the model in my success callback but this drives me to the "Not Found" detail page.

I tried also to get back to the Worklist page via this.getRouter().navTo("worklist"); but the entry is still there.

I tried a combination of both, sorting by the 2 possible orders, but it is acting weird, like it goes to Worklist page and comes back to the Not Found Page..

Is it possible to chain both of these action ie. go back to Worklist without the very just processed entry ?

Thank you for your help

Accepted Solutions (0)

Answers (0)