Skip to Content
0
Former Member
Jul 28, 2016 at 11:40 AM

Issue with view refresh

1637 Views

Hi Experts,

I am having a input field in view1 when i click the button it should navigate to view2. In view2 i am displaying the details regarding my input i have given. when i click back button in view2 it goes back to view1... this also works proper... now i am giving an input and clicking button in view1.... it navigates to view2 but it displays the earlier details i.e. the screen not refreshed... i have written view2-controller back button as the code shown below...

onNavBack: function() {

var sPreviousHash = History.getInstance().getPreviousHash(),

oCrossAppNavigator = sap.ushell.Container.getService("CrossApplicationNavigation");

if (sPreviousHash !== undefined || !oCrossAppNavigator.isInitialNavigation()) {

history.go(-1);

} else {

oCrossAppNavigator.toExternal({

target: {

shellHash: "#Shell-home"

}

});

}

this.getView().destroy();

},

Even though i give destroy function it is not refreshed... Please help me to resolve this.

Thanks,

Gowtham