14.01.2020 Views

ABAP_to_the_Future

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Building the WDA Application 12.2

that looks like a piece of paper. If you click that icon, then a pop-up box appears

in which you can give your action a name (Figure 12.12). This is not that radically

different from adding an icon to the ap plication toolbar in the traditional DYN-

PRO Screen Painter.

Figure 12.12 Defining an Action

The first thing you do when adding a buton in the old DYNPRO Screen Painter is

give it an icon. Naturally, you can do that as well here by via a dropdown on the

Image Source property field. You also want to fill in the text and tooltip fields, in

order to make the button a proper button that can hold its head up high in polite

society. You can choose a standard SAP GUI icon, choose one from the new list

that WDA gives you, or add your own.

In traditional DYNPRO, you then add some code to your USER COMMAND routine.

Here, a method to handle your newly created action is automatically created for

you inside the view. You’ll code this a bit later, but what you’ll be doing is telling

the controller that the butto n has been clicked. Anything else is outside of the

525

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

Saved successfully!

Ooh no, something went wrong!