cancel
Showing results for 
Search instead for 
Did you mean: 

How can I make Timeout in portal (Java).

Former Member
0 Kudos

I've made a change to the SAP logon, allowing a change of password. I need to find a way to keep the program from re-directing the user to the logon page immediately after changing the password, as it will not have registered yet. Does someone know how to make a time-out in SAP Portal?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos
Former Member
0 Kudos

Hi Ben and thanks.

Kan I use that i iviews and if jes du you have any example?

Regards

Reza

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Could you please send more details?

Regards

Ben

Former Member
0 Kudos

Hi I will try agin.

I've made a change to the SAP logon program(sap.portal.runtime.logon.par), allowing a change of password.

I make som changes in " SAPMLogonLogic.java" program. In this program I call a Webservices with the new password.

It will tak about 10 seconds until user get reg. in sap after my webservices call. I need to find a way to keep the program from redirecting the user to the logon page immediately after changing the password, as it will not have registered yet. tel me if you want more details.

Regards

Reza

Former Member
0 Kudos

Hi,

You need to do the timeout on the client side, not on the server side.

The problem is that you cannot do it directly before the form is sent.

You need to look closer at what happens with regards to HTTP requests .

Once you found where you want to add the delay you can use javascript and especially the setTimeout method to implement some kind of waiting mechanism.

Dagfinn

Former Member
0 Kudos

Hi Dagfinn.

Thanks for repaly. I know where I want to add setTime out method on jsp file.

Do you have any example to show how can I user javascript to make timesout on client side?

Thanks agin.

Reza

Former Member
0 Kudos

This should do it.

Note that there is nothing preventing the user from closing the window before or ignoring it totally and enter username and password. You could also disable the login form using javascript for a period of time.

<SCRIPT language="JavaScript">

function showPleaseWaitWindow() {

waitWindow= window.open('http://google.com','waitwindow','height=255,width=250,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no ,modal=yes');

//close after 5 seconds

setTimeout("waitWindow.close()",5000);

}

showPleaseWaitWindow();

</SCRIPT>

Dagfinn

Former Member
0 Kudos

Thanks . I will try that.

Reza

Former Member
0 Kudos

Still no answer ... ?

Former Member
0 Kudos

Still no answer ... ?