cancel
Showing results for 
Search instead for 
Did you mean: 

Loading Screen in Webreports?

Adem_Baykal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

i try to implement a "loading screen" in a web report. That means: If i open a web template - which takes some time to load - a small text should apper on screen that the web template is loading. I have a coding which is working but not 100%! Any ideas how to solve this? Note: Precalculation is not possible!

Regards,

Adem

Here is the script if someone wants to test it:

<BODY onLoad="cacheOff()">

<!-- BEGINNING OF THE SCRIPT -->

<STYLE type=text/css>

<!--

#cache

-->

</STYLE>

<!--

Lines above are creating a layer which show a message

displaying the 'PLEASE WAIT ... ' message

-->

<SCRIPT LANGUAGE="JavaScript">

ver = navigator.appVersion.substring(0,1)

if (ver >= 4)

{

document.write('<DIV ID="cache"><TABLE WIDTH=400 BGCOLOR=#000000 BORDER=0 CELLPADDING=2 CELLSPACING=0><TR><TD ALIGN=center VALIGN=middle><TABLE WIDTH=100% BGCOLOR=#FFFFFF BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD ALIGN=center VALIGN=middle><FONT FACE="Arial, Verdana" SIZE=4><B><BR>PLEASE WAIT ... <BR><BR></B></FONT></TD> </TR></TABLE></TD> </TR></TABLE></DIV>');

var navi = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 4);

var HIDDEN = (navi) ? 'hide' : 'hidden';

var VISIBLE = (navi) ? 'show' : 'visible';

var cache = (navi) ? document.cache : document.all.cache.style;

largeur = screen.width;

cache.left = Math.round(100);

cache.visibility = VISIBLE;

}

function cacheOff()

{

if (ver >= 4)

{

cache.visibility = HIDDEN;

}

}

</SCRIPT>

<!--

When the page will be fully loaded, the message will be hidden

-->

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Adem,

did you find a solution for your pb?

We are searching one for the same pb.....

Regards, Thomas

Former Member
0 Kudos

Hi Adem,

I have following idea:

- create a webtemplate with the attached coding.

- this webtemplate display the loading screen and will precalculate the real template

- after 10 seconds the precalculated template should be opened (myTemplate)

Restrictions:

- SAP BW3.5 needed

- you must set the refresh time in the meta tag

- not yet tested

rgds Jens

<HTML>

<!-- BW data source object tags -->

<object>

<param name="OWNER" value="SAP_BW"/>

<param name="CMD" value="SET_PROPERTIES"/>

<param name="TEMPLATE_ID" value="z_Load_myTemplate"/>

TEMPLATE PROPERTIES

</object>

<HEAD>

<META NAME="GENERATOR" Content="Microsoft DHTML Editing Control">

<!-- load myTemplate after 10 second -->

<meta http-equiv="refresh" content="10; URL=<SAP_BW_URL CMD='LDOC' TEMPLATE_ID='myTemplate'>">

<TITLE>BW Web Application</TITLE>

<link href= "/sap/bw/Mime/BEx/StyleSheets/BWReports.css" type="text/css" rel="stylesheet"/>

</HEAD>

<!-- Display the LoadingScreen -->

<table>

<tr>

</tr

</table>

<BODY>

<!-- SAP BW3.5 WebItem - WebTemplateName -->

<P><object>

<param name="OWNER" value="SAP_BW"/>

<param name="CMD" value="GET_ITEM"/>

<param name="NAME" value="TEMPLATE_1"/>

<param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_TEMPLATE"/>

<param name="HIDDEN" value="X"/>

<param name="NAME_PREFIX" value="a"/>

<param name="TEMPLATE_ID" value="myTemplate"/>

ITEM: TEMPLATE_1

</object></P>

</BODY>

</HTML>

Message was edited by: Jens Buhr

Former Member
0 Kudos

Hi,

can you explain what is not working in your scenario (of course this will only work during rendering time of the web application in the browser, not during query execution time). So when you have much browser rendering time, I don't see why it should not work.

It is technically not possible to have such a loading screen while query execution time.

Heike

Adem_Baykal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Heike,

hmm you are right. Well the "loading" info appears to late. First the web application contacts the bw server and then the system shows the "loading" note. Well i would like to see the loading note first and then the bw server schould be contacted. I will try some other things! Thank you very much Heike!

Regards,

Adem