cancel
Showing results for 
Search instead for 
Did you mean: 

SAP MDK set new binding without an action

dhanikawick41
Participant
0 Kudos

Hi Experts,

I have a requirement to navigate between several different pages based on the Next/ Previous button press.

I have implemented the concept bill.froelich advised me in the below link.

SAP MDK bind new data object to a page

The concept works fine, but I am facing two issues.

1. When the Next page that should be navigated to, is also same as the current page (the page type is decided based on a flag in the data object), the navigation does not happen (I assume because it is the same page I am trying to load) and the setActionBinding is not working. As the navigation action is not working when I try to load the same page, is there a way I can just bind the new object from the code without using setActionBinding.

2. In all my navigation actions, the ClearHistory property is set to true. But still I can see the Back button appearing after the navigation. Is there anything else I need to set to remove the back button.

{
	"ClearHistory": true,
	"ModalPage": true,
	"ModalPageFullscreen": true,
	"NavigationType": "Cross",
	"PageToOpen": "/SAPAssetManager/Pages/XXX/YYY.page",
	"_Type": "Action.Type.Navigation"
}

Please advise on the above issues.

Thank you.

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

What version of MDK are you using and on what device type?

View Entire Topic
asgag
Explorer
0 Kudos

Hello,

I'm facing the same issue. I am using MDK version 23.4, on Android and iOS.

Any solution to this?

asgag
Explorer
0 Kudos

I forgot to mention that I tried to do something like:

clientAPI.getPageProxy().binding = oNewData;

And I got the following error in the console:

"Cannot set property binding of #<ga> which has only a getter"