在Cloud Foundry中创建自定义图块时出错

2020-08-21 18:37发布

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

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


Hello SAP社区


我正在尝试使用Launchpad模块在Cloud Foundry中创建自定义图块,但是在部署时出现错误。


这是我的清单:

 {
 " _version":" 1.8.0",
 " sap.flp":{
       " type":" tile",
       " tileSize":" 1x1"
    },
    " ach":" CA-UI2-INT-FE",
 " sap.app":{
 " id":" appui5.appui5",
 " type":"应用程序",
 " i18n":" i18n/i18n.properties",
 " applicationVersion":{
 " version":" 1.0.0"
 },
 " title":" {{appTitle}}",
 " description":" {{appDescription}}",
 " sourceTemplate":{
 " id":" html5moduletemplates.basicSAPUI5ApplicationProjectModule",
 "版本":" 1.40.12"
 },
 " crossNavigation":{
 "入站":{
 " appui5-display":{
 "签名":{
 "参数":{},
 " additionalParameters":"允许"
 },
 " semanticObject":" appui5",
 " action":" display",
 标题:" titulo ma"
 }
 }
 }
 },
 " sap.ui":{
 " technology":" UI5",
 "图标":{
 " icon":" sap-icon://favorite",
 " favIcon":"",
 "电话": "",
 " phone @ 2":"",
 " tablet":"",
 " tablet @ 2":""
 },
 " deviceTypes":{
 "桌面":是的,
 "平板电脑":是的,
 "电话":正确
 },
 " supportedThemes":[" sap_hcb"," sap_bluecrystal"]
 },
 " sap.ui5":{
 " rootView":{
 " viewName":" appui5.appui5.view.View1",
 " type":" XML"
 },
 "依赖关系":{
 " minUI5Version":" 1.65.6",
 " libs":{
 " sap.ui.core":{},
 " sap.m":{},
 " sap.ui.layout":{},
 " sap.ushell":{},
 " sap.collaboration":{},
 " sap.ui.comp":{},
 " sap.uxap":{}
 }
 },
 " contentDensities":{
 "紧凑":是的,
 "舒适":是
 },
 "楷模": {
 " i18n":{
 " type":" sap.ui.model.resource.ResourceModel",
 "设置":{
 " bundleName":" appui5.appui5.i18n.i18n"
 }
 }
 },
 "资源":{
 " css":[{
 " uri":" css/style.css"
 }]
 },
 "路由":{
 " config":{
 " routerClass":" sap.m.routing.Router",
 " viewType":" XML",
 "异步":是的,
 " viewPath":" appui5.appui5.view",
 " controlAggregation":"页面",
 " controlId":" idAppControl",
 " clearControlAggregation":false
 },
 "路线":[{
 " name":" RouteView1",
 " pattern":" RouteView1",
 " target":[" TargetView1"]
 }],
 "目标":{
 " TargetView1":{
 " viewType":" XML",
 " transition":" slide",
 " clearControlAggregation":否,
 " viewName":" View1"
 }
 }
 }
 }
 }
 

这是我的CommonDataModel模块:

 {
 " _version":" 3.0.0",
 "标识":{
 " id":" b49e7de8-a998-4f8f-8d68-7fe41787f00f-1584044420748",
 " entityType":"捆绑"
 },
 "有效载荷":{
 "目录":[{
 " _version":" 3.0.0",
 "标识":{
 " id":" defaultCatalogId",
 " title":" {{title}}",
 " entityType":"目录",
 " i18n":" i18n/defaultCatalogId.properties"
 },
 "有效载荷":{
 " viz":[]
 }
 }],
 "组":[{
 " _version":" 3.0.0",
 "标识":{
 " id":" defaultGroupId",
 " title":" {{title}}",
 " entityType":" group",
 " i18n":" i18n/defaultGroupId.properties"
 },
 "有效载荷":{
 " viz":[{
 " id":" businessapp.app-0-557115673",
 " appId":" businessapp.app",
 " vizId":" appui5-displayToDynamic"
 },{
 " id":" appui5.appui5-1-1584057333925",
 " appId":" appui5.appui5",
 " vizId":" appui5-display"
 }]
 }
 }],
 "网站":[{
 " _version":" 3.0.0",
 "标识":{
 " id":" 3fd97db4-54d3-4f03-8a7c-422169659f3a-1584044420748",
 " entityType":"站点",
 " title":" Cloud Foundry上的SAP Fiori启动板站点",
 " description":"从SAP Web IDE部署的Cloud Foundry上的SAP Fiori启动板站点"
 },
 "有效载荷":{
 " config":{
 " ushellConfig":{
 "渲染器":{
 " fiori2":{
 " componentData":{
 " config":{
 "应用程序":{
 "贝壳之家":{}
 }
 }
 }
 }
 }
 }
 },
 " groupsOrder":[" defaultGroupId"],
 " sap.cloud.portal":{
 " config":{
 " theme.id":" sap_fiori_3",
 " theme.active":[" sap_fiori_3"," sap_belize_hcb"," sap_belize_hcw"]
 }
 }
 }
 }]
 }
 }
 

