onCustomerIdPress: function (oEvent){
let selCustomer=oEvent.getSource().getText(), // This gives me the ID of the Customer.
division= this._viewModel.getProperty("/division"); // This gives me the Division ID
let oCrossAppNav = sap.ushell.Container.getService("CrossApplicationNavigation");
oCrossAppNav.toExternal({
target : { semanticObject : "XXXXX", action : "ZZZZZ" },
params : { CustomerId : selCustomer , Division : division}
});
}
onInit: function(){
........
........
let oStartupParameters = this.getOwnerComponent().getComponentData().startupParameters;
if (oStartupParameters && oStartupParameters.CustomerId && oStartupParameters.Division) {
let customerId=oStartupParameters.CustomerId[0],
division=oStartupParameters.Division[0];
}
}
<head>
.....
.....
<script>
var oStartupParameters = jQuery.sap.getUriParameters().mParams;
var oComponent = sap.ui.getCore().createComponent({
name: "com.yyyy.componentname",
settings: {
componentData: { startupParameters: oStartupParameters }
}
});
new sap.ui.core.ComponentContainer({
component: oComponent
}).placeAt("content");
</script>
</head>
<body class="sapUiBody">
<div id="content"></div>
...
...
</body>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
26 | |
24 | |
20 | |
13 | |
10 | |
9 | |
9 | |
8 | |
8 | |
7 |