on 11-05-2009 12:31 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Closed, not answered
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.