SAP云平台上的Fiori Launchpad tile数据是如何从后台取出来的
After I log on HCP via my own user, I could see many tiles:
https://fiorilaunchpad-xe84733bd.dispatcher.neo.ondemand.com/sap/hana/uis/clients/ushell-app/shells/fiori/FioriLaunchpad.html
I am very curious how and where this tile information is retrieved from HANA cloud.
Here below is my research result.
The tile information is fetched via restful service observed in network tab:
It is a json stream, use list a small part of it here:
{
"ID": "70c4b7f1-5579-4517-bc09-e7231f5add96-1426085327112",
"packageID": "",
"objectName": "",
"type": "chips.tiles.applauncherdynamic.DynamicTile",
"templateProperties": [
{
"key": "navigation_target_url",
"value": "#flp-runApp?html5App=cuscrmopportunity&SAPUI5.Component=cus.crm.opportunity&url=/"
},
{
"key": "formFactor",
"value": "{\"desktop\":true,\"tablet\":true,\"phone\":true}"
},
{
"key": "service_url",
"value": "/sap/opu/odata/sap/CRM_OPPORTUNITY/Opportunities/$count"
},
{
"key": "sap.hana.uis.flp.app.intentSemanticObject",
"value": ""
},
{
"key": "sap.hana.uis.flp.app.intentAction",
"value": ""
},
{
"key": "navigation_component_url",
"value": "/"
},
{
"key": "service_refresh_interval",
"value": "300"
},
{
"key": "navigation_component_name",
"value": "cus.crm.opportunity"
},
{
"key": "allow_unknown_parameters",
"value": "true"
},
{
"key": "tile_size",
"value": "1x1"
},
{
"key": "html5_application_name",
"value": "cuscrmopportunity"
},
{
"key": "sap.hana.uis.flp.app.type",
"value": "SAP_UI5_Component"
},
{
"key": "display_icon_url",
"value": "sap-icon://Fiori2/F0012"
},
{
"key": "display_title_text",
"value": "My Opportunities"
}
]
},
The restful service is implemented via consumption_service, whose source code could be found in HANA studio.
The call will delegate to FIORI_DAO:
FIORI_DAO is a subclass of WORKSPACE_DAO:
And workspace DAO just issue the query to HANA database via call getResultSet():
Finally the HANA procedure GET_APPSITE will be called:
Inside the procedure we can know the tile information in HANA HCP is retrieved based on the union of the two HANA tables below:
要获取更多Jerry的原创文章,请关注公众号"汪子熙":
相关文章
- SAP UI5 Fiori 应用在启动时向 ABAP 后台发起的 OData 请求序列的顺序和作用分析
- 如何找到SAP Fiori 应用里cache-control header是从后台何处设置的
- SAP UI5 Gateway后台ETAG校验逻辑
- 如何自行查找出 SAP ABAP 标准的 OData 服务返回数据的后台数据库表和表字段名称试读版
- SAP Cloud for Customer页面根据后台数据响应的刷新原理介绍
- SAP CRM WebClient UI如何将后台存储的timestamp时间戳转换成本地时间
- SAP CRM OData multiple origin Composition的测试
- 如何找到 SAP Fiori OData 服务实现的具体 backend 后台系统
- SAP Spartacus配置后台Commerce Cloud的位置
- 给硬件工程师介绍SAP Cloud for Customer
- SAP Spartacus 的页面模型在SAP 电商云后台WCMS里的模型
- SAP CRM Fiori Report paramter and filter source
- SAP CRM Fiori My Task后台实现的性能优化前后数据比较
- SAP CRM right dimension attribute后台存储
- SAP OData CSRF token的后台验证源代码
- 如何调整SAP HANA studio里的字体大小
- Trial accounts of SAP Cloud Platform do not provide an Identity Authentication tenant
- 如何根据 SAP Fiori UI 界面上的错误消息,找到后台 ABAP 对应的消息 ID 试读版
- 使用SAP portal service创建Fiori Launchpad
- 如何找出 SAP Fiori Launchpad 里点击 tile 之后,读取业务数据调用的是哪个 SAP 后台系统的 OData 服务试读版