Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
former_member207719
Participant


Hi All,

 

As we see all the public OVS are properly configured for intellisense/autocomplete.

Some times, begineers like me having difficult time to configure OVS. This document helps to configure an OVS properly as in public OVS.

 

Steps to configure OVS for Intellisense/Auto Complete


 

  1. Delete default query

  2. Add a query (Query Builder or SADL Query)

  3. Configure Handler (optional)

  4. Configure Inport

  5. Configure Outport

  6. Configure Find Form


 

Scenario : To list all the available book in the BookSelf(BO) and Book Name is OVS field.

 

Delete default query


 

In Controller tab, delete the query under Queries folder, which is created by default when the OVS is created. Find this nice document (Some Thoughts about Queries) by Horst, will get to know the reason to delete the default query. While deleting query you are asked to delete the existing SearchParameters, you can overwrite the existing binding of SearchParameters or recreate it.

 





 

 

Add a Query


 

A query is needed to process the autocomplete. I provided both the query, you can choose any one query and proceed below.


 

a.Query Builder


 

Create a query builder as show below.

 

Add New Item and Select Query.





 

In the Define Query Parameter, under Basic Find column select the fields which you want to do auto complete, in my case I select Book Name and ID



Once you finish active the BO so that it will activate the query. Now get back to OVS UI,

 

In Datamodel tab, bind your structure and SearchParameters to the query, make sure all your elements are bound to the elements under the query.

 



 

In Controller tab under Queries folder bind your query to QueryByElements of QueryBuilder. bring down the SearchText under QueryByElements to  Selected Query Parameters table, SearchText is the key thing in autocomplete.

 



 

For more details of query creation : Refer 1605 sdk documentation : 8.3.3.4 Create a Query

 

Then proceed to the Handler Configuration

 

b.SADL based query


 

Create a SADL query as shown below.

 



Then proceed to the Handler Configuration

 

Configure Handler


 

After configuring query, select the default set and in the right hand corner you can find the set OnSelect to GetValueHelpHandler under Events



 

GetValueHelpHandler


Set Query Name and BO Model



 

RetrieveValueHelpHandler


Set Query Name


SetValueHelpHandler


Set Query Name and BO Model



 

Configure Inport


 

OVSValueSelectorInPort


In parameterBinding column, select the SearchText while we created our query.

 


OVSValueSelectorOutPort

In parameterBinding column, select the ID and Name which you want to show in OVS, in my case I want to show the BookID and BookName

 



 

Configure Find Form


 

Lets complete final step, map the SearchText to Find Form

 

Select designer tab, in the Properties explorer under Design, Select the Find Forms and select the SearchTextBinding and bind it to the SearchText as we created during query.



 

In the DefaultSet Mapping make sure your DefaultSet uses FindFomPane which we created just before.

 



 

Thats all about the configurations. Now get into to the screen where you want to see the OVS, in my case opened the QAF and selected the Book field and assigned the OVS component ( Refer:  9.4.3.18 Configure an Object Value Selector in 1605 sdk documentation).

 



As you can see, when I type 'the' it shows all the book name that begins with 'the'.

 

****************************************************************************************************************************************************

 

Regards,

Senthilmurugan

7 Comments
Labels in this area