Dear Community,
Introduction:
This blog intends to teach how to create a dependent object value selector from other object value selector.
Stage
Two custom OVS have been created with related fields between it inside custom BO.
For example, the Company "X" may belong to many Provider "Y".
Requirement: It is necessary that when selecting the Company OVS and choosing a item, and then selecting the provider OVS , it appears in the filter of the second OVS the selected company.
Steps:
1- Send the ID of the selected company as a search parameter to the OVS Provider, for that, we create, in the entity in which the action of sending the parameter is executed, in this case Custom BO, an OutPort with the desired parameter
submit.
2- An event is created that activates that Outport.
3- We assign the event to the button of the second OVS by which we want it to filter with the parameter we send it.
4-
On the other hand, in the OVS that is going to receive the parameter by which it is going to filter, you need to receive the parameter in the import, so you have to add that parameter to the Impor in the Controller tab.
5- Finally, when the OVS is assigned to our field, it is necessary to pass by parameter the value by which they are going to filter.
Conclusion:
Follow the steps above to obtain a dependency between two OVS, that is, when you select an item in the first OVS, when you open the second OVS, it will automatically filter by the value selected in the first OVS. I hope you find it useful.
Best Regards,
Lecsy