Quantcast
Channel: SCN: Message List - SAP Manufacturing Integration and Intelligence (SAP MII)
Viewing all articles
Browse latest Browse all 4841

Re: Can anybody give me a demo code example of display templates(like i5Chart) in XML view?

$
0
0

Hi Venkateshy,

In such scenarios, easiest way would be

- to test the display template.

- view the source code

- copy the code that renders the i5chart.

- paste it on the view that you created.

- rename the id and other stuffs.

- remove session id, if any.

 

For now your can refer below code:

var addProps =

'{"LabelColumns":"Year","MappedQueryTemplate":"Path/QueryTemplatePath","DisplayTemplate":"Path/DisplayTemplatePath","CachedQueryTemplate":"Path/QueryTemplatePath","MappedQueryParamColumns":"Ma

ppedColumns","Applet":"i5Chart","Height":"400","QueryTemplate":"Path/QueryTemplatePath","CachedQueryTemplateColumns":"[CachedCOlumns]","ValueColumns":"ValueColums","Width":"640","Content-Type"

:"image/png"}';

var c = new com.sap.xmii.chart.hchart.i5Chart('DisplayTemplatePath','QueryTemplatePath',addProps);

c.draw('content');

 

Just replace relevant properties with exact value.

 

Hope this works.

 

Best Regards,

Swaroop


Viewing all articles
Browse latest Browse all 4841

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>