following problem
(以下问题)
I got 2 functions
(我有2个功能)
This is my onInit:
(这是我的onInit:)
onInit: function() {
sap.ui.core.UIComponent.getRouterFor(this).getRoute("CoObject").attachMatched(this._onRouteMatched, this);
},
_onRouteMatched: function(oEvent) {
var sRoute = oEvent.getParameter("arguments").Route;
}
and I need to use the Value of sRoute
in this function:
(我需要在此函数中使用sRoute
的值:)
_onWeiterButtonPress: function(oEvent) {
var oRouter = this._getRouter();
var AufNr = this.getView().byId("IptAufNr").getValue();
}
In need sRoute
to check which tile the user pressed but I don′t know how to pass the value without setting in global?
(需要sRoute
检查用户按下哪个sRoute
贴,但是我不知道如何在不设置全局值的情况下传递值吗?)
Thanks for your Help
(谢谢你的帮助)
ask by BurgGartenKind translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…