cancel
Showing results for 
Search instead for 
Did you mean: 

problem with logout button ?

Former Member
0 Kudos

Hi, i have a common header with logout button...

when i click on logout button , it should navigate to login screen..

but it is not navigating..

i used the following scnarios :

1.i have created a common header with logout button in seperate component ..

   then im reusing  this component in other components ..

here im using url for navigating using suspend and resume plugs..

in every component i want to navigate to login screen from current screen..

here im getting error as login component is not existing..

Thanks in advance..

lokesh

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member211591
Contributor
0 Kudos

Hi Lokesh,

imho:

- your logout-method should be implemnted in the topmost component (which implements your wd-application).

- your logout-methods calls exit-plug of your topmost component and navigates to logout-screen. (e.g. logout-screen: "You have been succesfully logged out. Click here to log in again.")

(- your logout-screen is an additional SICF-service which triggers "javascript:history.back()" when clicking "here". Thus your wd-application will be called again; and because you are logged off you will get the login screen.)

- your common header component with the logout button triggers an logout-event, which has to be handled in you topmost component (an event which calls your logout-method.).

BR

ismail

Former Member
0 Kudos

If you use any component add that componet in each view from where you are trying to call or move to...