Hi,
I am trying to write a BSP to use in my SAP Basis administration work. The page should include graphs with CPU data, a list of SAP workprocesses, last 10 lines of syslog etc..
I want the page to automatically refresh itself every X seconds. ( X should be a variable which can be changed on the page itself ).
Everything works OK when using a button to simulate the periodic update, but I have not got a clue as how to periodically generate this event with a timer.
Does anybody know ( or can think of ) a way to do this ?
With regards,
Fred van de Langenberg
I have done this in the past with the following block of code:
<htmlb:documentHead>
<%
data: refresh1 type string.
data: url1 type string.
url1 = runtime->get_url( ).
concatenate `<META HTTP-EQUIV=Refresh CONTENT="10; URL=`
url1
` ">`
into refresh1.
%>
<%= refresh1 %>
</htmlb:documentHead>
This example has a hardcoded refresh rate of 10 seconds. However you could just as easily built the refresh time in to the statement dynamically as well.
Add a comment