UI5 - 如何将路由部分从同一视图导航到主 - 详细信息页面以及另一个视图?

时间:2016-05-26 08:36:03

标签: sapui5

我想从视图'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

0 个答案:

没有答案