cancel
Showing results for 
Search instead for 
Did you mean: 

How you can use java script to call query templates and display templat

Former Member
0 Kudos

Dear experts:

Could you please give the answer to this questions. If possible with one example also.

How you can use java script to call query templates and display templates?

Regards,

Goapl.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Chandra,

Goto Dynamic Page Generator from Visualization Services and select your query template and display template and generate a applet.Do view source and take the code.

Paste the code in your HTML page inside the body tag:

e.g

<body>

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

<PARAM NAME="QueryTemplate" VALUE="FillingArea/SampleQuery">

<PARAM NAME="DisplayTemplate" VALUE="FillingArea/SampleChart">

</APPLET>

<body>

Please go through the following link to learn more:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b7c79bd4-0a01-0010-4caf-bfb68ab9...

Hope this will help you.

Thanks,

Manisha

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi, chandra

here i will give u a simple demo.

First, in the irpt file we have the following code:

<applet name="List" codebase="/XMII/Classes" code="iGrid" archive="illum8.zip" width="400" height="200" mayscript>
		<param name="QueryTemplate" value="the address of ur template on ur server" >
		<param name="DisplayTemplate" value="the address of ur template on ur server" >
	            <PARAM NAME="DoubleClickEvent" VALUE="detailUpdate">
		
	</applet>

and if u want to change the query template and display template dynamiclly

we can use the following javascript code to do this:


List.setQueryTemplate("the address of ur template on ur server");
List.setDisplayTemplate("the address of ur template on ur server");

i hope that is what u want to know

if u have any doubt, just let me know.

have a nice day

Former Member
0 Kudos

Hi Chandra,

Please go through the following thread, which will help you to learn xMII.

You can also go through the help:

http://help.sap.com/saphelp_xmii115/helpdata/en/index.htm

Hope this will help you.

Thanks,

Manisha