Hi Friends,
I would like to pass a parameter value to the QueryTemplate of my i5Chart object. I am using the below code for this. Please let me know if I am doing the right way. I am facing a javascript error while loading the page.
I am on MII version 14.0 SP4 Patch
Java script error
Message: oDomRef must not be null
Line: 141
Char: 19642
Code: 0
URI: http://hostname:50000/sapui5/resources/sap-ui-core.js
Here is the code snippet
<SCRIPT>
var addProps = '{"QueryTemplate":"PI_Report_Builder/Xacute_PcoData_Qry","DisplayTemplate":"PI_Report_Builder/PI_Report_Chart","Applet":"i5Chart","Height":"600","Width":"800","Content-Type":"image/png"}';
var c = new com.sap.xmii.chart.hchart.i5Chart('PI_Report_Builder/PI_Report_Chart','PI_Report_Builder/Xacute_PcoData_Qry',addProps);
c.getQueryObject().setParameter("Param.1","BA:PHASE.1");
c.refresh();
c.draw('content');
</SCRIPT>
Thanks
Shaji Chandran