In a scenario I have to call the second methods after completion of first method.
After updating an Order from Fiori app I am refreshing the model to get the updated data using refresh() method.
After completion of refresh() method I want to call another method. Since the refresh method loads the data from backend, it takes time to complete and my second method is being called before the completion of refresh method.
Please let me know if there is any way to call them one after another(after completion of first method).