从登录屏幕(全屏)导航到SAP ui5中的主/主FlexibleColumnLayout?

2020-08-26 19:31发布

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

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


我有一个具有登录屏幕的应用程序,在登录屏幕中有几个功能,其中之一是进入flexiblecolumnlayout的入口,以显示对象的一些详细信息。

但是由于某些问题,无法触发flexiblecolumnlayout:

 2019-11-25 16:41:04.031219找不到ID为fcl的控件-EventProvider
 未捕获的TypeError:无法读取未定义的属性'oTargetControl'。
 

然后我的清单文件如下:

 {
   " version":" 1.1.0",
   " sap.app":{
   " _version":" 1.1.0",
 " id":" com.sap.twm",
 " type":"应用程序",

 " i18n":" i18n/i18n.properties",

 " title":" {{appTitle}}",
 " description":" {{appDescription}}",
 " applicationVersion":{
 " version":" 1.0.0"
 },
 " ach":" CA-UI5-DOC"
   },
   " sap.ui":{
 " _version":" 1.1.0",
 " technology":" UI5",
 " deviceTypes":{
 "桌面":是的,
 "平板电脑":是的,
 "电话":正确
 },
 " supportedThemes":[
 " sap_belize"
 ]
   },
     " sap.ui5":{
 " _version":" 1.1.0",
 " rootView":" com.sap.cs.views.App",
 "资源":{
 " css":[
 {
 " uri":" css/counter.css"
 }
 ]
 },
 "依赖关系":{
 " minUI5Version":" 1.30",
 " libs":{
 " sap.ui.core":{
 " minVersion":" 1.48.0"
 },
 " sap.m":{
 " minVersion":" 1.48.0"
 },
 " sap.ui.table":{
 " minVersion":" 1.48.0"
                },
 " sap.f":{
 " minVersion":" 1.48.0"
 }
 }
 },
 "路由":{
 " config":{
 " routerClass":" sap.m.routing.Router",
 " viewType":" XML",
 " viewPath":" com.sap.cs.views",
 " controlId":" app",
 " controlAggregation":"页面",
 " transition":" slide"


 },
 "路线":[
       {
         " pattern":"",
   " name":"登录",
   " target":"登录"
       },
       {
 " pattern":" nodelist/{用户名}",
   " name":" nodelist",
   " target":" nodelist"
   },
       {
   " pattern":" nodetree/{objID}/{ajiraEnv}/{username}",
   " name":" nodetree",
   " target":" nodetree"
   },
       {
   " pattern":" nodecdv/{objID}/{ajiraEnv}/{username}",
   " name":" nodecdv",
   " target":" nodecdv"
   },
   {
   " pattern":"统计",
   " name":"统计",
   " target":"统计"
   },
   {
   " pattern":"壁画",
   " name":"壁画",
   " target":"壁画"
   },
   {
 " pattern":"入口",
 " name":"入口",
 " target":"入口"
 },
 {
 " pattern":" master",
 " name":" master",
 "目标":[
 "主",
 "详情"
 ],
 " layout":" TwoColumnsMidExpanded",
 " controlId":" fcl"
 },
 {
 " pattern":"详细信息/{产品}",
 " name":"详细信息",
 "目标":[
 "主",
 "详情"
 ],
 " layout":" TwoColumnsMidExpanded",
 " controlId":" fcl"
 },
 {
 " pattern":" detailDetail/{product}/{supplier}",
 " name":" detailDetail",
 "目标":[
 "主",
 "详情",
 " detailDetail"
 ],
 " layout":" ThreeColumnsMidExpanded",
 " controlId":" fcl"
 }],

 "目标":{
       "登录": {
         " viewName":"登录"
      },
   "节点列表":{
   " viewName":"节点列表"
   },
   "节点树":{
   " viewName":" nodetree"
   },
   " nodecdv":{
   " viewName":" nodecdv"
   },
   "统计":{
   " viewName":"统计信息"
   },
   "壁画":{
   " viewName":"壁画"
   },
 "入口": {
 " viewName":"入口"
 },
   "主人":{
 " viewName":"主人",
 " controlId":" fcl",
 " controlAggregation":" beginColumnPages"
 },
 "详细信息":{
 " viewName":"详细信息",
 " controlId":" fcl",
 " controlAggregation":" midColumnPages"
 },
 " detailDetail":{
 " viewName":" DetailDetail",
 " controlId":" fcl",
 " controlAggregation":" endColumnPages"
 }
 }
 }
   }
 }
 

控件ID fcl是flexiblecolumnlayout的ID:

 
 
 
 
 

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

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


我有一个具有登录屏幕的应用程序,在登录屏幕中有几个功能,其中之一是进入flexiblecolumnlayout的入口,以显示对象的一些详细信息。

但是由于某些问题,无法触发flexiblecolumnlayout:

 2019-11-25 16:41:04.031219找不到ID为fcl的控件-EventProvider
 未捕获的TypeError:无法读取未定义的属性'oTargetControl'。
 

