前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >使用SAP Cloud Application Studio实现OVS(Object Value Selector)

使用SAP Cloud Application Studio实现OVS(Object Value Selector)

作者头像
Jerry Wang
发布2020-08-28 10:05:59
5650
发布2020-08-28 10:05:59
举报

(1) Create a new OVS based on Customer BO:

Remove the automatically generated query node in controller tab. Create a new SADL query, and select InternalID as query parameter.

Choose another field BusinessPartnerFormattedName as search parameter as well. Select “Basic Find” checkbox to enable free text search.

Now you should see these three fields in data tab which will be used to bind to search parameter field in UI later.

Manually specify this new created SADL query in all automatically generated event handler. By default those event handler uses the query node automatically created during the OVS creation, this is the reason why you have to replace with your own SADL query instead.

(2) In Data tab, bind these two fields accordingly. Root/Items/InternalID will be passed back to OVS consumer.

Bind these two fields to Outport parameter as displayed below.

(3) Since the work in Data tab and controller tab are done, the left task is to draw search parameter field in Designer tab.

Drag two Input field from Toolbox and bind them to the query parameter accordingly:

Finish default set mapping and FindForm modelling:

(4) All development relevant on OVS component itself is done. Now it is ready to consume it in another UI component. This is my BO which contains a field pointing to a reference customer ID:

Bind this BO field in UI and specify the UI field with DisplayType = ObjectValueSelector.

Assign the created OVS component to this field:

Test in runtime

Click F4 to open value help:

Select a given item in search result and the customer ID will be passed back to consumer UI:

You can also use search field to search by Customer Name:

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2020-08-27 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Test in runtime
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档