Skip to Content
0
Former Member
Nov 05, 2009 at 12:31 PM

OVSProvider and OVSDialog

38 Views

Dear all,

I want to implement a quite generic OVSProvider and OVSDialog class that i can you for my custom search helps. I have a working example now. I used the implementation SAP suggests here (http://help.sap.com/saphelp_nwce711/helpdata/en/48/1f9a51ea6a4e70e10000000a42189c/frameset.htm).

I hava Employee component with a view for searching employees, and a rootcomponent where i've attached this to an inputfield. What is the best way to pass data from to the root component? At first, i tried with passing it through context on the interface controller of my EmployeeComponent. But since i delete the component usage in the exit() of the IWDOVSDialog implementation, this data is not passed to my root component. When i do not delete the component usage, i can use the data in my root component through the interface of the used employee component.

Another option i tried was raising an event employeeSelected when i select the employee i want and then close the window. The rootcomponent can subscribe to the event and use the selected employee.

But now i'm wondering, what is the best way to pass data from the value selector to the component/screen that wants to use the data? (what is the best practice for custom implementation of IWDOVSDialog and IWDOVSProvider?

Kind regards,

J.