根据主视图动态更改明细视图

2020-09-23 11:03发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)大家好, 基于主视图动态更改详...

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


大家好,

基于主视图动态更改详细信息视图

具有多个详细信息视图的单个Master

主视图(MAINVIEW)中的Button1/Button2/Button3

DETAILVIEW1 --->一些要显示的文本

DETAILVIEW2 --->一些要显示的文本

DETAILVIEW3 --->一些要显示的文本

"主视图"是固定的,但"细节"将根据在主菜单中按下的按钮进行更改。

Button2时

必须加载DETAILVIEW2

当Button3

必须加载DETAILVIEW3

当Button1

必须加载DETAILVIEW1

由于清单文件下方,默认情况下已加载DETAILVIEW1。 当我按下button2时,DETAILVIEW2没有加载。

我的清单文件

"路由":{"配置":{" routerClass":" sap.m.routing.Router",

" viewType":" XML",

" viewPath":" ZNS_TTR224ZPN_TRR224.view",

" controlId":" Maincontrol",

" controlAggregation":" detailPages",

"异步":true},

"路线":[{"模式":"","名称":"主","目标":["主"," detail1"]}}

{" pattern":""," name":" detail1"," target":[" detail1"," master"]},

{" pattern":""," name":" detail2"," target":[" detail2"," master"]}

],

"目标":{

" master":{" viewName":" MASTERVIEW"," viewLevel":0," controlAggregation":" masterPages"}," detail1":{" viewName":" DETAIL1VIEW"," viewLevel":1}

}

}

任何建议