on 11-30-2007 11:58 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.