cancel
Showing results for 
Search instead for 
Did you mean: 

do we use exit plug'ins in portal environment.

Former Member
0 Kudos

can any body plz explain how to use the exit plug'ins in portal environment? if exit plug'ins are not work in portal environment how to close a window instead of using this exit plug'ins. i found some where like 1)  by passing two parameters url and close_window  or by writing html code. but  i am totally confuse with this can any body plz give me the correct how to close a window in portal environment ?

thanks for response in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Siva,

You can create exit pulg in portal, to close browser window.

follow like this..

1. Create oubound plug 'EXIT_PLUG' of type EXIT in your window.

2. assume you have one button 'EXIT in your view, write below code in on button action.

   data: lr_view_cntr type REF TO if_wd_view_controller,
      lr_win_cntr TYPE REF TO if_wd_window_controller,
      lt_parameter_list type wdr_event_parameter_list,
      ls_parameter TYPE wdr_event_parameter,
      lr_val TYPE REF TO data.

FIELD-SYMBOLS <fs> type any.
lr_view_cntr = wd_this->wd_get_api( ).
lr_win_cntr = lr_view_cntr->get_embedding_window_ctlr( ).

* Set this value because we have to close the window
ls_parameter-name = 'CLOSE_WINDOW'.

* Set parameter value to 'X' - True
CREATE DATA lr_val TYPE c .
ASSIGN lr_val->* to <fs>.
<fs> = 'X'.

* Add parameter into parameter list
ls_parameter-value = lr_val.
INSERT ls_parameter INTO TABLE lt_parameter_list.

* Call outbound exit plug of the window in which this view is embedded
lr_win_cntr->if_wd_view_controller~fire_plug(
exporting plug_name = 'EXIT_PLUG'
  parameters = lt_parameter_list ).

Cheers,

Kris.