这是我的业务应用程序:

 {


 " _version":" 3.0.0",
 "标识":{
 " id":" businessapp.app",
 " entityType":" businessapp",
 " i18n":" i18n/businessApps.properties"
 },
 "有效载荷":{
 "可视化":{
 " appui5-displayToDynamic":{
 " vizType":" sap.ushell.CustomAppLauncher",
 " vizConfig":{
 " sap.app":{
 " title":" {{staticUrlTitle}}",
 " subTitle":" {{staticUrlSubTitle}}"
 },
 " sap.flp":{
 "目标":{
                            " type":" URL",
                             " url":" https://google.com"
                         }
 }
 }
 }
 }
 }
 } 

当我使用bussinessapp创建磁贴时,如果它正常工作,则使用静态类型的磁贴。

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

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


Hello SAP社区


我正在尝试使用Launchpad模块在Cloud Foundry中创建自定义图块,但是在部署时出现错误。


这是我的清单:

 {
 " _version":" 1.8.0",
 " sap.flp":{
       " type":" tile",
       " tileSize":" 1x1"
    },
    " ach":" CA-UI2-INT-FE",
 " sap.app":{
 " id":" appui5.appui5",
 " type":"应用程序",
 " i18n":" i18n/i18n.properties",
 " applicationVersion":{
 " version":" 1.0.0"
 },
 " title":" {{appTitle}}",
 " description":" {{appDescription}}",
 " sourceTemplate":{
 " id":" html5moduletemplates.basicSAPUI5ApplicationProjectModule",
 "版本":" 1.40.12"
 },
 " crossNavigation":{
 "入站":{
 " appui5-display":{
 "签名":{
 "参数":{},
 " additionalParameters":"允许"
 },
 " semanticObject":" appui5",
 " action":" display",
 标题:" titulo ma"
 }
 }
 }
 },
 " sap.ui":{
 " technology":" UI5",
 "图标":{
 " icon":" sap-icon://favorite",
 " favIcon":"",
 "电话": "",
 " phone @ 2":"",
 " tablet":"",
 " tablet @ 2":""
 },
 " deviceTypes":{
 "桌面":是的,
 "平板电脑":是的,
 "电话":正确
 },
 " supportedThemes":[" sap_hcb"," sap_bluecrystal"]
 },
 " sap.ui5":{
 " rootView":{
 " viewName":" appui5.appui5.view.View1",
 " type":" XML"
 },
 "依赖关系":{
 " minUI5Version":" 1.65.6",
 " libs":{
 " sap.ui.core":{},
 " sap.m":{},
 " sap.ui.layout":{},
 " sap.ushell":{},
 " sap.collaboration":{},
 " sap.ui.comp":{},
 " sap.uxap":{}
 }
 },
 " contentDensities":{
 "紧凑":是的,
 "舒适":是
 },
 "楷模": {
 " i18n":{
 " type":" sap.ui.model.resource.ResourceModel",
 "设置":{
 " bundleName":" appui5.appui5.i18n.i18n"
 }
 }
 },
 "资源":{
 " css":[{
 " uri":" css/style.css"
 }]
 },
 "路由":{
 " config":{
 " routerClass":" sap.m.routing.Router",
 " viewType":" XML",
 "异步":是的,
 " viewPath":" appui5.appui5.view",
 " controlAggregation":"页面",
 " controlId":" idAppControl",
 " clearControlAggregation":false
 },
 "路线":[{
 " name":" RouteView1",
 " pattern":" RouteView1",
 " target":[" TargetView1"]
 }],
 "目标":{
 " TargetView1":{
 " viewType":" XML",
 " transition":" slide",
 " clearControlAggregation":否,
 " viewName":" View1"
 }
 }
 }
 }
 }
 

