!--a11y-->
Creating a Dialog BoxYou want an address book to appear in a dialog box when To is chosen. In this address book, you can select an e-mail address. When you choose Take this address, the dialog box closes and the e-mail address is written in the recipient input field.

The address book is embedded in a separate Web Dynpro window, which is created when the To pushbutton is chosen. To inform the EmailView that an address has been selected, the component controller is used to trigger an event to EmailView, which then closes the AddressbookWindow.

The procedure for creating this dialog box is divided into the following steps:
· Create and implement the Web Dynpro window for the address book
¡ Create the Web Dynpro window
¡ Create and embed the Web Dynpro view
¡ Create the context for the address book
¡ Design the layout of the AddressbookView
¡ Implement the controller of the AddressbookView
· Define the interaction of the two Web Dynpro windows EmailWindow and AddressbookWindow
¡ Enhance the context of the EmailView
¡ Create onActionShowAddressbookPopup
¡ Create the event and event handler
¡ Create and implement the action AddressSelected
¡ Implement the event handler
Next
step:Creating and Implementing the Web Dynpro Window for the Address Book
