cancel
Showing results for 
Search instead for 
Did you mean: 

OVSProvider and OVSDialog

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

former_member201361
Active Contributor
0 Kudos

Hi Joren,

Please check this article:

[http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/401975e3-e2ee-2b10-e191-a8140aabe9d6&overridelayout=true]

Using context, u can send the data to the employee component using OVSControl... for more info check the article.

Thanks and Regards

Former Member
0 Kudos

Hi,

i've already read that article, but i dont think it's a generic way. With that approach, i'll have to implement a OVSDialog class for every searchhelp that i want to define. In the example in the help.sap.com for the nwce711, they dont map the context in the exit() of the OVSDialog class either...

So i'm still looking for a better approach.

Kind regards,

J.

Former Member
0 Kudos

Any help will be appreciated.

Noone else with a generic implementation for OVSProvider and OVSDialog?

Kind regards,

J.

Answers (1)

Answers (1)

Former Member
0 Kudos

Closed, not answered