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.

/wp-content/uploads/2016/07/4_994045.png

/wp-content/uploads/2016/07/6_994193.jpg

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.

/wp-content/uploads/2016/07/17_994077.jpg

/wp-content/uploads/2016/07/18_994078.jpg/wp-content/uploads/2016/07/19_994091.jpg

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

/wp-content/uploads/2016/07/20_994093.jpg/wp-content/uploads/2016/07/21_994094.jpg

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

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

query 1.jpg

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.

/wp-content/uploads/2016/07/23_994115.jpg

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.

/wp-content/uploads/2016/07/5_994135.jpg/wp-content/uploads/2016/07/7_994139.jpg

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

/wp-content/uploads/2016/07/16_994140.jpg

GetValueHelpHandler

Set Query Name and BO Model

/wp-content/uploads/2016/07/9_994141.jpg

RetrieveValueHelpHandler

Set Query Name

/wp-content/uploads/2016/07/10_994154.jpg

SetValueHelpHandler

Set Query Name and BO Model

/wp-content/uploads/2016/07/11_994155.jpg

Configure Inport

OVSValueSelectorInPort

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

/wp-content/uploads/2016/07/12_994156.jpg

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

/wp-content/uploads/2016/07/13_994160.jpg

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.

/wp-content/uploads/2016/07/14_994161.jpg

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

/wp-content/uploads/2016/07/15_994162.jpg

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).

/wp-content/uploads/2016/07/final_994166.jpg

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

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

Regards,

Senthilmurugan

To report this post you need to login first.

4 Comments

You must be Logged on to comment or reply to a post.

  1. Tiago Almeida

    This is a good guide. Thanks for this.

    Adding to this: The SADL query did not work for me. They seem to have a bug filtering by Indicator fields (Booleans), they just ignore whatever you define on the parameters of the query. If you have this issue try creating an SDK query (the first method defined above).

    Cheers,

    (1) 

Leave a Reply