cancel
Showing results for 
Search instead for 
Did you mean: 

SAP xMII unable to pass variables to APPLET

Former Member
0 Kudos

Hi all ,

using java script i am pasing values to applet but applet is not taking values

code is like

a function "load" is there and i am using code

document.MyApplet.getQueryObject().setParam(5,'50' );

and onload event on body i am calling "load"

<APPLET NAME="MyApplet" WIDTH="640" HEIGHT="400" CODE="iChart" CODEBASE="/Illuminator/Classes" ARCHIVE="illum8.zip" MAYSCRIPT>

<PARAM NAME="QueryTemplate" VALUE="UserTemplates/KPI_CM_P">

<PARAM NAME="DisplayTemplate" VALUE="UserTemplates/prav_test/KPID_MP">

<PARAM NAME="Param.1" VALUE="01.02.2007">

<PARAM NAME="Param.2" VALUE="30.04.2007">

<PARAM NAME="Param.3" VALUE="CHP2">

<PARAM NAME="Param.4" VALUE="">

<PARAM NAME="Param.5" VALUE="">

</APPLET>

Thanks in advance

regards

Praveen sharma

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Praveen

The onload event occurs when the user agent finishes loading a window, so the page is already loaded and then your

"document.MyApplet.getQueryObject().setParam(5,'50' ); " gets called.

So parameter setting to the applet object is done successfully. but to reflect the same in the parameter you have to refresh the applet by using "document.MyApplet.refresh()";

This should solve your problem.

Former Member
0 Kudos

Hi. Praveen..

What do exactly mean.. by "applet is not taking values " .. is it not displaying according to the Given param5.... or the value not assigned to the Param 5 of the query template.

to check whether its assigned or not.. u can chk out using a alert on this document.MyApplet.getQueryObject().getParam(5 );

if nothing is returned.. u should check out the param 5 in the querry template

if the value is properly assigned and the display template is nt reflecting.. the make a refresh of the applet as

..document.MyApplet.refresh();

i think it should work for the second case (not reflected in the display chart)..

Thanks & Regards

Srikanth

Former Member
0 Kudos

Praveen,

This problem may be because when the "load()" function is called body Load, the applet is not created yet,

Better you try this, In the applet add onother param

<param name="CreationEvent" value="load">

Hope this helps

regards

Rupesh Bajaj

former_member192939
Active Participant
0 Kudos

Praveen,

Problem might be the applet is not created on page load.

As this is not the "Best practice", try using the creationevent in the applet.

Cheers,

Ajay.