然后我的清单文件如下:

 {
   " version":" 1.1.0",
   " sap.app":{
   " _version":" 1.1.0",
 " id":" com.sap.twm",
 " type":"应用程序",

 " i18n":" i18n/i18n.properties",

 " title":" {{appTitle}}",
 " description":" {{appDescription}}",
 " applicationVersion":{
 " version":" 1.0.0"
 },
 " ach":" CA-UI5-DOC"
   },
   " sap.ui":{
 " _version":" 1.1.0",
 " technology":" UI5",
 " deviceTypes":{
 "桌面":是的,
 "平板电脑":是的,
 "电话":正确
 },
 " supportedThemes":[
 " sap_belize"
 ]
   },
     " sap.ui5":{
 " _version":" 1.1.0",
 " rootView":" com.sap.cs.views.App",
 "资源":{
 " css":[
 {
 " uri":" css/counter.css"
 }
 ]
 },
 "依赖关系":{
 " minUI5Version":" 1.30",
 " libs":{
 " sap.ui.core":{
 " minVersion":" 1.48.0"
 },
 " sap.m":{
 " minVersion":" 1.48.0"
 },
 " sap.ui.table":{
 " minVersion":" 1.48.0"
                },
 " sap.f":{
 " minVersion":" 1.48.0"
 }
 }
 },
 "路由":{
 " config":{
 " routerClass":" sap.m.routing.Router",
 " viewType":" XML",
 " viewPath":" com.sap.cs.views",
 " controlId":" app",
 " controlAggregation":"页面",
 " transition":" slide"


 },
 "路线":[
       {
         " pattern":"",
   " name":"登录",
   " target":"登录"
       },
       {
 " pattern":" nodelist/{用户名}",
   " name":" nodelist",
   " target":" nodelist"
   },
       {
   " pattern":" nodetree/{objID}/{ajiraEnv}/{username}",
   " name":" nodetree",
   " target":" nodetree"
   },
       {
   " pattern":" nodecdv/{objID}/{ajiraEnv}/{username}",
   " name":" nodecdv",
   " target":" nodecdv"
   },
   {
   " pattern":"统计",
   " name":"统计",
   " target":"统计"
   },
   {
   " pattern":"壁画",
   " name":"壁画",
   " target":"壁画"
   },
   {
 " pattern":"入口",
 " name":"入口",
 " target":"入口"
 },
 {
 " pattern":" master",
 " name":" master",
 "目标":[
 "主",
 "详情"
 ],
 " layout":" TwoColumnsMidExpanded",
 " controlId":" fcl"
 },
 {
 " pattern":"详细信息/{产品}",
 " name":"详细信息",
 "目标":[
 "主",
 "详情"
 ],
 " layout":" TwoColumnsMidExpanded",
 " controlId":" fcl"
 },
 {
 " pattern":" detailDetail/{product}/{supplier}",
 " name":" detailDetail",
 "目标":[
 "主",
 "详情",
 " detailDetail"
 ],
 " layout":" ThreeColumnsMidExpanded",
 " controlId":" fcl"
 }],

 "目标":{
       "登录": {
         " viewName":"登录"
      },
   "节点列表":{
   " viewName":"节点列表"
   },
   "节点树":{
   " viewName":" nodetree"
   },
   " nodecdv":{
   " viewName":" nodecdv"
   },
   "统计":{
   " viewName":"统计信息"
   },
   "壁画":{
   " viewName":"壁画"
   },
 "入口": {
 " viewName":"入口"
 },
   "主人":{
 " viewName":"主人",
 " controlId":" fcl",
 " controlAggregation":" beginColumnPages"
 },
 "详细信息":{
 " viewName":"详细信息",
 " controlId":" fcl",
 " controlAggregation":" midColumnPages"
 },
 " detailDetail":{
 " viewName":" DetailDetail",
 " controlId":" fcl",
 " controlAggregation":" endColumnPages"
 }
 }
 }
   }
 }
 

控件ID fcl是flexiblecolumnlayout的ID:

 
 
 
 
 
付费偷看设置
发送
3条回答
shere_lin
1楼 · 2020-08-26 19:55.采纳回答

我可以看到您正在合并普通页面和灵活布局列页面,并且两者都具有不同的routersClass sap.m.routing.Router和sap.f.routing.Route(您没有在ur manifest.json中提及) ..大概这就是失败的原因。

为什么不完全使用sap.f.routing.Route(完全灵活的列布局),并使登录页面占据整个屏幕,之后

谢谢,
Mahesh

zhangjiyang1323
2楼-- · 2020-08-26 20:10

非常感谢,我已经解决了我的问题

Climb_Ma
3楼-- · 2020-08-26 20:02

贝拉,你好

我也面临着同样的问题,如果可以共享代码示例,谢谢。

谢谢

Namal

一周热门 更多>