SAP CRM WebClient UI ON_NEW_FOCUS的用途
ROOT ------------------------------------ Product ID
PRODshortText ------------------------------------ Product Description
Genil Model hierarchy UI Field
一般是用在一个页面上有的field绑在parent node上,有的field绑在child node上。
Publish current和子节点的context node的NEW_FOCUS一般是成对使用的
Collection wrapper里面当前focus的root object 发生变化(通过publish_current抛event),那么dependent object也要跟着变(通过event handler ON_NEW_FOCUS处理)
在WebIDE的Preferences里,启用SAP WebIDE扩展:SAP Cloud Platform Business Application development tools:
设置该WebIDE连接的SAP云平台CloudFoundry环境:
新建一个项目,类型选择SAP Cloud Platform Business Application:
该srv实现类型选择为Java,package设置为my.app, 数据库技术选择SAP HANA database:
自动生成项目文件,用MTA Editor打开yaml文件:
看到了db和srv两个模块:
在db模块的data-model.cds里维护数据库表的结构:
点击build之后,
如果遇到下面的错误,检查WebIDE连接的CloudFoundry环境,是否分配了hdi-shared plan.
6:21:34 PM (Provision) Could not create the ‘Products-Products-db-hdi-container8HPfzrS/PBqVvnsD’ instance of the ‘hana’ service type for the ‘Products-db-hdi-container’ resource. No hdi-shared plan available found in this space.
6:21:34 PM (Provision) Provision fail since one of the provision tasks finished with error.
6:21:34 PM (Executor) The “task for hdb build” provision finished with an error: Provision failed. See console for more details.
6:21:34 PM (HDB) Build of /Products/db failed due to Provision failed. See console for more details…
在WebIDE里将SAP HANA Database Explorer启用:
打开database Explorer视图:
添加一个数据库:
数据库实例作为HDI容器被添加:
When the database was created for you in your trial subaccount, it was created as an HANA Deployment Infrastructure (HDI) container, within the context of the hdi-shared plan for the HANA trial service in the SAP Cloud Platform’s Cloud Foundry (CF) environment.
在Database Explorer里,双击Table,查看数据库表:
上图看到的数据库表MY_APP_PRODUCTS的结构,和CAP项目里db module里data-model.cds定义的结构一致:
这里可以给数据库表里添加新的记录:
然后使用OData将刚刚插入的数据取出:
也可以使用SQL语句,批量删除表里的数据:
要获取更多Jerry的原创文章,请关注公众号"汪子熙":
在WebIDE里将SAP HANA Database Explorer启用:
打开database Explorer视图:
添加一个数据库:
数据库实例作为HDI容器被添加:
When the database was created for you in your trial subaccount, it was created as an HANA Deployment Infrastructure (HDI) container, within the context of the hdi-shared plan for the HANA trial service in the SAP Cloud Platform’s Cloud Foundry (CF) environment.
在Database Explorer里,双击Table,查看数据库表:
上图看到的数据库表MY_APP_PRODUCTS的结构,和CAP项目里db module里data-model.cds定义的结构一致:
这里可以给数据库表里添加新的记录:
然后使用OData将刚刚插入的数据取出:
也可以使用SQL语句,批量删除表里的数据:
- 点赞
- 收藏
- 关注作者
评论(0)