I have created a new BO with three elements (ID, Name, FilterCriteria).
For this BO I created a Query (QueryByElements):
- Selection: ID, Name, FilterCriteria
- Basic Find: ID, Name
- Result: ID, Name, Filtercriteria
After this I created an OVS for this BO.
In DataModel Tab I bound the Items Node of the OVS to the Query Node of the BO, OVS:ObjectID -> Query:ID, OVS:ObjectName -> Query:Name and OVS:FilterCriteria -> Query:FilterCriteria.
Next i created a structure in the OVS with the data fields: ID, Name, FilterCriteria and SerchText.
In the Controller Tab I bound the ValueHelpQuery of the OVS to the (new) Query of the BO with this parameters:
- ID : /Root/Structure/ID
- Name : /Root/Structure/Name
- SearchText : /Root/Structure/SearchText
- FilterCriteria : /Root/Structure/FilterCriteria
Inport:
- ID : /Root/Structure/ID
- Name : /Root/Structure/Name
- SearchText : /Root/Structure/SearchText
- FilterCriteria : /Root/Structure/FilterCriteria
- + standard parameters like ParentComponent...
Outport:
- ObjectId : /Root/Items/ObjectId
- ObjectName : /Root/Items/ObjectName
With this configuration I get a correct value suggestion when I am typing in the field, and when i select a value from the drop down list the value is transferred to the field.
But, if I open the screen:
- the search is not working, I always see all values.
- if I select a row, the value is not transferred to the field. the field is empty.
I tried it without the FilterCriteria in the parameters and inport, but id shown the same behavior...
Do you have any idea to solve this problem?
Thanks,
Eduard