cancel
Showing results for 
Search instead for 
Did you mean: 

How to keep the connection alive when a page takes a long time to show.

f_roels
Participant
0 Kudos

Hello,

For a client we created a tableView which can take up to 5 minutes to load. The long time is because in te background the processing of the data takes a lot of time. The screen eventually shows only 1.000 lines.

But the page is accessed via the Internet and goes through a firewall, cluster and SAP Dispatcher. Somewhere a timeout is triggered and the loader stays on the screen and never disappears anymore until you refresh yourself. We can not find out where the timeout is triggered.

Therefore we want to keep the connection with the client alive. Can this be done via BSP or Javascript? This was we hope the timeout is not triggered.

The timeout on the SAP server and Dispatcher are set high. When retreiving the page directly on the SAP server or dispatcher gives is a page within the 5 minutes and so no problem. But when going via het Internet nothing returns.

With regards,

Frank

Edited by: Frank Roels on Oct 7, 2009 2:43 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Frank,

use this code anywhere in your program.


    <xhtmlb:protectDoubleSubmit design = "POPUP"
                                text   =  "Loading..."
                                timer  = "0"
                                title  = "Wait"/>

It will give you a processing signal and will also keep the connection alive.

Regards,

Usha.

f_roels
Participant
0 Kudos

Hello,

I out a page before the page which takes long to load with the following xhtml tag:

<xhtmlb:protectDoubleSubmit active = "true"

timer = "2500"

text = "<img src='/sap/public/bc/ur/Design2002/themes/sap_tradeshow/common/loading/loading_ani.gif'>"

title = "De werklijst wordt geladen..." />

But the page is not kept alive. What does the parameter timer? Must it be set to 0?

With regards,

Frank

Former Member
0 Kudos

yes set the timer to 0