cancel
Showing results for 
Search instead for 
Did you mean: 

AppBuilder - Back button

MariusStoica
Active Participant
0 Kudos

Hi guys, Hi Pavel, Hi Midhun,

I'm having a problem with the "Back" button.

It's there because on each page I've activated the "showNavButton" option.But the thing is ... it doesn't work, nothing happens.

I didn't modify the default function "backBtnTap: function() ":

backBtnTap: function() {

     var bus = sap.ui.getCore().getEventBus();

     bus.publish("nav", "back");

},

Anyone has a clue?

Thanks,

Marius.

Accepted Solutions (1)

Accepted Solutions (1)

PavelPenaz
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Marius,

It works in my sample project, can you check the following?

1. Did you define the backBtnTap in the JS controller of the particular view?

2. Did you define the event for NavButtonTab in this particular view as backBtnTap?

Thanks.

Pavel

MariusStoica
Active Participant
0 Kudos

Yeah Pavel,

the only thing I had to add to my page.view.html was in the "Events" tab, there is the "navButtonPress" or "navButtonTap". I had to assign the function that already exists "backBtnTap" to one of those declarations, and everything worked just fine.

Thanks,

Marius

Answers (1)

Answers (1)

midhun_vp
Active Contributor
0 Kudos

Can you try the below sample code :

handleNavButtonPress : function (evt) {

this.nav.back(“Master”);

}

Midhun VP

MariusStoica
Active Participant
0 Kudos

Hi Midhun,

I tried that on my tab app and didn't work. I've put break points on both standard function (backBtnTap: function()) and in the custom function you pointed. Chrome didn't stop in any of them

Thanks,

Marius