cancel
Showing results for 
Search instead for 
Did you mean: 

Logoff Portal from Webdynpro Application

former_member185879
Active Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

gill367
Active Contributor
0 Kudos

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

former_member185879
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

we are facing the exact same issue, can u guide as how you went about your requirement / resolved the above issue.

Thanks,

Former Member
0 Kudos

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