Zugang für Kunden
Buchtipp
"Praxisbuch Web Dynpro for ABAP" ist der schnellste und einfachste Weg zum Einstieg in SAP's neuer Strategie zur kom-
ponentenbasierten Softwareent-
wicklung. Stichhaltige Erläu-
terungen zu den Grundkonzep-
ten und viele Beispiele machen dieses Buch unverzichtbar für die Entwicklung von Web Dynpro Anwendungen.
Jetzt bei SAP-Press bestellen!
Aktuelle Beiträge
Lesen Sie die Veröffentlichung des SAP Professional Journal im SAP Developer Network (freier Zugang).
Get started developing Web-native . . .
Anbei finden Sie Links zu aktuellen Forenthemen mit unserer Beteiligung und Blogs von uns im SDN.
Web Dynpro - Frage der Woche
Question:
How can I make an image or icon clickable/selectable?
Answer:
Use the UI element LinkToAction. For the property "imageSource" specify the image or icon that you want to display. Leave the property "text" empty. The action is defined in the usual way assigning its name to the property "onAction".
Question:
The personalization feature is confusing the users of a Web Dynpro application. How can I switch it off?
Answer:
In your Web Dynpro application set parameter WDDISABLEUSERPERSONALIZATION to the value 'X'.
Question:
How can I remove the margins of the window (how to get a paddless window)?
Answer:
Put the following coding in the event-handler method of the default inbound plug of the startup window:
data:
lr_window_cntr type ref to if_wd_window_controller,
lr_window_info type ref to if_wd_rr_window.
if paddless is not initial.
lr_window_cntr ?= wd_this->wd_get_api( ).
lr_window_info = lr_window_cntr->get_window_info( ).
lr_window_info->set_custom_padding( abap_true ).
endif.
Question:
How can I switch from paginator to scrollbar when using the table view element?
Answer:
In your Web Dynpro application set parameter WDTABLENAVIGATION to the value SCROLLBAR. For this to work SP11 is required.
Question:
How can I add buttons to the bottom pane of a popup window?
Answer:
It is not possible to define and add your own buttons. However, you can modify the text displayed on the buttons provided by the framework. Use parameter button_text in method subscribe_to_button_event() of the window object in order to modify the text.
Question:
How can I start a Web Dynpro application in administration mode?
Answer:
Add parameter sap-config-mode=X to the URL of your WD2A application.Use <Ctrl>-key and mouse-right-click to open a context menu where you can select settings. This will start configuration editor for all UI elements displayed on the screen.
Question:
How can I get the name of the context attribute to which an UI element is bound?
Answer:
You can get the path to the context attribute and the UI element reference by calling method BOUND_VALUE of the UI element. The last part of the path is the attribute name. Each UI element class has methods BOUND_* for all bindable properties.
Question:
Which UI elements allow the display of recursive data?
Answer:
- UI-element Tree
- UI-element Table
- UI-element ContextualNavigationPanel
Question:
In which case shall I prefer controller attributes over context attributes?
Answer:
The context requires ABAP DDIC types. Only in contoller attributes you can specify class types.
Question:
How can I read all parameters passed to a web dynpro application?
Answer:
DATA: lt_url_parameters TYPE tihttpnvp.
wdevent->get_data(
EXPORTING name = if_wd_application=>all_url_parameters
IMPORTING value = lt_url_parameters ).
Question:
Does the WD framework provide a way to check whether mandatory fields contain a value?
Answer:
Upgrading to SP09 you can use the method cl_wd_dynamic_tool=>check_mandatory_attributes by passing a list of nodes, elements and attributes.
