cancel
Showing results for 
Search instead for 
Did you mean: 

How to refresh the master page in fiori Approval Application.

Former Member
0 Kudos

Hi All,

I am developing an Fiori master detail approval application. On Approving an item, master page should be refreshed to get the lastest workflows.

but in my Scenario after approving an item master page is not refreshing in my detail approval application.can you give me any solution to refresh the master page in fiori detail approval application.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Did you solve this problem?

I am still facing this issue.

I am using SAP WEB IDE Master/Detail template

former_member199536
Active Participant
0 Kudos

Hi Tareq,

What is the problem?

Aer you using  oModel.refresh() ?

Former Member
0 Kudos

Yes I am using.. in Detail and Master view.

When I approve an item in details view I call selectFirstItem method.. but it is not selecting correctly.

Do you have a working example?

Former Member
0 Kudos

Hi Tareq,

Yes i did resolve the issue.I will look into my code and provide you the solution.Meanwhile you can check the code in any of the standard fiori app eg. PR Approval,Production operation confirmation app,the master detail refresh works fine in these apps.

Regards

Radhika

naotoxxx
Participant
0 Kudos

Could you solve this problem? and how ?

Former Member
0 Kudos

Hi Chiranth,

Did you find solution for the issue.Even i am finding the same issue in my app.

Regards

Radhika

former_member199536
Active Participant
0 Kudos

Hi Radhika,

In order to update the Master list you should refresh the data model.

oModel.refresh()


you can access the model object in an event handler function:


onAdd: function(oEvent){

     var oModel = oEvent.getSource().getModel();

}


or in the controller:


  var oModel = this.getView().getModel();

And from the view:

     var oModel = this.getModel();



Regards,

Ido

Former Member
0 Kudos

Hi Ido,

I do refresh the model .The master list gets refreshed but the detail view still holds the old data.

It gets cleared once i click on any of the master view list item.

I can resolve this issue if i can select first  master view list item once i have refreshed the model so that it loads the detail view post refresh,

Regards

Radhika

former_member199536
Active Participant
0 Kudos

Is you project geenrated from the Web IDE's master detail application template?

you can notice there that the detail controller registers to the Master controller event:

this.getEventBus().subscribe("Master", "InitialLoadFinished", this.onMasterLoaded, this);

Former Member
0 Kudos

Hi Ido,

I do not see the code mentioned by you.I am extending production operation confirmation app and it is not a new app.

But i do see below code in detail view,but not sure what should i reload in the method:

  this.oApplicationFacade.registerOnMasterListRefresh(function() {

}, this);

Regards

Radhika