cancel
Showing results for 
Search instead for 
Did you mean: 

Let user come out from application?

former_member202077
Participant
0 Kudos

Hello

I am trying to EXIT out from the application, once the user clieks the proveded EXIT push button my_view.

When am searching for this requirement, i found the below 2 links,

[http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/6687] [original link is broken] [original link is broken] [original link is broken];

[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0018077-f0c9-2b10-87af-eb9bb40776d4?quicklink=index&overridelayout=true]

Pls. let me know

1) Both are same, which is recommemnded and safe in PORTAL perspective, bcz my webdynpro application will be launched in PORTAL?

2) I felt the 2nd link is very easy, can i go ahead with this approach in PORTAL perspective?

Thank you

Accepted Solutions (0)

Answers (2)

Answers (2)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Duplicate question:

Please don't post the same question multiple times. This is against the forums terms of service.

Former Member
0 Kudos

Hi,

You already opened one thread regarding this Q's.?

Just add below code in your EXIT button onaction event.

DATA lo_api_component TYPE REF TO if_wd_component.
DATA lo_portal_manager TYPE REF TO if_wd_portal_integration.

lo_api_component = wd_comp_controller->wd_get_api( ).
lo_portal_manager = lo_api_component->get_portal_manager( ).

CALL METHOD lo_portal_manager->fire
EXPORTING
portal_event_namespace = 'urn:com.sapportals:navigation'
portal_event_name = 'historyNavigate'
portal_event_parameter = '-1' .

This code will exits from application and remain in portal.

Cheers,

Kris.