on 03-23-2011 4:17 PM
Hi all,
i will give an example for better understanding and everything is with reference to WD ABAP.
(1)i have created an iview 'Open Enrollment' and this iview is assigned to a workset 'Benefits' in the portal.
If the user selects open enrollment iview in the portal and clicks on a exit button in this iview the screen should go back to the benefits workset page.
How can i achieve this in the event handler method of the 'EXIT' button.
(2) I was assuming that I can use the 'EXIT' plugs. but it seems that this plugs will not work in portal. Then what is the use of 'EXIT' plugs.
Thanks in advance,
Reddy
1. When you click the link open Enrollment, does it open inline or external window ?
2.In portal exit plug would work only with close_window parameter of type wdy_boolean , value true.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In this case , you need to pass the url of the Benefits in the exit plug
wd_this->fire_to_exit_plg( url = url close_window = close_window ).
see the [http://help.sap.com/saphelp_nw70/helpdata/EN/45/1bc575ba064574e10000000a114a6b/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/EN/45/1bc575ba064574e10000000a114a6b/frameset.htm]
Baskaran,
I found this code in one of the exit event handler methods of the WD ABAP application(this will basically exit the iview on the portal and return to the previous screen). Can you please help me understand this code?
IF NOT lo_portal_manager->m_portal_version IS INITIAL.
Navigate to calling iview
CALL METHOD lo_portal_manager->navigate_relative
EXPORTING
levels_up = '1'
path = lt_path.
CALL METHOD lo_portal_manager->fire
EXPORTING
portal_event_namespace = 'urn:com.sapportals:navigation'
portal_event_name = 'historyNavigate'
portal_event_parameter = '-1'.
ELSE.
Trigger window to be closed
lr_wdw_main = wd_this->get_wdw_main_ctr( ).
lr_wdw_main->fire_close_window_plg( close_window = abap_true ).
ENDIF.
Thanks a bunch
Reddy
This is would work. What is happening in this code is
lo_portal_manager->m_portal_version IS INITIAL
checks if the application runs in portal environment.
navigate_relative method let you go to the path in the form of string table and you specify the level_up in the pcd. In your case it is 1 level up to benifits.
However you need to see how the lt_path is being build in the sample application you have seen .
i assume that the portal event is fired to clear the navigation history.
if the component is not run in portal just close the webdynpro window.
See this document for further explanation
[https://cw.sdn.sap.com/cw/docs/DOC-110463.pdf|https://cw.sdn.sap.com/cw/docs/DOC-110463.pdf]
Edited by: Baskaran Senthivel on Mar 24, 2011 10:51 PM
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.