on 10-13-2010 9:39 AM
Hi all,
my requirement is i have created a button when i click on that logoutbutton the application has to be logout . can u tell me how to provide this logout functionality.
thanks & regards
naveen
hi,naveen:
Logoff is very simple in WD4A, as WD is just based on WEB.
Okay, the steps you can try:
(1).Create one outbound plug in the view.
(2).In your button action handler, using the example code:
wd_this->Fire_log_off_Plg( ).
(3).create one Inbound Plug in your main window.
(4).Create one Outbound plug in window, pls be noted,the plug type is "EXIT", and plug the "Interface" indicator
(5).in your inbound plug's handler of your main window,using the example code:
wd_this->Fire_exit_window_Plg( ).
(6).In the window, navigate your outbound plug of View to the inbound plug of window.
Best wishes.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks can,
It is working but can u tell me the functionality what at bcak end is doing
when i create one outbound plug in in view log_off
and then again when i am creating an outbound plug in window exit_window
and one inbound plug
and creating a navigation link between view outbound plug and window inbound plug
can u explain me the back end functionality
thanks & regards
naveen
backend functionality of logout
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,naveen.
Sorry for reply late..
About the backend functionality, i don't know how to describe or how to explain..
However, i can say that:
At runtime, when the action navigate to the Outbound plug of View, which linked to the inbound plug of Window, then, you again linked to the EXIT outbound of window.
This Exit outbound plug will exit the window...
In fact, generally, when we log out, we also should provide user that he can REALLY close the IE Browser..About how to realize it, i think you have already been very familiar with.That way, we can use the JS, as the way we treated in traditional WEB technology,such as HTML, ASP,JSP,ASPX,etc..
Er...About the backend, i think SAP has already considered and published related theories, such as Session, Cookies..I am sorry for that, as a developer, many time i just use the existing technology/Skills, instead of not looking into the BACKEND area like you..
Thanks you for discuss..
Best wishes.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.