of 17
8/8/2019 Multiple OVS
1/17
8/8/2019 Multiple OVS
2/17
8/8/2019 Multiple OVS
3/17
8/8/2019 Multiple OVS
4/17
Creating Your Own Helper UI Dialog in Webdynpro for Java CE7.1 Ehp1
5. The properties of the EmployeeResult Node are shown below. . It consists of two attributes ecode and name of type String .
6. The properties of MyDialog attribute are shown below. IWDOVSDialog implementation creates andcloses the interface window of the OvsComp which we will be covered in the next section of thisdocument. The searchString is of type String . It holds the search criteria entered by the user.
7. Create the below shown layout in the OvsCompView. Do the necessary mappings between viewcontroller and component controller.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 2009 SAP AG
8/8/2019 Multiple OVS
5/17
Creating Your Own Helper UI Dialog in Webdynpro for Java CE7.1 Ehp1
8. Create the actions Go and Search and assign them to the buttons Search and Go respectively.
9. Create method getSerachByString with parameter searchString and another method init with theparameters ovsControl and ovsDialog in the component controller as shown below
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 2009 SAP AG
8/8/2019 Multiple OVS
6/17
Creating Your Own Helper UI Dialog in Webdynpro for Java CE7.1 Ehp1
10. Paste the below code in the init method.
11. getSearchByString method is called when the user enters the search criteria and presses thesearch button. Write the below code in the method. This method takes the Search criteria given bythe user as input and returns the matching employees list. For demo purpose dummy data has beengiven. In this method we need to execute the model.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 2009 SAP AG
8/8/2019 Multiple OVS
7/17
Creating Your Own Helper UI Dialog in Webdynpro for Java CE7.1 Ehp1
12. In the onActionSearch event handler call the getSearchByString method of the componentcontroller
13. Write the below code in the onActionGo event handler. This is called when the user clicks on the gobutton after selecting the required employees from the filtered list.
14. In the interface controller OvsCompInterface create the node EmployeeResult .This can be doneby copying the node which is already present in the Component Controller and pasting it in theInterface controller.Creation of this node at interface level is necessary because the selectedemployees list has to be passed to the component which declares the usage of this component.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 2009 SAP AG
8/8/2019 Multiple OVS
8/17
Creating Your Own Helper UI Dialog in Webdynpro for Java CE7.1 Ehp1
Creating the component that triggers the OVS Search query15. Now we need to create the component which uses the above created component and implements
the IWDOVSProvider and IWDOVSDialog .Create a component ovshelpertest as shown in thebelow figure
16. Declare the usage of the OvsComp with the name OVSCompUsage
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 2009 SAP AG
8/8/2019 Multiple OVS
9/17
8/8/2019 Multiple OVS
10/17
Creating Your Own Helper UI Dialog in Webdynpro for Java CE7.1 Ehp1
20. The properties of the EmployeeResult_1 Node are shown below. This node consists of twoattributes ecode and name of type String .
21. Do the necessary mappings between the view controller and component controller and design thebelow shown layout in the view OvsTestCompView
22. Write the below code in the //@@begin others and //@@end
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 2009 SAP AG
8/8/2019 Multiple OVS
11/17
Creating Your Own Helper UI Dialog in Webdynpro for Java CE7.1 Ehp1
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 2009 SAP AG
8/8/2019 Multiple OVS
12/17
8/8/2019 Multiple OVS
13/17
Creating Your Own Helper UI Dialog in Webdynpro for Java CE7.1 Ehp1
Defining OVS Startup attributes24. Next step is to define the OVS Startup attributes. Write the below code in the wdDoInit() method of
the OvsTestComp
Output
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 2009 SAP AG
8/8/2019 Multiple OVS
14/17
Creating Your Own Helper UI Dialog in Webdynpro for Java CE7.1 Ehp1
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 2009 SAP AG
8/8/2019 Multiple OVS
15/17
Creating Your Own Helper UI Dialog in Webdynpro for Java CE7.1 Ehp1
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 2009 SAP AG
8/8/2019 Multiple OVS
16/17
Creating Your Own Helper UI Dialog in Webdynpro for Java CE7.1 Ehp1
Related Content http://help.sap.com/saphelp_nwce711/helpdata/en/44/d958673ef05f4de10000000a11466f/frame
set.htm
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0c6132f-4ea3-2b10-4d8f-e68d2e96113d
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cf40cf90-0201-0010-4a85-
e5a207b900d8 For more information, visit the Web Dynpro Java homepage .
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 2009 SAP AG
http://help.sap.com/saphelp_nwce711/helpdata/en/44/d958673ef05f4de10000000a11466f/frameset.htmhttp://help.sap.com/saphelp_nwce711/helpdata/en/44/d958673ef05f4de10000000a11466f/frameset.htmhttp://help.sap.com/saphelp_nwce711/helpdata/en/44/d958673ef05f4de10000000a11466f/frameset.htmhttps://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0c6132f-4ea3-2b10-4d8f-e68d2e96113dhttps://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0c6132f-4ea3-2b10-4d8f-e68d2e96113dhttps://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0c6132f-4ea3-2b10-4d8f-e68d2e96113dhttps://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cf40cf90-0201-0010-4a85-e5a207b900d8https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cf40cf90-0201-0010-4a85-e5a207b900d8https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cf40cf90-0201-0010-4a85-e5a207b900d8https://www.sdn.sap.com/irj/sdn/nw-wdjavahttps://www.sdn.sap.com/irj/sdn/nw-wdjavahttps://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cf40cf90-0201-0010-4a85-e5a207b900d8https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cf40cf90-0201-0010-4a85-e5a207b900d8https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0c6132f-4ea3-2b10-4d8f-e68d2e96113dhttps://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0c6132f-4ea3-2b10-4d8f-e68d2e96113dhttp://help.sap.com/saphelp_nwce711/helpdata/en/44/d958673ef05f4de10000000a11466f/frameset.htmhttp://help.sap.com/saphelp_nwce711/helpdata/en/44/d958673ef05f4de10000000a11466f/frameset.htm8/8/2019 Multiple OVS
17/17
Creating Your Own Helper UI Dialog in Webdynpro for Java CE7.1 Ehp1
Disclaimer and Liability NoticeThis document may discuss sample coding or other information that does not include SAP official interfaces and therefore is notsupported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade.
SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document,and anyone using these methods does so at his/her own risk.
SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article orcode sample, including any liability resulting from incompatibility between the content within this document and the materials andservices offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of thisdocument.