这是我的CommonDataModel模块:

 {
 " _version":" 3.0.0",
 "标识":{
 " id":" b49e7de8-a998-4f8f-8d68-7fe41787f00f-1584044420748",
 " entityType":"捆绑"
 },
 "有效载荷":{
 "目录":[{
 " _version":" 3.0.0",
 "标识":{
 " id":" defaultCatalogId",
 " title":" {{title}}",
 " entityType":"目录",
 " i18n":" i18n/defaultCatalogId.properties"
 },
 "有效载荷":{
 " viz":[]
 }
 }],
 "组":[{
 " _version":" 3.0.0",
 "标识":{
 " id":" defaultGroupId",
 " title":" {{title}}",
 " entityType":" group",
 " i18n":" i18n/defaultGroupId.properties"
 },
 "有效载荷":{
 " viz":[{
 " id":" businessapp.app-0-557115673",
 " appId":" businessapp.app",
 " vizId":" appui5-displayToDynamic"
 },{
 " id":" appui5.appui5-1-1584057333925",
 " appId":" appui5.appui5",
 " vizId":" appui5-display"
 }]
 }
 }],
 "网站":[{
 " _version":" 3.0.0",
 "标识":{
 " id":" 3fd97db4-54d3-4f03-8a7c-422169659f3a-1584044420748",
 " entityType":"站点",
 " title":" Cloud Foundry上的SAP Fiori启动板站点",
 " description":"从SAP Web IDE部署的Cloud Foundry上的SAP Fiori启动板站点"
 },
 "有效载荷":{
 " config":{
 " ushellConfig":{
 "渲染器":{
 " fiori2":{
 " componentData":{
 " config":{
 "应用程序":{
 "贝壳之家":{}
 }
 }
 }
 }
 }
 }
 },
 " groupsOrder":[" defaultGroupId"],
 " sap.cloud.portal":{
 " config":{
 " theme.id":" sap_fiori_3",
 " theme.active":[" sap_fiori_3"," sap_belize_hcb"," sap_belize_hcw"]
 }
 }
 }
 }]
 }
 }
 

这是我的业务应用程序:

 {


 " _version":" 3.0.0",
 "标识":{
 " id":" businessapp.app",
 " entityType":" businessapp",
 " i18n":" i18n/businessApps.properties"
 },
 "有效载荷":{
 "可视化":{
 " appui5-displayToDynamic":{
 " vizType":" sap.ushell.CustomAppLauncher",
 " vizConfig":{
 " sap.app":{
 " title":" {{staticUrlTitle}}",
 " subTitle":" {{staticUrlSubTitle}}"
 },
 " sap.flp":{
 "目标":{
                            " type":" URL",
                             " url":" https://google.com"
                         }
 }
 }
 }
 }
 }
 } 

当我使用bussinessapp创建磁贴时,如果它正常工作,则使用静态类型的磁贴。

付费偷看设置
发送
1条回答
Climb_Ma
1楼-- · 2020-08-21 19:23

您好Bradguver,

感谢您在我有关该主题的最新博客中的评论:-)
https://blogs.sap.com/2020/03/23/custom-tiles-with-cloud-foundry-portal-cloud-platform /

这是我对您的示例的想法:

-瓦片清单似乎正常。
-在CommonDataModel.json文件中,您需要在有效负载.catalogs.payload.viz数组中输入以下代码:

 viz:[{
   " id":" businessapp.app",//目录/组中的appId
   " vizId":" appui5-displayToDynamic"//来自业务应用程序配置的可视化
 }] 

-在CDM文件中,可以删除图块的有效负载定义:payload.groups.payload.appui5.appui5-1-1584057333925

-在业务应用程序配置文件中,将vizType设置为自定义磁贴的ID。 就您而言,我猜是" appui5.appui5"

希望有帮助,欢呼

-史蒂芬

一周热门 更多>