Skip to Content

Passing parameters in crossnavigation in manifest for outbound navigation

I want to pass a parameter in crossnavigation property in manifest to navigate to my another app on launchpad.

I need to pass a binding property. Any leads?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on May 08, 2019 at 07:46 PM


    This is how I did it:


    <Button text="History" press="onNavigateToHistory"/>


    onNavigateToHistory: function () {
    var isManager = this.getView().byId("teamcalendar").getBindingContext().getObject().IsManager;
    if(isManager === "X"){isManager = true;} // isManager mag niet leeg zijn!! --> dump
    if(isManager === ""){isManager = false;} // isManager mag niet leeg zijn!! --> dump
    var centralPerson = this.getView().byId("teamcalendar").getBindingContext().getObject().Mycentralperson;
    var oRouter = sap.ui.core.UIComponent.getRouterFor(this);
    oRouter.navTo("history", {
    userId: this.user,
    isManager: isManager,
    centralPerson: centralPerson
    }, false);


    manifest:"routes": [
    "pattern": "tohistory/{userId},{isManager},{centralPerson}",
    "name": "history",
    "target": "history"

    in the source view, read your parameters:


    onInit: function () {
    sap.ui.core.UIComponent.getRouterFor(this).getRoute("history").attachPatternMatched(this._onObjectMatched, this);
    _onObjectMatched: function (oEvent) {
    this.user = oEvent.getParameter("arguments").userId;
    this.isManager = oEvent.getParameter("arguments").isManager;
    this.centralPerson = oEvent.getParameter("arguments").centralPerson;



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.