on 05-22-2014 2:04 PM
At our portal logon page we have an option to reset your password. We use Web Dynpro ABAP for this screen. When the cancel button is pressed we want to direct the user back to the portal logon page again. I'm using the following method call attached to the button:
CALL METHOD lr_port_manager->fire
EXPORTING
portal_event_namespace = 'urn:com.sapportals:navigation'
portal_event_name = 'historyNavigate'
portal_event_parameter = '-1'.
This does not work. The event is raised but we stay on the same page. What am I doing wrong?
Hi Malcolm,
That is because the event triggered is a Portal Event and it only works when your Web Dynpro ABAP application is called inside portal (as an embedded iView).
One way to redirect user to portal logon page when user clicks on Cancel button is to use Exit Plug. General steps are as below:
- Create an Exit plug in the WD Window and select it as Interface method with parameter URL of type String
- Make a Component Use of the Window Controller in the Properties tab of the View that contains the Cancel button
- On event handler of the Cancel button, fire the outbound plug.
For example: with window name W_MAIN and outbound plug OP_REDIRECT
DATA: lo_w_main TYPE REF TO ig_w_main,
lv_portal_url TYPE string.
lv_portal_url = <<YOUR_PORTAL_URL>>.
lo_w_main = wd_this->get_w_main_ctr( ).
lo_w_main->fire_op_redirect_plg( url = lv_portal_url ).
Hope it helps. Cheers!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.