on ‎2008 Aug 27 12:50 PM
Hi All.
I know we CANNOT call javascript in Web dynpro abap.
I also know we can call a URL via calling external window and passing the URL.
We needed a functionality which requires a small piece of javascript code to be executed on click of any button. I have placed a javascript code in the portal server.
I was wondering if there could be a way to call a URL WITHOUT the external window - this would mean that I call my javascript URL whenever I want.
Thanks in adv for your patience.
Request clarification before answering.
Hi Aishi Sharma,
if your WD app is running in a portal, maybe raising a portal event in the handler method of the WD button is an option. The receiver might well be a hidden iView. Just an idea.
Silke
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aishi,
a portal event is raised in WDA like this:
DATA lr_api_component TYPE REF TO if_wd_component.
DATA lr_portal_manager TYPE REF TO if_wd_portal_integration.
DATA lv_event_parameter TYPE string.
lr_api_component = wd_this->wd_get_api( ).
lr_portal_manager = lr_api_component->get_portal_manager( ).
IF lr_portal_manager IS NOT BOUND.
RETURN.
ENDIF.
lv_event_parameter = 'somethingThatMakesSenseForTheEventReceiver'.
lr_portal_manager->fire(
portal_event_namespace = 'com.yournamesapce.etc.etc'
portal_event_name = 'yourEventName'
portal_event_parameter = lv_event_parameter
).The Link provided by Abhimanyu will provide you with the big picture. Have fun.
Silke
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.