我想从视图'A'导航到分屏,也从视图'A'导航到普通视图。
第一部分工作正常,但第二部分有问题。我收到以下错误。
获取fooPath / sap / opu / odata / SAP / ZEMPLOYEE_APP_SRV / analytics 404(未找到)
我在component.js中有以下路由配置:
routing : {
config : {
routerClass : sap.app.frm.MyRouter,
viewType : "XML",
viewPath : "sap.app.frm.view",
targetAggregation : "pages",
clearTarget : false,
transition : "slide"
},
routes : [ {
pattern: "",
name: "Home",
view: "Home",
targetAggregation: "pages",
targetControl: "masterApp"
},
{
pattern : "employeeRecords",
name : "main",
view : "SplitContainer",
targetAggregation : "pages",
targetControl : "masterApp",
subroutes : [ {
pattern : "subro1",
name : "master",
view : "Master",
targetAggregation : "masterPages",
targetControl : "idAppControl",
subroutes : [{
pattern: "{Zempid}",
name: "detail",
view: "Detail",
targetAggregation: "detailPages"
}]
} ]
},
{
name : "catchallMaster",
view : "Master",
targetAggregation : "masterPages",
targetControl : "idSplitContainerControl",
subroutes : [ {
pattern : ":all*:",
name : "catchallDetail",
view : "NotFound",
transition : "flip"
} ]
},{
pattern: "analytics",
name: "analytics",
view: "analytics.AnalyticsHome",
}]
}
希望有人能帮助我。
谢谢
Febin