on 09-28-2010 7:22 AM
Hello All,
I have an application developed in Webdynpro java and incorporated in an iview of portal. There is a button in that application, on click of that button i need to logoff from portal.
I tried searching in SDN and got the following code.
WDClientUser.forceLogoffClientUser("irj/portal?logout_submit=1");
It is working when i run the application standalone, but it is not working when i embed into an iview.
Provide some clear answers/links/documents to solve the issue.
Regards
Nizamudeen SM
HI
What is happening when you are clicking the button in the iview.
Why you need a button to log off. Log off link will be present there in the POrtal.
Thanks and Regards,
sarbjeet singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For Gunter,
I tried with the given snippet earlier like,
i created a application property and given value as "http://abcd:50000/irj"
logOffUrl = wdComponentAPI.getApplication().getApplicationInfo().findInApplicationProperties("sap.logoffURL").getValue();
if(WDPortalUtils.isRunningInPortal())
{
WDClientUser.forceLogoffClientUser(logOffUrl);
}
else
{
wdThis.wdGetOVSWindInterfaceViewController().wdFirePlugOutToPortalPage(logOffUrl);//"irj/portal?logout_submit=1");
}
but by using the above code also i am not able to logout from portal.
For Sarbjeet,
What exactly happening is, when i logoff in portal, it is just closing the current iview and displaying error as "The webpage cannot be displayed HTTP 500", but others are visible and he can process with the other pages and etc.,
Why it is needed in my portal is, after logging, i want the user to accept my terms and conditions which is developed as a webdynpro application. So once logged in he'll get my application as a pop-up, there he can Accept/Cancel. Once it is accepted, i will show the other applications, but if he cancel then i will automatically make that user to logoff. this is what my requirement is.
Regards
Nizamudeen.
Hi Niamudeen,
try this Code. It works in my applications.
if (WDPortalUtils.isRunningInPortal()) {
WDClientUser.forceLogoffClientUser(urlLogoff);
} else {
wdThis.wdGet<YourComp>WindowInterfaceViewController().wdFirePlugPlugExit(urlLogoff);
}
kind regards
Gunter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
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.