So I coded a View where 1 Value Field is filled.
(所以我编写了一个视图,其中填充了1个值字段。)
So now this View is Part of 3 different Apps.(因此,此视图现在是3个不同应用程序的一部分。)
So how do I code the controller.(那么我该如何编码控制器。)
I need to know which App triggers the View so I can navigate to the right app depanding on which tile was clicked.
(我需要知道哪个应用程序触发了视图,因此我可以导航到正确的应用程序,该应用程序是单击了哪个图块。)
So my Problem
(所以我的问题)
I got a Launchpad-Controller this Controller contains the function:
(我得到了一个Launchpad-Controller,该Controller包含以下功能:)
_onParticipationTilePress: function (oEvent) {
this._oRouter.navTo("CoObject", "" , true);
}
and
(和)
_onChangeTilePress: function (oEvent) {
this._oRouter.navTo("CoObject", "", true);
},
So after click on one of this functions I get into my CoObject-Controller.
(因此,在单击其中一个功能后,我进入了CoObject-Controller。)
Here the User have to select a specific number and with this number he should get forwarded to one of the above application depanding on which Tile he pressed(在这里,用户必须选择一个特定的编号,并使用该编号将他转发到上述应用程序之一,并按他按下的图块)
_onWeiterButtonPress: function (oEvent) {
var oRouter = this._getRouter();
var AufNr = this.getView().byId("IptAufNr").getValue();
oRouter.navTo("AuftragAendern", {
CoObj: AufNr
});
oRouter.navTo("Mitwirkung", {
CoObj: AufNr
});
So which value could I get so my Controller knows which Route he should choose?
(那么,我可以获取哪个值,以便我的控制器知道他应该选择哪个路由?)
Sry for my english an the German Words in the Coding.
(对我的英语和编码中的德语单词表示抱歉。)
ask by BurgGartenKind translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…