Skip to Content
Author's profile photo Jerry Wang

Step by step to create Object Value Selector in Cloud Application Studio

You might be interested about how to build Value Help in other SAP UI technology as well:

My series of Cloud Application Studio Blogs

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:

Assigned Tags

      6 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Gaurav Prasad
      Gaurav Prasad

      Hello Jerry ,

      Thank you for the blog .It really helped a lot to built an Object Value Search from scratch.

      Best Regards

      Gaurav Prasad

      Author's profile photo Former Member
      Former Member

      Hi Jerry,

      Thank you for the informative post.
      I have one question for you.
      Is there any way to trigger an action when i Click on the OVS square on runtime.

      Regards,
      Akash

      Author's profile photo Benny Huang
      Benny Huang

      Hi Jerry,

      I do as your step, now I have an issue, when I enter in the field, it is drop list, it is blank.

      which step I miss? Thanks a lot.

      Benny Huang

      Author's profile photo Javier Almillátegui
      Javier Almillátegui

      Hi Jerry,

       

      Could I create an OVS that takes an input from the screen where the ovs is deployed? My current

      Requirement is that for x supplier I need to display the addresses registered in the supplier master data and select one of them.

       

      Best,

       

      Javier

      Author's profile photo Rathika V
      Rathika V

      Hi Jerry,

      Very useful blog. Did you manage to bring

      • 'Related To'
      • 'Relationship Role' based on Accounts Relationships node

      in Advanced Search similar to standard Accounts OVS? If so, kindly share the steps.

      Thanks,

      Rathika

      Author's profile photo Mohammad iqbal Siddiqui
      Mohammad iqbal Siddiqui

      Hey,

       

      I have follow the same approach. Created the SADL Query. We want external ID as a output but everytime getting the internal id as output.

      For us: InternalId, externalid, Name (These three parameter will shown on ovs . This ovs is attached to the custom field , and we required extrnalid as a output.)

      Br,

      Iqbal