14.01.2020 Views

ABAP_to_the_Future

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

12

Web Dynpro ABAP and Floorplan Manager

Figure 12.11 WDA Version of the Screen Painter

First of all, there is still a lot of battl eship gray, a color that SAP developers find

exciting. Just like the DYNPRO Screen Painter, there are lots of UI element things

in a list to the left of the main screen. In the traditional Screen Painter, the list of

properties of the current field floats in its own pop-up box; here, it’s on the righthand-side

of the screen. There are far more options in the WDA equivalent.

Defining the Button that Triggers the Search

You need a button to trigger the database selection once the user has entered his

requirements. Your cursor is still on the ROOTUIELEMENTCONTAINER, so right-click

again; this time, choose Insert Element. A tiny pop-up box appears with two

fields: what you’re going to call the new element (in this case, FIND_MONSTERS)

and what sort of element this is (when you use the (F4) search, you can see that

there are many things you can choose; this time, choose Button).

Now, we all love pressing buttons, but a button that doesn’t do anything is no

sort of button at all. As it turns out, your newly created button element has a

property near the bottom of its list of properties called onAction, next to an icon

524

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!