Skip to Content
Author's profile photo Senthil Murugan

Configure OVS for intellisense

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 structure 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

Assigned Tags

      7 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Tiago Almeida
      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,

      Author's profile photo Pranav Bhardwaj
      Pranav Bhardwaj

      HI Senthil ,

       

      While creating a SADL Query ,you have used parent Component and parent path ,but in my case there is no such data.What should I give?

      Author's profile photo Senthil Murugan
      Senthil Murugan
      Blog Post Author

      Hi Pranav,

      If you don't have parent component, no problem ignore it. Search text, inport and outport configuration are the key things.

       

      Author's profile photo Pranav Bhardwaj
      Pranav Bhardwaj

      Ok..Thanks.

      Author's profile photo Erhan Tamer
      Erhan Tamer

      Hi my friend,

       

      thank you very much for this. Sadly this does not work by now. I do miss anything, but what.

       

      You did write :

      "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." ==> But in the screenshot you do connect "Items" with the query "Intelisense" , an not the root. What is right?

       

      On the other Hand there are sometimes 3 Elements under your SearchParameters Structure, and sometime it is just the Search Parameter. What is right?

       

      I still get the eror "Outport of the ovs component is not configured right".

       

      Can you help?

       

      Thanks in advance

       

      Regards

       

      Erhan

      Author's profile photo Senthil Murugan
      Senthil Murugan
      Blog Post Author

      Sorry for the inconvenience Erhan,

      “In Datamodel tab, bind your root to the query.......

      I meant the prime data structure which is bound to the query.

      Here I used the structure ‘Items’ mapped to the query. And the fields which are mapped under the Items are used in the UI as well as outport.

      Now we will get to the elements under Search parameters

      While creating a query, you would have selected some elements for ‘Basic Find’ (whatever you type in the SearchText box it will be looked upon the elements which are checked under Basic Find).

      In my case. book id and book name. Those elements are created automatically under search parameters if SADL query is used or can be brought manually if query builder is used.

      And the elements which I used the parameter binding of outport is the one which is checked under the Basic Find option of the query. One can use those elements as filter elements in the advanced search as well.

      Regards,

      Senthil

      Author's profile photo Meera K
      Meera K

      HI Senthil,

       

      Thanks for this. As i'm a beginner, i'm not sure whether we can add more fields to type ahead. For eg, besides ID and Name, can we add Book description and few more fields as well?